/* ========================================
   MINU ENHANCE DEVELOPERS - VERSION 2
   Light Theme | Modern | Professional
   ======================================== */

/* CSS Variables */
:root {
    /* Light Theme Colors */
    --color-bg: #f5f5f5;
    --color-bg-alt: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-surface: #e5e5e5;
    
    --color-text: #1A1A1A;
    --color-text-secondary: #4A4A4A;
    --color-text-muted: #8A8A8A;
    
    /* Accent - Deep Charcoal with hint */
    --color-accent: #58505B;
    --color-accent-light: #7A7080;
    --color-highlight: #BC4849;
    --color-highlight-dark: #A03839;
    
    /* Borders */
    --color-border: #E5E5E5;
    --color-border-dark: #D0D0D0;
    
    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Layout */
    --container-max: 1320px;
    --container-padding: 2rem;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-base: 0.4s var(--ease-smooth);
    --transition-slow: 0.6s var(--ease-smooth);
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul { list-style: none; }

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

.section {
    padding: var(--space-3xl) 0;
}

/* ========================================
   LOADER
   ======================================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-lines {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
}

.loader-lines span {
    width: 2px;
    height: 40px;
    background: var(--color-accent);
    animation: loaderLine 1s ease-in-out infinite;
}

.loader-lines span:nth-child(even) {
    background: var(--color-highlight);
}

.loader-lines span:nth-child(2) { animation-delay: 0.1s; }
.loader-lines span:nth-child(3) { animation-delay: 0.2s; }
.loader-lines span:nth-child(4) { animation-delay: 0.3s; }

@keyframes loaderLine {
    0%, 100% { transform: scaleY(1); opacity: 0.3; }
    50% { transform: scaleY(1.5); opacity: 1; }
}

.loader-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text);
}

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

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-phone {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.nav-phone:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-alt);
}

.nav-phone svg {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg-alt);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        transition: var(--transition-slow);
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-display);
    }
    
    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, #c85a5b, #d97273);
    color: #f5f5f5;
    border-radius: 9999px; /* Pill shape */
    padding: 14px 32px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b94f50, #cc6667);
}

.btn-dark {
    background: var(--color-accent);
    color: var(--color-bg-alt);
}

.btn-dark:hover {
    background: var(--color-text);
}

.btn-dark:hover svg {
    transform: translate(3px, -3px);
}

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

.btn-outline:hover {
    background: var(--color-surface);
    border-color: var(--color-text);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.9375rem;
}

.btn-full {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

/* Vertical Lines */
.hero-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    left: 0;
    right: 0;
    pointer-events: none;
}

.hero-lines .line {
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-border) 15%,
        var(--color-border) 85%,
        transparent 100%
    );
    opacity: 0;
    animation: lineReveal 1s ease-out forwards;
}

.hero-lines .line:nth-child(1) { animation-delay: 0.2s; }
.hero-lines .line:nth-child(2) { animation-delay: 0.3s; }
.hero-lines .line:nth-child(3) { animation-delay: 0.4s; }
.hero-lines .line:nth-child(4) { animation-delay: 0.5s; }
.hero-lines .line:nth-child(5) { animation-delay: 0.6s; }

@keyframes lineReveal {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    padding-right: var(--space-xl);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.tag-line {
    width: 40px;
    height: 1px;
    background: var(--color-accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-row {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
}

.italic {
    font-style: italic;
    color: var(--color-highlight);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 450px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-value::after {
    content: '+';
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--color-border);
}

/* Folder Style Images */
.hero-visual {
    position: relative;
    height: 600px;
}

.folder-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.folder-image {
    position: absolute;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
}

.folder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folder-1 {
    width: 320px;
    height: 420px;
    top: 10%;
    left: 0;
    z-index: 3;
    border-radius: var(--radius-lg);
}

.folder-2 {
    width: 280px;
    height: 360px;
    top: 5%;
    left: 180px;
    z-index: 2;
    border-radius: var(--radius-lg);
    transform: rotate(6deg);
}

.folder-3 {
    width: 240px;
    height: 320px;
    top: 0;
    left: 320px;
    z-index: 1;
    border-radius: var(--radius-lg);
    transform: rotate(12deg);
}

.folder-stack:hover .folder-1 {
    transform: translateX(-20px) rotate(-3deg);
}

.folder-stack:hover .folder-2 {
    transform: rotate(3deg) translateY(-10px);
}

.folder-stack:hover .folder-3 {
    transform: rotate(8deg) translateX(20px);
}

.folder-badge {
    position: absolute;
    bottom: 10%;
    left: 0;
    background: var(--color-bg-alt);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-border-dark);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 100px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-tag { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-desc { margin: 0 auto var(--space-xl); }
    .hero-stats { justify-content: center; }
    
    .hero-visual {
        height: 400px;
        max-width: 500px;
        margin: 0 auto var(--space-xl);
        order: -1;
    }
    
    .hero-cta .btn-outline {
        display: none;
    }
    
    .folder-1 { width: 240px; height: 320px; left: 0; }
    .folder-2 { width: 200px; height: 280px; left: 120px; }
    .folder-3 { width: 180px; height: 240px; left: 220px; }
    
    .hero-lines { display: none; }
    .scroll-indicator { display: none; }
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .hero-visual { 
        height: 300px;
        width: 320px;
    }
    .folder-1 { width: 180px; height: 240px; }
    .folder-2 { width: 160px; height: 200px; left: 100px; }
    .folder-3 { width: 140px; height: 180px; left: 180px; }
}

/* ========================================
   MARQUEE
   ======================================== */
.marquee-section {
    padding: var(--space-lg) 0;
    background: var(--color-accent);
    color: var(--color-bg-alt);
    overflow: hidden;
}

.marquee {
    position: relative;
}

.marquee-track {
    display: flex;
    gap: var(--space-xl);
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.marquee-track .dot {
    font-size: 0.5rem;
    opacity: 0.5;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.anim-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.anim-item:nth-child(1) { transition-delay: 0s; }
.anim-item:nth-child(2) { transition-delay: 0.1s; }
.anim-item:nth-child(3) { transition-delay: 0.2s; }
.anim-item:nth-child(4) { transition-delay: 0.3s; }
.anim-item:nth-child(5) { transition-delay: 0.4s; }
.anim-item:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   SECTION STYLING
   ======================================== */
.section-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 500px;
}

.section-header.center {
    display: block;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-intro {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    align-items: start;
}

.about-title-col {
    position: relative;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-highlight);
    margin-top: var(--space-md);
    border-radius: 2px;
}

.about-text-col .lead-text {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.about-text-col .body-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
}

.about-stat {
    display: flex;
    flex-direction: column;
}

.about-stat-heading {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.about-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-highlight);
    line-height: 1.2;
}

.about-stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-highlight);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.about-logo {
    display: inline-block;
    height: 2em;
    width: auto;
    vertical-align: middle;
    margin-top: -0.1em;
    margin-left: -20px;
}

.values-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.value-card-new {
    background: var(--color-bg-alt);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.value-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.value-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.value-card-new:hover::before {
    transform: scaleX(1);
}

.value-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-highlight);
    opacity: 0.2;
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    line-height: 1;
}

.value-card-new h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.value-card-new p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        margin-bottom: var(--space-2xl);
    }
    
    .values-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .values-display {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   VISION & MISSION SECTION - MODERN
   ======================================== */
.vision {
    background: var(--color-accent);
    color: #fff;
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.vm-divider-vertical {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
}

.vm-block {
    padding: var(--space-lg);
    position: relative;
    transition: var(--transition-base);
}

.vm-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: #fff;
}

.italic-light {
    font-style: italic;
    font-weight: 400;
    color: #ff5d5e;
    opacity: 0.9;
}

.vm-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 90%;
}

.vm-block:hover .vm-text {
    color: #fff;
}

.vm-block:hover .vm-title {
    transform: translateX(10px);
}

.vm-title, .vm-text {
    transition: var(--transition-base);
}

@media (max-width: 900px) {
    .vm-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .vm-divider-vertical {
        display: none;
    }
    
    .vm-block {
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: var(--space-xl);
    }
    
    .vm-block:last-child {
        border-bottom: none;
    }
    
    .vm-title {
        font-size: 2.5rem;
    }
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.header-right {
    max-width: 500px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-right p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.filter-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.project-controls {
    display: flex;
    gap: var(--space-sm);
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.control-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg-alt);
    border-color: var(--color-accent);
}

.filter-tab {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--color-accent);
    color: var(--color-bg-alt);
    border-color: var(--color-accent);
}

.projects-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    margin-right: -2rem; /* Bleed to edge */
    padding-right: 2rem;
}

.projects-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.project-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    flex: 0 0 300px; /* Mobile default */
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .project-card {
        flex: 0 0 350px;
    }
}

@media (min-width: 1200px) {
    .project-card {
        flex: 0 0 calc(28.57% - var(--space-lg)); /* 3.5 items per row */
    }
}

.project-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-status {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.project-status.ongoing { background: #3B82F6; color: #fff; }
.project-status.completed { background: #22C55E; color: #fff; }
.project-status.upcoming { background: var(--color-highlight-dark); color: var(--color-text); }

.project-content {
    padding: var(--space-lg);
}

.project-meta {
    margin-bottom: var(--space-sm);
}

.project-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.project-location svg {
    width: 14px;
    height: 14px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.project-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.project-details {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
}

.detail {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.detail span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.project-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-base);
}

.project-link:hover svg {
    transform: translate(3px, -3px);
}

@media (max-width: 1024px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
    
    .header-right {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
        overflow-x: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
        margin-right: 0;
        padding-right: 0;
    }

    .project-card {
        flex: unset;
        width: auto;
        scroll-snap-align: none;
    }
    
    .project-controls {
        display: none;
    }
}

/* ========================================
   AMENITIES SECTION
   ======================================== */
.amenities {
    background: var(--color-bg-alt);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.amenity-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: var(--transition-base);
}

.amenity-card:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.amenity-number {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.amenity-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-md);
}

.amenity-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-accent);
}

.amenity-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.amenity-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   DESIGN & QUALITY SECTION
   ======================================== */
.design-quality {
    background-color: var(--color-bg-alt);
    position: relative;
    padding: var(--space-3xl) 0;
}

.dq-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: start;
}

.dq-header {
    position: sticky;
    top: 100px;
    padding-right: var(--space-xl);
}

.dq-header .section-desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.dq-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-surface);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--color-accent);
}

.dq-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* No gap, borders will create the grid */
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.dq-item {
    padding: var(--space-xl);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.dq-item:hover {
    background-color: #fff;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.dq-item:nth-child(5) {
    grid-column: span 2; /* Make the last item full width */
}

.dq-item-header {
    margin-bottom: var(--space-lg);
}

.dq-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-highlight);
    margin-bottom: var(--space-md);
    transition: var(--transition-base);
}

.dq-icon-box svg {
    width: 24px;
    height: 24px;
}

.dq-item:hover .dq-icon-box {
    background: var(--color-highlight);
    color: #fff;
    transform: translateY(-2px);
}

.dq-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-text);
}

.dq-item-body p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Mobile Responsiveness for DQ Section */
@media (max-width: 900px) {
    .dq-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .dq-header {
        position: static;
        padding-right: 0;
        margin-bottom: var(--space-lg);
    }
    
    .dq-content-grid {
        grid-template-columns: 1fr; /* Stack items on mobile */
    }
    
    .dq-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .dq-item {
        min-height: auto;
        padding: var(--space-lg);
    }
}

/* ========================================
   WHY CHOOSE US
   ======================================== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.features-list {
    margin-top: var(--space-xl);
}

.feature {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.feature:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--color-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    stroke: #f5f5f5;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.why-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
}

.visual-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.visual-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.visual-badge {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    background: var(--color-bg-alt);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.badge-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-text {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .why-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
    background: var(--color-surface);
}

.testimonials-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s var(--ease-smooth);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: var(--space-2xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    text-align: center;
}

.quote-icon {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.5;
    color: var(--color-highlight-dark);
    margin-bottom: var(--space-md);
}

.testimonial-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}

.author-project {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.control-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.control-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-alt);
}

.control-btn svg {
    width: 18px;
    height: 18px;
}

.progress-bar {
    width: 120px;
    height: 3px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    width: 33.33%;
    transition: width 0.3s ease;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-card {
    background: var(--color-highlight);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: var(--space-md);
}

.cta-card .italic {
    color: #f5f5f5;
}

.cta-card p {
    font-size: 1.125rem;
    color: var(--color-text);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.cta-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding-right: 60px;
    opacity: 0.15;
}

.pattern-line {
    width: 1px;
    height: 100%;
    background: var(--color-accent);
}

@media (max-width: 768px) {
    .cta-card {
        padding: var(--space-xl) var(--space-md);
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
}

.contact-details {
    margin-top: var(--space-xl);
}

.detail-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent);
}

.detail-text h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-text p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-alt);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Contact Form */
.contact-form-card {
    background: var(--color-bg-alt);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-xl);
}

.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: var(--space-md);
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-base);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -8px;
    font-size: 0.75rem;
    color: var(--color-accent);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-base);
}

.form-group input:focus ~ .input-line,
.form-group select:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.form-group select {
    cursor: pointer;
    appearance: none;
}

.contact-form .btn {
    margin-top: var(--space-md);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MAP
   ======================================== */
.map-section iframe {
    display: block;
    filter: grayscale(80%);
    transition: var(--transition-slow);
}

.map-section:hover iframe {
    filter: grayscale(0%);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-accent);
    color: var(--color-bg-alt);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: var(--space-md);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    line-height: 1.7;
}

.footer .logo-mark {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

.footer .logo-text span:last-child {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: var(--color-bg-alt);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-lg);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

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

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

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   UTILITIES
   ======================================== */
::selection {
    background: var(--color-accent);
    color: var(--color-bg-alt);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}




