:root {
    /* Color Palette - Microsoft Fabric Green Theme */
    --primary: #008272;
    /* Fabric Teal/Green */
    --primary-dark: #004B43;
    --secondary: #252423;
    /* Dark Grey */
    --accent: #00B294;
    /* Lighter Teal */
    --background: #FFFFFF;
    --surface: #F3F2F1;
    /* Light Grey Surface */
    --text-main: #201F1E;
    --text-light: #605E5C;
    --white: #FFFFFF;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-md: 4px;
    /* More professional, less rounded */
    --radius-lg: 8px;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

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

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

.btn-secondary:hover {
    background: var(--surface);
    color: var(--text-main);
}

/* Special Low-key Highlight Button */
.btn-special {
    border: 1px solid var(--accent);
    color: var(--primary);
    background: rgba(0, 178, 148, 0.05);
    /* Very subtle teal tint */
    font-weight: 600;
    margin-right: 8px;
    /* Spacing from Contact button */
}

.btn-special:hover {
    background: rgba(0, 178, 148, 0.1);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 130, 114, 0.15);
}

.highlight {
    color: var(--primary);
    position: relative;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Header */
header {
    background: transparent;
    /* Start transparent */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    height: 90px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.header-scrolled {
    background: #FFFFFF;
    /* Solid white to blend with JPG logo */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

/* Logo Blending Fix */
.logo img {
    height: 70px;
    /* Increased for better visibility */
    width: auto;
    /* Use mix-blend-mode if the image has a white background that needs to blend */
    mix-blend-mode: multiply;
    display: block;
    transition: transform 0.2s ease;
}

.logo a {
    display: block;
}

.logo a:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.95rem;
}

.link-grey {
    display: inline-block;
    color: #666;
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 6px;
    transition: all 0.2s;
}

/* Fix for Button Colors in Nav */
.nav-links .btn-primary {
    color: var(--white) !important;
}

.nav-links .btn-special {
    color: var(--primary) !important;
}

.link-grey:hover {
    background: #e5e5e5;
    color: #333;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero */
#hero {
    height: 90vh;
    /* Slightly shorter for cleaner look */
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 100px;
    /* Offset for larger header */
    /* Offset larger header */
    background: radial-gradient(circle at 70% 30%, rgba(0, 130, 114, 0.08) 0%, transparent 60%),
        linear-gradient(to bottom, #FFFFFF, #FAF9F8);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    /* Subtle blend */
}

.hero-bg {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding-top: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--secondary);
    letter-spacing: -1px;
}

.brand-text {
    font-family: var(--font-heading);
    color: #008272 !important;
    /* Forces the Fabric Green */
    font-weight: 800;
}

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Philosophy */
#philosophy {
    padding: var(--section-padding);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.glass-card {
    background: var(--white);
    border: 1px solid #E1DFDD;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.glass-card .icon,
.glass-card h3,
.glass-card p {
    transition: transform 0.4s ease;
}

.glass-card:hover .icon,
.glass-card:hover h3,
.glass-card:hover>p {
    transform: translateY(-20px);
}

.glass-card .clean-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin-top: 0;
}

.glass-card:hover .clean-list {
    max-height: 300px;
    opacity: 1;
    transform: translateY(-10px);
    margin-top: 16px;
}

/* Smaller, relevant icons */
/* Smaller, relevant icons */
.icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Services */
#services {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, #ffffff, #f0f2f5);
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.service-item {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    /* Added for Hover Effect */
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent);
    transform: translateY(-5px);
}

/* Hover Content Effects (Mimicking Glass Card) */
.service-item h3,
.service-item p {
    transition: transform 0.4s ease;
}

.service-item:hover h3,
.service-item:hover p {
    transform: translateY(-20px);
}

.service-item .clean-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin-top: 0;
    /* List Style */
    list-style: none;
    /* Ensure no bullets */
}

/* Shared clean list item style if not global */
.service-item .clean-list li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--accent);
}

.service-item:hover .clean-list {
    max-height: 300px;
    opacity: 1;
    transform: translateY(-10px);
    margin-top: 16px;
}

.service-item h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Fabric Capabilities */
#fabric-capabilities {
    padding: var(--section-padding);
    background: var(--surface);
}

.fabric-grid {
    display: grid;
    /* Exactly 3 columns for 3x3 layout */
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.fabric-card {
    background: rgba(255, 255, 255, 0.75);
    /* Semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 20px;
    /* Rounded corners as requested */
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Glass edge */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align */
    height: 100%;
}

.fabric-card:hover {
    box-shadow: 0 12px 32px rgba(0, 130, 114, 0.15);
    /* Teal glow */
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(0, 130, 114, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.fabric-icon {
    /* Updated for 48px icons */
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fabric-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fabric-card h3 {
    color: var(--secondary);
    /* Darker text for title */
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.fabric-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 24px;
    flex-grow: 1;
}

.fabric-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.fabric-link:hover {
    border-bottom-color: var(--primary-dark);
    text-decoration: none;
}

/* Fabric CTA Button */
.btn-fabric {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: var(--white);
    border: 1px solid #E1DFDD;
    border-radius: 100px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 24px;
    text-decoration: none;
}

.btn-fabric:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 130, 114, 0.15);
    color: var(--primary);
}

.btn-fabric img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.btn-fabric:hover img {
    transform: scale(1.1);
}

/* Why Us (Remastered) */
#why-us {
    padding: 100px 20px;
    /* Increased padding for smoothness */
    background: var(--white);
    position: relative;
    z-index: 10;
}

.why-grid {
    display: grid;
    gap: 40px;
}

/* Explicit 3-column centered layout */
.three-col-centered {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 40px auto 0;
}

.why-card {
    background: var(--white);
    padding: 40px 32px;
    /* Smoother internal spacing */
    border-radius: 24px;
    /* More charming rounding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer, richer shadow */
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Elegant easing */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content for charm */
    text-align: center;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 130, 114, 0.15);
    /* Green-tinted shadow lift */
    border-color: rgba(0, 130, 114, 0.3);
}

.why-icon {
    color: var(--primary);
    margin-bottom: 24px;
    width: 56px;
    height: 56px;
    background: rgba(0, 130, 114, 0.05);
    /* Subtle background circle */
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 16px;
    font-weight: 700;
}

.why-card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive adjustment for Why Us */
@media (max-width: 900px) {
    .three-col-centered {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* Engagement */
#engagement {
    padding: var(--section-padding);
    background: var(--secondary);
    color: var(--white);
}

#engagement .section-header h2 {
    color: var(--white);
}

#engagement .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
    flex-wrap: wrap;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background: var(--accent);
    color: var(--secondary);
}

.step h3 {
    margin-bottom: 8px;
    color: var(--white);
}

.step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Contact */
#contact {
    padding: 100px 20px;
    text-align: center;
    background: var(--surface);
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.contact-container p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 48px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background: var(--secondary);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        display: none;
    }

    .step {
        margin-bottom: 40px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Remastered Contact Section --- */

.contact-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.contact-helper-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.9;
}

/* Primary "Magic" Button */
.btn-magic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #008272 0%, #005c51 100%);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 130, 114, 0.25);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 2px solid transparent;
    /* detailed border */
    min-width: 280px;
    /* Ensure substantial width */
}

.btn-magic:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 130, 114, 0.4);
    background: linear-gradient(135deg, #00A38D 0%, #007568 100%);
}

.btn-magic svg {
    margin-right: 0 !important;
    /* Reset inline style override */
}

/* Secondary "Ghost" Link */
.btn-secondary-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    padding-bottom: 2px;
}

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