:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #3b82f6;
    /* Subtle deep blue accent */
    --accent-hover: #60a5fa;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Variables for text gradients depending on theme */
    --gradient-start: #ffffff;
    --gradient-end: #888888;
}

:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);

    --gradient-start: #0f172a;
    --gradient-end: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Prevent CSS transitions from firing during window resize */
body.resizing * {
    transition: none !important;
}

/* Background Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor Blob */
.cursor-blob {
    position: fixed;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.15s ease-out;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-left: 2rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Hide sun icon in dark mode (default) */
.theme-toggle .sun-icon {
    display: none;
}

/* In light mode, hide moon and show sun */
:root[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

:root[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

/* Base Layout */
main {
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 8rem 10%;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 450px;
}

.hero-profile-pic {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.15);
    animation: blob-bounce 8s infinite alternate cubic-bezier(0.455, 0.03, 0.515, 0.955);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes blob-bounce {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 50% 40% 50%;
        transform: rotate(3deg) scale(1.02);
    }
}

.hero-profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 70px rgba(59, 130, 246, 0.35);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.divider {
    color: var(--accent-color);
    margin: 0 0.5rem;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Outline override in light mode if needed */
:root[data-theme="light"] .btn-primary {
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 1px solid var(--text-primary);
    border-radius: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 10px);
        opacity: 0;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.highlight-text {
    font-size: 1.8rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-card h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Photography Section */
.work-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Resume / Experience Section */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.timeline-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.timeline-column {
    position: relative;
}

.timeline-column::before {
    content: '';
    position: absolute;
    top: 4rem;
    left: 10px;
    height: calc(100% - 4rem);
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 1.5rem;
    left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    z-index: 2;
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.timeline-content h5 {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

:root[data-theme="light"] .timeline-date {
    background: rgba(0, 0, 0, 0.05);
}

.timeline-role {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.timeline-role:first-of-type {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

.role-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cert-title {
    margin-top: 4rem;
    margin-bottom: 2.5rem;
    padding-left: 3rem;
    position: relative;
    font-size: 1.5rem;
}

.cert-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 7px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-color);
    transition: box-shadow 0.4s ease;
}

.cert-card {
    padding: 1.5rem;
}

.cert-card h4 {
    margin-bottom: 0.5rem;
}

.cert-card .timeline-date {
    margin-bottom: 0;
}

/* Photography Section Updates */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.work-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 400px;
}

.print-callout {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--accent-color);
    /* Highlight border */
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%);
    margin-bottom: 0;
    /* Override default stat-card margin if any */
}

:root[data-theme="light"] .print-callout {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.print-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.print-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.print-callout .btn {
    white-space: nowrap;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.print-callout .btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    background: var(--card-bg);
}

.image-wrapper {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.skeleton {
    background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.gallery-item:hover .image-wrapper {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .overlay h3 {
    transform: translateY(0);
}

/* Contact Section */
.contact-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 5rem;
    text-align: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.contact-box h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-box p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn svg {
    transition: stroke 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.lightbox-content img.fading {
    opacity: 0;
}

.lightbox-caption {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 100000;
}

.lightbox-close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    z-index: 100000;
    backdrop-filter: blur(5px);
    border-radius: 8px;
}

.lightbox-nav:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Animations & Transitions */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-padding {
        padding: 6rem 5%;
    }

    .hero {
        padding: 0 5%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .work-header {
        flex-direction: column;
        gap: 2rem;
    }

    .print-callout {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 5%;
    }

    .nav-links {
        display: none;
        /* In a real app, add a hamburger menu */
    }

    .title {
        font-size: 3.5rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .contact-box {
        padding: 3rem 2rem;
    }

    .social-links {
        flex-direction: column;
    }

    .lightbox-prev {
        left: 0.5rem;
        padding: 1rem 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
        padding: 1rem 0.5rem;
    }

    .print-callout {
        flex-direction: column;
        text-align: center;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    bottom: 40px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--text-secondary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lazy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .lazy-image {
    transform: scale(1.05);
}

.company-logo {
    position: absolute;
    top: 1.2rem;
    left: -8px;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    border: 2px solid var(--accent-color);
    object-fit: contain;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(15, 23, 42, 0.6);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(25px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    outline: none;
    transition: border-color 0.3s;
}

.input-group select {
    color: var(--text-secondary);
}

.input-group select option {
    background: var(--bg-color);
    color: var(--text-primary);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-bottom-color: var(--accent-color);
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -12px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Mobile Navigation & Responsive Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
    margin-left: 1.5rem;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease-in-out;
        z-index: 99;
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links li {
        transform: translateY(20px);
        transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
        opacity: 0;
    }
    
    .nav-links.active li {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-links a {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    /* Hamburger Animation to X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .navbar {
        padding: 1rem 2rem;
    }
    
    .navbar.scrolled {
        padding: 0.8rem 2rem;
    }
    .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1.5rem;
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .scroll-indicator span {
        writing-mode: horizontal-tb;
        font-size: 0.75rem;
    }

    .hero {
        padding-top: 6rem; /* Space for navbar */
        padding-bottom: 5rem;
    }

    .hero-layout {
        flex-direction: column-reverse; /* Profile pic on top */
        text-align: center;
        gap: 2rem;
    }

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

    .title {
        font-size: clamp(3rem, 12vw, 4rem);
    }

    .tagline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .hero-image-wrapper {
        max-width: 220px;
        margin: 0 auto;
    }

    /* Show 2 columns of images on mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; /* Slightly smaller gap on mobile so images are bigger */
    }
}

/* Hide scroll indicator on very short screens to prevent overlap */
@media screen and (min-width: 769px) and (max-height: 850px) {
    .scroll-indicator {
        display: none !important;
    }
}

@media screen and (max-width: 768px) and (max-height: 600px) {
    .scroll-indicator {
        display: none !important;
    }
}