:root {
    --primary-gold: #D4AF37;
    --light-gold: #F4E5C2;
    --dark-gold: #B8986A;
    --accent-gold: #FFD700;
    --black: #0F0F0F;
    --dark-gray: #1A1A1A;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --text-light: #E8E8E8;
    --border-gold: rgba(212, 175, 55, 0.3);
    --nav-width: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--black);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--nav-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
    border-right: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-header {
    margin-bottom: 3rem;
}

.nav-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--black);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: rotate(360deg);
}

.nav-links {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link span {
    display: none;
}

.nav-link i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    left: 70px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-link:hover::before {
    opacity: 1;
    left: 80px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-footer {
    margin-top: auto;
}

.social-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-nav a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-nav a:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--black);
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    margin-left: var(--nav-width);
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    position: relative;
    z-index: 1;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 30px;
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-title .line {
    display: block;
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.4s; }
.hero-title .line:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

.highlight {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeIn 1s ease 0.8s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease 1s backwards;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: fadeIn 1s ease 1.2s backwards;
}

.hero-social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--border-gold);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s ease;
}

.hero-social-link:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--black);
    border-color: var(--accent-gold);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn span, .btn i {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--black);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--black);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--border-gold), transparent);
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 500px;
    animation: fadeIn 1s ease 0.5s backwards;
}

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    overflow: hidden;
}

.image-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--primary-gold),
        transparent 30%,
        transparent 60%,
        var(--accent-gold),
        transparent 90%
    );
    animation: rotateGradient 8s linear infinite;
}

.image-background::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--black);
    border-radius: 18px;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.5s ease, filter 0.5s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.3), transparent 70%);
    border-radius: 30px;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -2;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section Styling */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-text {
    max-width: 900px;
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-column {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(26, 26, 26, 0.8) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-gold);
    transition: all 0.4s ease;
}

.skill-column:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.skill-column-title {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-item {
    padding: 0.6rem 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary-gold);
    transform: translateX(5px);
}

/* Experience Section */
.experience-section {
    background: var(--black);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.experience-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.experience-card:hover::before {
    transform: scaleY(1);
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-gold);
}

.experience-date {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.experience-location {
    color: var(--dark-gold);
    margin-bottom: 1.5rem;
}

.experience-achievements {
    list-style: none;
    padding: 0;
}

.experience-achievements li {
    padding: 0.7rem 0 0.7rem 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.experience-achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 1.3rem;
}

/* Projects Section */
.projects-section {
    background: linear-gradient(180deg, var(--dark-gray) 0%, var(--black) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    transition: all 0.4s ease;
    position: relative;
}

.project-card.featured {
    grid-column: span 2;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-gold);
}

.project-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--primary-gold);
    border-radius: 20px;
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-gold);
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    padding: 0.5rem 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--black);
    transform: translateY(-2px);
}

.projects-footer {
    text-align: center;
    margin-top: 4rem;
}

/* Contact Section */
.contact-section {
    background: var(--black);
}

.contact-content {
    display: grid;
    gap: 4rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.contact-info-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-gold);
    text-align: center;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--black);
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.contact-info-card a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--accent-gold);
}

.contact-info-card p {
    color: var(--text-light);
}

.contact-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--black);
    transform: translateY(-3px);
}

    .contact-form-container {
        max-width: 100%;
        padding: 0;
    }
    
    .contact-form {
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(212, 175, 55, 0.05) 100%);
        padding: 2.5rem 2rem;
        border-radius: 15px;
        border: 1px solid var(--border-gold);
        max-width: none;
        margin: 0;
    }

.contact-form {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 15, 0.5);
    border: 2px solid var(--border-gold);
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--black) 0%, #050505 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-gold);
}

.footer-content p {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.footer-tagline {
    color: var(--dark-gold);
}

.footer-tagline i {
    color: var(--primary-gold);
}

/* Mobile Swipe Containers */
.mobile-swipe-container {
    display: none;
}

@media (max-width: 768px) {
    .mobile-swipe-container {
        display: block;
        position: relative;
        overflow: hidden;
        padding: 0 0 4rem 0;
        margin: 0 -1.5rem;
    }

    .swipe-wrapper {
        display: flex;
        transition: transform 0.3s ease-out;
        touch-action: pan-y;
        padding: 0 1.5rem;
    }

    .swipe-item {
        min-width: calc(100% - 3rem);
        max-width: calc(100% - 3rem);
        flex-shrink: 0;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    /* Ensure cards fit within container */
    .swipe-item .skill-column,
    .swipe-item .project-card,
    .swipe-item .contact-info-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Adjust project card sizing for mobile */
    .mobile-swipe-container .project-card {
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 0;
    }
    
    .mobile-swipe-container .project-card.featured {
        padding: 2rem 1.5rem;
    }

    .swipe-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .swipe-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(212, 175, 55, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .swipe-dot.active {
        background: var(--primary-gold);
        width: 24px;
        border-radius: 4px;
    }

    .swipe-hint {
        text-align: center;
        color: var(--dark-gold);
        font-size: 0.85rem;
        margin-top: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        animation: fadeInOut 2s ease-in-out infinite;
    }

    .swipe-hint i {
        font-size: 1rem;
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }

    /* Hide desktop grids on mobile */
    .skills-container.desktop-only,
    .projects-grid.desktop-only,
    .contact-info-grid.desktop-only {
        display: none !important;
    }

    /* Show mobile swipe versions */
    .skills-container.mobile-swipe-container,
    .projects-grid.mobile-swipe-container,
    .contact-info-grid.mobile-swipe-container {
        display: block !important;
    }
}

/* Desktop - hide swipe containers */
@media (min-width: 769px) {
    .mobile-swipe-container {
        display: none !important;
    }

    .desktop-only {
        display: grid !important;
    }
}
@media (max-width: 1400px) {
    .hero-container {
        max-width: 1200px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-right {
        order: -1;
        margin: 0 auto;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        max-width: 700px;
    }

    .hero-image-wrapper {
        width: 350px;
        height: 450px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        width: 320px;
        height: 400px;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .skill-column,
    .experience-card,
    .project-card,
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
        overflow-x: hidden;
    }

    #cursor-trail {
        display: none;
    }

    :root {
        --nav-width: 0;
    }

    .side-nav {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    }

    .side-nav.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        overflow-x: hidden;
    }

    .hero-section {
        padding: 5rem 1.5rem 3rem;
        min-height: auto;
    }
    
    section {
        overflow-x: hidden;
        padding: 4rem 1rem;
    }
    
    .section-container {
        overflow-x: hidden;
    }
    
    /* Wider contact form on mobile */
    .contact-content {
        padding: 0;
    }
    
    .contact-form-container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .contact-form {
        padding: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title .line {
        display: inline;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 350px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-number {
        font-size: 1.2rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .experience-card {
        padding: 2rem 1.5rem;
    }

    .experience-title {
        font-size: 1.5rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-social {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .hero-image-wrapper {
        width: 250px;
        height: 320px;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-title::after {
        width: 60px;
    }

    .about-text p {
        font-size: 1rem;
    }

    .lead-text {
        font-size: 1.2rem;
    }

    .skill-column {
        padding: 1.5rem;
    }

    .skill-column-title {
        font-size: 1.2rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .experience-title {
        font-size: 1.3rem;
    }

    .experience-company {
        font-size: 1rem;
    }

    .experience-achievements li {
        font-size: 0.95rem;
        padding: 0.5rem 0 0.5rem 1.2rem;
    }

    .project-card {
        padding: 1.5rem 1.2rem;
    }

    .mobile-swipe-container .project-card {
        padding: 1.5rem 1.2rem;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .contact-info-card h3 {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer-content p {
        font-size: 0.9rem;
    }
    
    /* Adjust swipe containers for smaller screens */
    .mobile-swipe-container {
        margin: 0 -1rem;
    }
    
    .swipe-wrapper {
        padding: 0 1rem;
    }
    
    .swipe-item {
        min-width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        padding: 0 0.5rem;
    }
    
    .swipe-hint {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 280px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }

    .skill-column,
    .experience-card,
    .project-card {
        padding: 1.2rem 1rem;
    }
    
    .mobile-swipe-container .project-card,
    .mobile-swipe-container .skill-column,
    .mobile-swipe-container .contact-info-card {
        padding: 1.2rem 1rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }
    
    .swipe-hint {
        font-size: 0.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

/* Tablet Landscape Optimization */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 3rem 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-right {
        order: 0;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 380px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

/* Print Styles */
@media print {
    .side-nav,
    .mobile-toggle,
    .hero-buttons,
    .hero-social,
    .scroll-indicator,
    #cursor-trail,
    .contact-form,
    .footer {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
