:root {
    /* Base Colors (Shared) */
    --accent-1: #8b5cf6;
    /* Violet */
    --accent-2: #06b6d4;
    /* Cyan */
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));

    /* Layout */
    --container-max: 1200px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --nav-height: 80px;

    /* Theme Variables (Default: Dark) */
    --bg-color: #030303;
    --bg-gradient: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #030303 100%);
    --text-color: #e5e5e5;
    --text-muted: #a3a3a3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --panel-bg: rgba(255, 255, 255, 0.05);
}

.light-theme {
    --bg-color: #f8f9fa;
    --bg-gradient: radial-gradient(circle at 50% 50%, #ffffff 0%, #f0f2f5 100%);
    --text-color: #1a1a1a;
    --text-muted: #6c757d;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --panel-bg: rgba(0, 0, 0, 0.05);
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background-image 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #fff;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0;
    margin-left: 1rem;
}

.theme-toggle:hover {
    color: var(--accent-2);
    transform: rotate(15deg);
}

.theme-toggle .sun {
    display: none;
}

.theme-toggle .moon {
    display: block;
}

.light-theme .theme-toggle .sun {
    display: block;
}

.light-theme .theme-toggle .moon {
    display: none;
}

.nav-contact {
    color: var(--accent-2);
}

/* Common Section Styles */
.section {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-badge {
    font-family: var(--font-heading);
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    overflow: hidden;
}

.hero-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-title {
    /* font-family: var(--font-heading); */
    font-size: clamp(3rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.role {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-line {
    width: 1px;
    height: 120px;
    background: var(--accent-gradient);
}




/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2.5fr .5fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 1000px;
}

.about-text p strong {
    color: var(--text-color);
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    width: 100%;
}


.reveal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

/* Expertise Section */
.expertise {
    overflow: hidden;
    position: relative;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
}

.skills-group h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-card {
    padding: 1rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    border-color: var(--accent-2);
    background: var(--accent-gradient);
    color: #fff !important;
    /* Always white on hover because background is vibrant gradient */
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.3);
}

/* Portfolio Section (Horizontal) */
.portfolio {
    padding: 0;
}

.portfolio-wrapper {
    overflow: hidden;
}

.section-intro {
    margin-top: 5vh;
}

.horizontal-scroll {
    display: flex;
    width: 500%;
    /* Will be adjusted by JS, but enough for 4-5 panels */
    height: 70vh;
    padding: 0 5vw;
}

.project-panel {
    flex-shrink: 0;
    width: 80vw;
    height: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Visual left, Info right */
    gap: 3rem;
    padding: 3rem;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(5px);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 0;
    /* Important for overflow-y */
}

/* WMS specific layout override */
.wms-panel {
    width: 95vw !important;
}

.wms-panel .project-content {
    grid-template-columns: 1fr 1.5fr !important;/ * Give more space to 11+badges */
}

.project-header h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--accent-1);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    font-weight: 600;
}

.project-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 1rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    /* Scroll if text+badges are too many */
    padding: 0 1rem;
}

/* Custom scrollbar for details */
.project-details::-webkit-scrollbar {
    width: 4px;
}

.project-details::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 10px;
}

.project-details p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.4rem 1rem;
    background: var(--panel-bg);
    border-radius: 4px;
    transition: .5s all;
}

.project-tags span:hover {
    transform: translateY(-px);
}

.project-tags p {
    margin-bottom: 0;
}

.project-visual {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure image fits without stretching or being cut */
    border-radius: 10px;
    max-height: 50vh;
    /* Prevent it from being too tall */
}

.project-details {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 1.5rem;
}

.project-details p {
    margin: 1rem 0;
}

/* Contact Section */
.contact {
    min-height: 80vh;
    text-align: center;
}

.contact-pitch {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.contact-methods {
    display: flex;
    gap: 4rem;
}

.contact-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-link .value {
    font-size: 2rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover .value {
    color: var(--accent-2);
}

.social-btn {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent-1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.footer-bottom {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.wms-features-minimal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.wms-features-minimal .feat-card {
    padding: 0.6rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.wms-features-minimal .feat-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-1);
    color: var(--text-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* Mobile Responsive */
@media (max-width: 992px) {

    .about-grid,
    .project-content {
        grid-template-columns: 1fr;
    }

    .horizontal-scroll {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .project-panel {
        width: 100%;
        height: auto;
        margin-bottom: 2rem;
    }



    .project-content {
        padding: 2rem;
    }

    .contact-methods {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-link .value {
        font-size: 1.5rem;
    }
}

/* WMS Spotlight Styles */
.wms-spotlight {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent);
}

.wms-hero-grid {
    display: grid;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.wms-carousel-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.wms-carousel-container p {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    /* Backdrop for images */
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Better for screenshots with legends */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    transform: scale(1.05);
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
    transform: scale(1);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 0 1rem;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    transform: scale(1.1);
}

.carousel-legend {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-impact {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 0 15px 15px 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

#wms-spotlight .project-tags span {
    background: rgba(139, 92, 246, 0.15);
}

/* Responsive Spotlight */
@media (max-width: 992px) {
    .wms-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel-inner {
        height: 300px;
    }

    .wms-spotlight {
        padding: 60px 0;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}