@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;500;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
    /* Indigo Ethereal Palette - The Digital Lithograph */
    --bg: rgb(240, 236, 229); /* Cloud Dancer */
    --primary: #2d2633; /* Deep Indigo */
    --primary-container: #4b0082;
    --secondary: #5e5466;
    --secondary-container: #00f8f8;
    --accent: #00f8f8; /* Electric Cyan */
    --on-bg: #1c1c17;
    --surface: rgb(240, 236, 229);
    --surface-low: #f8f6f2; /* Pure Ethereal Tone */
    --surface-high: #e2ded5;
    --surface-lowest: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666666;
    
    /* Typography - Switching to Editorial Serif */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Shadows - Ambient & Diffused */
    --shadow-ambient: 0 40px 100px -20px rgba(76, 68, 81, 0.12);
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem; /* Increased padding for luxury feel */
}

/* Typography Editorial Standards */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    line-height: 1.05;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section {
    padding: 10rem 0;
}

.section-title {
    text-align: left; /* Intentional Asymmetry */
    margin-bottom: 6rem;
    max-width: 600px;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* Navigation - Glassmorphism */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background: rgba(240, 236, 229, 0.01); /* Nearly transparent start */
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    left: 0;
}

#navbar.scrolled {
    padding: 0.75rem 0;
    margin-top: 1.5rem;
    width: 90%;
    left: 5%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 100px; /* Liquid capsule shape */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 100px -20px rgba(76, 68, 81, 0.15);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 140px; /* Increased to 140px as requested */
    width: auto;
    background-color: var(--bg); /* Force background to match page exactly */
    border-radius: 20px; /* Initial curve */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar .logo {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar.scrolled .logo {
    transform: translateX(-55px); /* Swift shift to fit the left notch */
}

#navbar.scrolled .logo img {
    height: 110px; /* As requested */
    border-radius: 100px; /* Full pill/circular shape */
    padding: 2px; /* Minimal padding for notch fit */
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.5rem; /* Added padding for bubble space */
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Buttons - The Electric CTA */
.btn-primary {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--secondary-container);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px; /* Bubble edges */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 248, 248, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 248, 248, 0.4);
    background: rgba(255, 255, 255, 0.6); /* Glassy bubble transition */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--primary);
}

/* Hero Section - The Digital Lithograph */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 6rem;
    align-items: center;
}

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

.hero p {
    margin: 2rem 0 3rem;
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Vellum Overlay / Texture */
.vellum {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Bento Grid - The Unbound Rule (No Borders) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bento-item {
    background: var(--surface-lowest);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-ambient);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: none; /* No-Line Rule */
}

.bento-item.large {
    grid-column: span 2;
    background: var(--surface-low);
}

.bento-item:hover {
    transform: translateY(-10px);
    background: var(--primary);
    color: white;
}

.bento-item:hover h3, 
.bento-item:hover p, 
.bento-item:hover li, 
.bento-item:hover .cat-label,
.bento-item:hover .counter,
.bento-item:hover i {
    color: white !important;
    transition: color 0.3s;
}

.counter {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    color: var(--primary);
    transition: color 0.3s;
}

.cat-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 1.5rem;
}

.bento-item h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.bento-item ul {
    list-style: none;
}

.bento-item li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Tonal Shifts for Sections */
.alt-section {
    background-color: var(--surface-low);
}

/* Contact Area */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
}

.contact-info h2 {
    font-size: 4rem;
    margin-bottom: 3rem;
}

.contact-detail {
    margin-bottom: 4rem;
}

.contact-detail label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-detail span, .contact-detail a {
    font-size: 2rem;
    font-family: var(--font-body);
    color: var(--primary);
    text-decoration: none;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.6);
}

/* Trusted By Section - Minimalist Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    align-items: center;
    justify-items: center;
    opacity: 0.6;
}

.client-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    text-align: center;
    filter: grayscale(1);
    transition: all 0.3s;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px);
}

/* Process Flow - Step Animation */
.process-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    background: var(--surface-lowest);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-ambient);
    transition: all 0.4s;
}

.process-step:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-10px);
}

.process-step:hover p, .process-step:hover h3 {
    color: white;
}

.step-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--secondary-container);
    margin-bottom: 1.5rem;
    display: block;
}

/* Page Headers for sub-pages */
.page-header {
    padding: 12rem 0 6rem;
}

.page-header h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
}

/* Featured Project Card - Modern Showcase */
.project-card {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 50px 120px -20px rgba(76, 68, 81, 0.2);
}

.rating i {
    font-size: 0.8rem;
    margin-right: 2px;
}

/* Logo Slider - Infinite Scroll */
.logo-slider {
    overflow: hidden;
    padding: 4rem 0;
    white-space: nowrap;
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.4); /* Subtle glass bar effect */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.logo-track {
    display: flex;
    width: calc(250px * 20);
    animation: scroll 40s linear infinite;
    gap: 2rem;
}

.logo-slide {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-slide img {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Removed grayscale to show original colors */
    opacity: 0.85; /* Increased base opacity */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-slide img:hover {
    opacity: 1;
    transform: scale(1.08);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10 - 10rem)); } /* Adjusted for gap */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 1001;
}

/* Mobile Resets */
@media (max-width: 968px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1000;
        gap: 2rem;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 2rem;
    }
    
    #navbar.scrolled {
        width: 100%;
        left: 0;
        border-radius: 0;
        margin-top: 0;
    }

    #navbar.scrolled .logo {
        transform: translateX(0);
    }

    #navbar .container {
        padding: 0 2rem;
    }

    /* Fix all inline grid columns */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .container { padding: 0 1.5rem; }
    
    .section {
        padding: 5rem 0; /* Huge 10rem padding reduced for mobile */
    }
    
    .hero { 
        text-align: center; 
        padding: 6rem 0 3rem 0; /* Better top padding for hero */
    }
    
    .hero .container, .bento-grid, .contact-wrapper, .client-grid, .process-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem; /* Consistent smaller gap for mobile grids */
    }
    
    .section-title { 
        text-align: center; 
        margin: 0 auto 3rem; 
    }
    
    .section-title h2 {
        font-size: 2.5rem; /* Down from 3.5rem */
    }
    
    .bento-item {
        padding: 2rem; /* Give components a bit more breathing room */
    }
    
    .bento-item.large { grid-column: span 1; }
    
    h1 { font-size: 2.5rem; } /* Down from 4rem */
    .page-header h1 { font-size: 3rem; }
    
    h3 { font-size: 1.5rem; } /* Downsize h3 slightly */
    
    .client-grid { gap: 2rem; }
    
    .project-card {
        grid-template-columns: 1fr !important;
        flex-direction: column; /* Just in case it's a flexbox */
    }
    
    .project-content {
        padding: 2rem !important;
    }
    
    .project-image {
        height: 250px; /* Reduced from 350px so it fits nicely */
    }
    
    /* Footer centering and fixing gap */
    footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    /* Mobile specific adjustment for buttons */
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
