/* Professional Modern Theme - Beige & Dark Grey */
:root {
    /* Palette: Beige & Dark Grey */
    --bg-deep: #DDD0C8;
    /* Beige Background */
    --bg-panel: #EAE4DF;
    /* Lighter Beige for panels */
    --bg-card: #F2EFEC;
    /* Very Light Beige/White-ish Cards */

    --primary: #323232;
    /* Dark Grey Primary */
    --primary-hover: #1a1a1a;
    /* Even Darker Grey */
    --secondary: #555555;
    /* Mid Grey */
    --accent: #ffffff;
    /* White Accents */

    --text-main: #323232;
    /* Dark Grey Headings */
    --text-muted: #555555;
    /* Mid Grey Body */
    --text-light: #ffffff;
    /* Text on dark backgrounds */

    --border-light: rgba(50, 50, 50, 0.1);
    --border-glow: rgba(50, 50, 50, 0.05);

    --shadow-sm: 0 4px 6px rgba(50, 50, 50, 0.05);
    --shadow-md: 0 8px 16px rgba(50, 50, 50, 0.08);
    --shadow-lg: 0 15px 30px rgba(50, 50, 50, 0.12);

    --font-header: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: var(--radius-md);
}

/* Layout */
section {
    padding: 6rem 0;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-header);
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--primary);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 65ch;
}

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

/* Header */
header {
    background: rgba(221, 208, 200, 0.9);
    /* Beige Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

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

/* Magnetic/Scale Animation for links */
.nav-links a:not(.btn-primary):hover {
    transform: scale(1.1);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #DDD0C8 !important;
    /* Beige text on Dark Button */
    padding: 0.8rem 2rem;
    border-radius: 30px;
    /* Pill shape for modern feel */
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(50, 50, 50, 0.2);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(50, 50, 50, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
    background: var(--bg-deep);
    overflow: hidden;
    position: relative;
}

/* Abstract Background Shapes for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(50, 50, 50, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1.2;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Hero Illustration (replaces canvas logic if needed, but styling wrapper) */
#canvas-container {
    width: 100%;
    height: 500px;
    max-width: 600px;
    position: relative;
    mix-blend-mode: multiply;
    /* Blends dark elements nicely on beige */
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--primary);
    /* Dark Grey Band */
    color: #DDD0C8;
    position: relative;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    /* Slanted Edges for interest */
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-item h3 {
    font-size: 3.5rem;
    color: #DDD0C8;
    /* Beige Text */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(221, 208, 200, 0.8);
    font-weight: 500;
    margin: 0 auto;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Services Cards */
.services {
    background: var(--bg-deep);
}

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

.service-card {
    background: var(--bg-card);
    /* Light Beige/White Card */
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

/* Hover Animation: Lift & Glow */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(50, 50, 50, 0.15);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    /* Illustration Style Circle */
    background: #DDD0C8;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.5s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Icon Pulse Animation */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #DDD0C8;
    box-shadow: 0 0 0 10px rgba(50, 50, 50, 0.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--secondary);
}

.service-link:hover i {
    transform: translateX(6px);
}

/* Brands Section */
.brands-section {
    padding: 6rem 0;
    background: var(--bg-panel);
    /* Lighter Beige */
    position: relative;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.4s ease;
    opacity: 0.7;
    filter: grayscale(100%);
}

.brand-item i {
    font-size: 2.5rem;
}

/* Logo Pop Animation */
.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary);
}

/* Why Us */
#why-us {
    background: var(--bg-deep) !important;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #DDD0C8;
    padding-top: 6rem;
    padding-bottom: 3rem;
    font-size: 1rem;
    border-top: 5px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #DDD0C8;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col ul li a {
    color: rgba(221, 208, 200, 0.7);
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
    /* Slide effect */
}

.footer-logo {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    color: #DDD0C8;
    display: block;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: #DDD0C8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: #DDD0C8;
    color: var(--primary);
    transform: translateY(-5px) rotate(360deg);
    /* Spin animation */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(221, 208, 200, 0.6);
    font-size: 0.9rem;
}

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

.legal-links a:hover {
    color: #ffffff;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Illustration Styles & Placeholders if image fails */
.illustration-placeholder {
    width: 100%;
    height: 200px;
    background: #EAE4DF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem auto;
        border-left: none;
        padding-left: 0;
    }

    #canvas-container {
        height: 350px;
    }
}

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

/* Mobile Menu */
.hamburger {
    display: none !important;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-footer {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-deep);
        /* Beige Menu */
        border-left: 1px solid rgba(50, 50, 50, 0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 2rem;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary);
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease;
    }

    .nav-links.nav-active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.nav-active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.nav-active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.nav-active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.nav-active a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .mobile-menu-footer {
        display: flex;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .mobile-menu-footer a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(50, 50, 50, 0.1);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        border: 1px solid var(--primary);
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .hero {
        padding-top: 140px;
        gap: 2rem;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}