/* Modern CSS Design System for DCN */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --color-teal: #00a699;
    --color-orange: #fbb040;
    --color-dark: #111111;
    --color-dark-soft: #1a1a1a;
    --color-light: #ffffff;
    --color-grey: #666666;
    --color-grey-light: #f4f4f4;
    
    --font-main: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

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

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

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Typography Utilities */
.text-teal { color: var(--color-teal); }
.text-orange { color: var(--color-orange); }
.bg-dark { background-color: var(--color-dark); color: var(--color-light); }
.bg-teal { background-color: var(--color-teal); color: var(--color-light); }

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    filter: brightness(0) invert(1); /* Default to white for dark backgrounds */
}

header.scrolled .logo img {
    filter: none; /* Original colors on scroll/light background */
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    color: var(--color-light); /* Default white for dark hero */
}

header.scrolled .nav-links a {
    color: var(--color-dark);
}

header .nav-links a.text-teal {
    background: var(--color-teal);
    color: var(--color-light) !important;
    padding: 0.8rem 1.5rem;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    transition: var(--transition);
}

header .nav-links a.text-teal:hover {
    background: var(--color-orange);
    transform: translateY(-2px);
}

header .nav-links a.text-teal::after {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-teal);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-teal) !important;
}

/* Hero Section - Reference Style: Geometric, Bold, Diagonal */
.hero, .page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-dark);
    padding-top: 100px;
    overflow: hidden;
}

.page-hero {
    min-height: 60vh;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 25vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -1vw;
}

.hero-diagonal {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--color-teal);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-diagonal-2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: var(--color-orange);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 5% 100%);
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 3;
}

.eyebrow {
    color: var(--color-orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    display: block;
    font-size: 1rem;
    position: relative;
    padding-left: 50px;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--color-teal);
}

.hero h1, .page-hero h1 {
    font-size: 6.5rem;
    color: var(--color-light);
    margin-bottom: 2rem;
    line-height: 0.9;
    letter-spacing: -2px;
}

.hero p, .page-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 550px;
    border-left: 3px solid var(--color-teal);
    padding-left: 2rem;
}

.btn {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-teal);
    color: var(--color-light);
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
}

.btn-primary:hover {
    background-color: var(--color-orange);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-light);
    color: var(--color-light);
    margin-left: 1.5rem;
    /* Using safe pixel-based clip-path to prevent button text cropping on wide buttons */
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
}

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

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.section-head {
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--color-teal);
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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

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

.metric-card {
    padding: 3rem 2rem;
    background: var(--color-grey-light);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-10px);
    background: var(--color-teal);
    color: var(--color-light);
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-label {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Problem Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.problem-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.problem-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-teal);
    opacity: 0.3;
}

.problem-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1);
}

.process-step {
    padding: 3rem 2rem;
    background: var(--color-dark-soft);
    position: relative;
}

.step-num {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 4rem 3rem;
    background: var(--color-light);
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-teal);
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    color: var(--color-light);
}

.service-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Case Studies */
.case-study-featured {
    background: var(--color-grey-light);
    padding: 6rem;
    position: relative;
    overflow: hidden;
}

.case-study-featured::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--color-teal);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.1;
}

.case-content {
    max-width: 600px;
}

.case-content h3 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
}

.case-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-teal);
}

.stat-label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-grey);
}

/* Team Members */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--color-light);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.team-img {
    aspect-ratio: 1/1;
    background: var(--color-grey-light);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: var(--transition);
}

.team-card:hover .team-img img {
    filter: grayscale(0);
    transform: scale(1.1);
}

.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.team-info p {
    font-size: 0.8rem;
    color: var(--color-teal);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Forms */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row-unequal {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-grey-light);
    border: 1px solid #eee;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--color-teal);
    background: white;
}

textarea {
    height: 150px;
    resize: vertical;
}

.notice {
    padding: 1rem;
    background: var(--color-teal);
    color: white;
    margin-bottom: 2rem;
    font-weight: 600;
}

footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 80px 0 40px;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 2rem;
}

.footer-links h4 {
    margin-bottom: 2rem;
    color: var(--color-teal);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-grey);
}

/* Responsive */
/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

header.scrolled .menu-toggle span {
    background: var(--color-dark);
}

@media (max-width: 1024px) {
    header {
        padding: 1rem 0;
        background: rgba(17, 17, 17, 0.9); /* Semi-dark background on mobile/tablet for visibility */
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.8rem;
        color: white !important;
    }

    /* Tablet Typography and Grid Optimization */
    .hero h1, .page-hero h1 { font-size: 3.8rem; line-height: 1.1; color: #fff !important; margin-bottom: 1.5rem; letter-spacing: -1px; }
    .hero p, .page-hero p { font-size: 1.1rem; padding-left: 1.8rem; color: #fff !important; opacity: 0.9; margin-bottom: 2rem; }
    .hero-bg-text { display: none; } /* Hide large background text */
    
    /* 2-Column Structures on Tablet for Premium Aesthetics */
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 2rem !important; }
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 2rem !important; }
    .process-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 3rem !important; }
    
    /* Single Columns on Tablet */
    .grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
    .contact-box { grid-template-columns: 1fr !important; gap: 3rem !important; }
    .form-row, .form-row-unequal { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .roadmap-container { flex-direction: column; gap: 4rem; }
    
    .desktop-only { display: none; }
    .process-step { padding: 4rem 2rem; }
    .hero-diagonal { width: 100%; opacity: 0.15; }
    .hero-diagonal-2 { display: none; }
    
    .section-title { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    .case-study-featured { padding: 4rem 2.5rem; }
    .case-stats { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    /* Mobile-specific adjustments to reduce content sizing */
    .hero h1, .page-hero h1 { font-size: 2.2rem !important; }
    .hero p, .page-hero p { font-size: 1rem !important; padding-left: 1.5rem !important; }
    
    /* Enforce strict single column per row layout on all grids */
    .grid, 
    .metrics-grid, 
    .services-grid, 
    .team-grid, 
    .process-grid, 
    .contact-box, 
    .form-row, 
    .form-row-unequal, 
    .footer-grid { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important; 
    }
    
    /* Hero Buttons stacked vertically */
    .hero-actions {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 2rem;
    }
    .hero-actions .btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* Case Study Stats stacked vertically */
    .case-stats {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .case-stats > div {
        width: 100% !important;
        text-align: left !important;
    }
    
    .section-title { font-size: 2rem !important; }
    .section { padding: 50px 0 !important; }
    .case-study-featured { padding: 3rem 1.5rem !important; }
}

/* Support Form Page Styles */
.support-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 3.5rem 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .support-form {
        padding: 2rem 1.5rem !important;
    }
}

/* Contact Form Box Styles */
.contact-form-box {
    padding: 4rem;
    position: relative;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .contact-form-box {
        padding: 2rem 1.5rem !important;
    }
}
