:root {
    /* Color System (Warm Dark Luxury) */
    --bg-base: #0c0c0c;
    --bg-sec: #151515;
    --bg-layer: #1c1c1c;
    
    /* Accent Palette */
    --accent-gold: #d4af37;
    --accent-beige: #e8dcc6;
    --accent-terra: #c46a3a;
    --accent-olive: #3b4a3f;
    --accent-purple: #c4b5cd; /* Light purple accent */
    
    /* Typography Colors */
    --text-primary: #f8f6f2;
    --text-sec: #cfc7b8;
    --text-muted: #8a8174;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(196, 181, 205, 0.08); /* Infused with light purple */
    --glass-hover: rgba(196, 181, 205, 0.1);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1400px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-pill: 50px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7; /* Cleaner reading experience */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Ambient Purple Glow inside the website */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(196, 181, 205, 0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(196, 181, 205, 0.04) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2.5rem); }

p {
    color: var(--text-sec);
    margin-bottom: 1.6rem;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: var(--bg-layer);
    object-fit: cover;
}

/* Selections & Focus Rings */
::selection {
    background: var(--accent-purple);
    color: var(--bg-base);
}

:focus {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Layout System */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

section { padding: 140px 0; }
.mt-large { margin-top: 80px; }
.text-center { text-align: center; }

/* Grid System */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}
.gap-large { gap: 110px; }
.align-center { align-items: center; }

/* Glass UI Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
}

/* Header & Navigation */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(196, 181, 205, 0.12);
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-beige);
    text-transform: uppercase;
}

@media (min-width: 769px) {
    .desktop-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 45px;
        align-items: center;
    }
}

.desktop-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    color: var(--text-sec);
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--accent-purple);
}

.mobile-only { display: none; }
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 9px; }
.mobile-menu-toggle span:nth-child(3) { top: 18px; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-base);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--accent-purple);
    box-shadow: 0 6px 20px rgba(196, 181, 205, 0.3);
    transform: translateY(-2px);
    color: var(--bg-base);
}

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

.btn-secondary:hover {
    background: rgba(196, 181, 205, 0.1);
    border-color: var(--accent-purple);
    color: var(--accent-beige);
}

.link-arrow {
    color: var(--accent-purple);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}
.link-arrow:hover { color: var(--accent-beige); }

.btn-text {
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}
.btn-text::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.btn-text:hover::after { transform: translateX(5px); }
.btn-text:hover { color: var(--accent-beige); }

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 0;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Fixes overlap just after hero section */
}

.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    animation: slowZoom 20s infinite alternate linear;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(12,12,12,0.4) 0%, rgba(12,12,12,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Fluid Hero Additions */
.hero-fluid-shape {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    animation: fluidShape 15s ease-in-out infinite alternate;
    opacity: 0.35;
    pointer-events: none;
}

.hero-fluid-shape.shape-1 {
    width: 50vw;
    height: 50vw;
    min-width: 400px;
    min-height: 400px;
    background: var(--accent-purple);
    top: -20%;
    left: -10%;
}

.hero-fluid-shape.shape-2 {
    width: 45vw;
    height: 45vw;
    min-width: 350px;
    min-height: 350px;
    background: var(--accent-gold);
    bottom: -15%;
    right: -10%;
    animation-direction: alternate-reverse;
    animation-duration: 20s;
}

@keyframes fluidShape {
    0% { 
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; 
        transform: rotate(0deg) scale(0.9) translate(0, 0); 
    }
    100% { 
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; 
        transform: rotate(45deg) scale(1.1) translate(30px, 30px); 
    }
}

.fluid-wave {
    position: absolute;
    bottom: -2px; /* Prevent subtle gaps */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.fluid-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.fluid-wave .shape-fill {
    fill: var(--bg-base);
}

.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Page Headers */
.page-header {
    padding: 220px 0 100px;
    background: var(--bg-sec);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

/* Featured Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 70px;
}

.company-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.company-card .card-img {
    height: 350px;
    overflow: hidden;
}

.company-card .card-img img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.company-card .card-content {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: none;
    flex-grow: 1;
}

/* Detailed Companies Layout */
.company-showcase {
    padding: 100px 0;
    border-bottom: 1px solid var(--glass-border);
}
.company-showcase:last-child { border-bottom: none; }

.company-meta {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--glass-border);
}
.meta-item h4 { font-size: 1rem; color: var(--accent-purple); margin-bottom: 5px; font-family: var(--font-body); }
.meta-item p { margin: 0; font-size: 0.95rem; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
}
.portfolio-grid img { border-radius: var(--radius-md); height: 350px; width: 100%; }

/* Services Layout */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    margin-bottom: 140px;
}
.service-row:nth-child(even) .service-img { order: 2; }
.service-row img { border-radius: var(--radius-md); height: 500px; width: 100%; }

.service-highlights { list-style: none; margin-top: 25px; }
.service-highlights li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-sec);
}
.service-highlights li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

/* Gallery Masonry */
.masonry-grid {
    column-count: 3;
    column-gap: 25px;
    margin-top: 50px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

/* Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 90px;
}
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-sec);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
input, textarea, select {
    width: 100%;
    background: var(--bg-sec);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(196, 181, 205, 0.15);
    background: var(--bg-layer);
}
textarea { resize: vertical; min-height: 160px; }

/* Legal Pages */
.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content h2 { margin-top: 50px; font-size: 2rem; color: var(--accent-beige); }

/* Footer */
.site-footer {
    background: var(--bg-sec);
    border-top: 1px solid var(--glass-border);
    padding: 100px 0 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 70px;
}
.footer-brand h3 { color: var(--accent-purple); }
.footer-links h4, .footer-contact h4 {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-links a, .footer-contact a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-beige); padding-left: 5px; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.img-hover-zoom { 
    overflow: hidden; 
    border-radius: var(--radius-md); 
}
.img-hover-zoom img { transition: transform 0.7s ease; }
.img-hover-zoom:hover img { transform: scale(1.05); }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    section { padding: 100px 0; }
    .page-header { padding: 180px 0 80px; }
    .companies-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry-grid { column-count: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service-row { gap: 50px; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .page-header { padding: 140px 0 60px; }
    .company-showcase { padding: 70px 0; }
    .mt-large { margin-top: 50px; }
    .section-header { margin-bottom: 40px !important; }
    
    .mobile-menu-toggle { display: block; }
    
    .desktop-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(12, 12, 12, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 30px 5%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        gap: 25px;
    }
    
    .desktop-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

    /* Convert Grids to Columns */
    .grid-2-cols, .contact-grid { 
        display: flex; 
        flex-direction: column; 
        gap: 45px; 
    }
    
    /* Ensure images always appear above text on mobile for consistency */
    .grid-2-cols > .img-hover-zoom,
    .grid-2-cols > .intro-image-wrapper {
        order: -1 !important;
    }

    .service-row { 
        display: flex; 
        flex-direction: column; 
        gap: 40px; 
        margin-bottom: 90px;
    }
    .service-row > .service-img {
        order: -1 !important;
    }

    .companies-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .company-meta { flex-direction: column; gap: 20px; padding: 25px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 35px; }
    .portfolio-grid img { height: 280px; }
    
    .masonry-grid { column-count: 1; margin-top: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .service-row img { height: 350px; }
    .company-card .card-img { height: 300px; }
    
    .cta-inner.glass-panel { padding: 50px 25px !important; }
    
    .fluid-wave svg { height: 60px; }
}

@media (max-width: 480px) {
    section { padding: 60px 0; }
    .page-header { padding: 120px 0 50px; }
    .hero-section { min-height: 600px; }
    
    .hero-actions { 
        flex-direction: column; 
        gap: 15px; 
    }
    .hero-actions a { 
        width: 100%; 
        text-align: center; 
    }
    
    .glass-panel { padding: 25px; }
    
    .service-row img { height: 250px; }
    .portfolio-grid img { height: 220px; }
    .company-card .card-img { height: 250px; }
    
    .fluid-wave svg { height: 40px; }
}