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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Fixed navbar compensation */
:root {
    --nav-h-mobile: 96px;   /* matches logo height on mobile */
    --nav-h-desktop: 128px; /* matches logo height on desktop */
}

body {
    padding-top: var(--nav-h-mobile);
}

@media (min-width: 768px) {
    body {
        padding-top: var(--nav-h-desktop);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0; /* tighter to avoid oversized header */
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    min-width: 0; /* prevent overflow pushing menu */
}

.nav-logo h2 {
    display: none;
}

.site-logo {
    height: 96px;
    width: auto;
    display: block;
    max-width: 220px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0; /* ensure hamburger visible */
    }
}

@media (min-width: 768px) {
    .site-logo {
        height: 128px;
        max-width: 300px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Mobile First */
.hero {
    padding: 5rem 0 2rem 0; /* Increased top padding for better mobile spacing */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    max-width: 100%;
    width: 100%;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2d3748;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dynamic Headline Word Animations */
#dynamic-word {
    display: inline-block;
    position: relative;
    will-change: transform, opacity;
}

.rotate-enter {
    animation: dynamicWordIn 450ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rotate-leave {
    animation: dynamicWordOut 250ms ease forwards;
}

@keyframes dynamicWordIn {
    0% { opacity: 0; transform: translateY(8px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dynamicWordOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
    .rotate-enter, .rotate-leave {
        animation: none !important;
    }
}

.hero-description {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 100%;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.stat-number {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #4a5568;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.2;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
    margin-top: 0;
    margin-bottom: 0;
}

/* Button Styles - Common base */
.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    min-height: 48px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Button Styles - Redesigned */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hero-visual {
    display: none;
}

.ai-brain-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 2;
}

.ai-brain-icon i {
    font-size: 1.5rem;
    color: white;
}

.decorative-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #87CEEB;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.dot-1 { top: 20%; left: 20%; animation-delay: 0s; }
.dot-2 { top: 30%; right: 30%; animation-delay: 1s; }
.dot-3 { bottom: 20%; left: 30%; animation-delay: 2s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .hero {
        padding: 5rem 0 1.5rem 0; /* Increased top padding for mobile */
        min-height: 75vh;
    }
    
    .hero-stats {
        margin-bottom: 2.5rem;
    }
    
    .hero-actions {
        margin-bottom: 0;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .btn, .btn-primary, .btn-secondary {
        min-height: 52px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    .hero {
        padding: 6rem 0 3rem 0;
        min-height: 75vh;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .stat-item {
        flex: 0 0 auto;
        min-width: 120px;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1rem;
        max-width: 500px;
        justify-content: flex-start;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        flex: 1;
        min-width: 200px;
        max-width: 240px;
    }
    
    .hero-wrapper {
        flex-direction: row;
        gap: 4rem;
        align-items: center;
    }
    
    .hero-content {
        flex: 1;
        max-width: 600px;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        flex: 0 0 300px;
    }
    
    .ai-brain-icon {
        width: 80px;
        height: 80px;
    }
    
    .ai-brain-icon i {
        font-size: 2rem;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 7rem 0 4rem 0;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 3.5rem;
    }
    
    .stat-item {
        min-width: 140px;
    }
    
    .hero-wrapper {
        gap: 6rem;
    }
    
    .hero-content {
        max-width: 700px;
    }
    
    .hero-visual {
        flex: 0 0 400px;
    }
    
    .ai-brain-icon {
        width: 120px;
        height: 120px;
    }
    
    .ai-brain-icon i {
        font-size: 3rem;
    }
    
    .dot {
        width: 16px;
        height: 16px;
    }
}

/* Social Proof */
.social-proof {
    padding: 3rem 0;
    background: white;
    text-align: center;
}

.social-proof-text {
    color: #4a5568;
    margin-bottom: 2rem;
    font-weight: 500;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Client Logo Styles */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex: 1;
    min-width: 160px;
    max-width: 200px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 65px;
    min-height: 65px;
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Tree Services Marketing Logo */
.map-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.map-yellow {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background: #FFD700;
    border-radius: 3px 0 0 0;
}

.map-green {
    position: absolute;
    top: 14px;
    left: 0;
    width: 14px;
    height: 14px;
    background: #32CD32;
    border-radius: 0 0 0 3px;
}

.map-blue {
    position: absolute;
    top: 0;
    left: 14px;
    width: 14px;
    height: 14px;
    background: #4169E1;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.map-pin {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 10px;
    height: 10px;
    background: #DC143C;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-icon {
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 0.65rem;
    line-height: 1.1;
    flex: 1;
    text-align: left;
}

.text-green { color: #32CD32; }
.text-black { color: #000; }
.text-blue { color: #4169E1; }

/* Dental Media Logo */
.logo-container.dental {
    background: #2C2C2C;
    padding: 1rem 1.25rem;
}

.dental-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dental-banner::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: #D2B48C;
}

.dental-banner span {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ProtonX Media Logo */
.logo-container.protonx {
    background: linear-gradient(135deg, #E8F5E8 0%, #E0F6FF 100%);
    padding: 1rem 1.25rem;
    position: relative;
}

.atom-structure {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.orbit {
    position: absolute;
    border: 2px solid #B0C4DE;
    border-radius: 50%;
}

.orbit-1 {
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    transform: rotate(0deg);
}

.orbit-2 {
    width: 20px;
    height: 20px;
    top: 4px;
    left: 4px;
    transform: rotate(60deg);
}

.orbit-3 {
    width: 24px;
    height: 24px;
    top: 2px;
    left: 2px;
    transform: rotate(120deg);
}

.electron {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFA500;
    border-radius: 50%;
}

.electron-1 {
    top: 4px;
    left: 16px;
}

.electron-2 {
    top: 14px;
    left: 4px;
}

.electron-3 {
    top: 18px;
    left: 18px;
}

.protonx-text {
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1.1;
    flex: 1;
    text-align: left;
}

.text-orange { color: #FF8C00; }
.x-arrow {
    position: relative;
}

.x-arrow::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 4px solid #FF8C00;
    border-bottom: 2px solid transparent;
    border-top: 2px solid transparent;
}

/* 97 Switch Logo (image-based) */
.logo-container.logo-image {
    background: white;
    border: 1px solid #E5E5E5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
}

.logo-container.logo-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #87CEEB;
}

.logo-img {
    max-height: 50px; /* Increased height for better visibility */
    width: 100%; /* Take full width of container */
    height: auto;
    object-fit: contain; /* Maintain aspect ratio */
    object-position: center; /* Center the image */
}

/* True Digital Marketing Logo */
.logo-container.true-digital {
    background: #4A90E2;
    padding: 1rem 1.25rem;
}

.td-circle {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.td-letters {
    font-size: 1rem;
    font-weight: 700;
    color: #4A90E2;
    letter-spacing: -1px;
}

.td-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.td-line1 {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
}

.td-line2 {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 1px;
}

/* Sell My Vacant Logo */
.logo-container.sell-vacant {
    background: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vacant-circle {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.vacant-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #2D5016;
    border-radius: 50%;
    z-index: 1;
}

.vacant-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border: 1px solid #2D5016;
    border-radius: 50%;
}

.vacant-content {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: white;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.vacant-top {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vacant-mountains {
    position: relative;
    width: 20px;
    height: 8px;
}

.mountain {
    position: absolute;
    bottom: 0;
    background: #2D5016;
    border-radius: 2px 2px 0 0;
}

.mountain-left {
    left: 2px;
    width: 8px;
    height: 8px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.mountain-right {
    right: 2px;
    width: 6px;
    height: 6px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.vacant-trees-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tree {
    width: 2px;
    height: 6px;
    background: #2D5016;
    position: relative;
}

.tree::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -1px;
    width: 4px;
    height: 3px;
    background: #2D5016;
    border-radius: 50% 50% 0 0;
}

.vacant-sun {
    position: absolute;
    top: 1px;
    right: 4px;
    width: 3px;
    height: 3px;
    background: #FF8C69;
    border-radius: 50%;
}

.vacant-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.vacant-line1 {
    display: block;
    font-size: 0.4rem;
    font-weight: 700;
    color: #FF8C69;
    line-height: 1;
    letter-spacing: 0.5px;
}

.vacant-line2 {
    display: block;
    font-size: 0.4rem;
    font-weight: 700;
    color: #FF8C69;
    line-height: 1;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.vacant-bottom {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.vacant-fields {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.field {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #4A7C59;
    border-radius: 1px;
}

.field-1 {
    bottom: 0;
    background: #2D5016;
}

.field-2 {
    bottom: 2px;
    background: #4A7C59;
}

.field-3 {
    bottom: 4px;
    background: #2D5016;
}

.field-1::after {
    content: 'WWWWWW';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 0.2rem;
    color: #2D5016;
    letter-spacing: 0.5px;
}

.vacant-trees-bottom {
    position: absolute;
    bottom: 2px;
    right: 2px;
    display: flex;
    gap: 1px;
}

.tree-small {
    width: 1px;
    height: 4px;
    background: #2D5016;
    position: relative;
}

.tree-small::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -0.5px;
    width: 2px;
    height: 2px;
    background: #2D5016;
    border-radius: 50% 50% 0 0;
}

/* Mobile-first responsive design for logos */
@media (max-width: 768px) {
    .client-logos {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .client-logos::-webkit-scrollbar {
        display: none;
    }
    
    .client-logo {
        flex: 0 0 auto;
        min-width: 200px;
        max-width: 200px;
        padding: 0.5rem;
    }
    
    .logo-container {
        height: 70px;
        min-height: 70px;
        padding: 0.75rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        white-space: nowrap;
    }
    
    .logo-img {
        max-height: 45px; /* Slightly larger for mobile visibility */
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    
    /* Adjust logo elements for mobile carousel */
    .map-icon,
    .atom-structure,
    .vacant-circle {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .logo-text,
    .protonx-text,
    .switch-text,
    .td-text {
        font-size: 0.65rem;
        text-align: center;
        margin: 0;
        flex: 1;
    }
    
    .dental-banner span {
        font-size: 0.9rem;
    }
    
    .switch-97-complete::before {
        font-size: 1.2rem;
    }
    
    .switch-97-complete::after {
        font-size: 0.65rem;
    }
    
    .number-9 {
        font-size: 1.6rem;
    }
    
    .switch-oval {
        width: 16px;
        height: 6px;
        top: -6px;
        right: -10px;
    }
    
    .td-circle {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .td-letters {
        font-size: 1rem;
    }
    
    .td-line1,
    .td-line2 {
        font-size: 0.75rem;
    }
    
    .vacant-line1,
    .vacant-line2 {
        font-size: 0.35rem;
    }
    
    /* Adjust specific logo layouts for mobile carousel */
    .logo-container.switch {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-container.true-digital {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .logo-container.dental {
        justify-content: center;
    }
    
    .logo-container.sell-vacant {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .client-logos {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .client-logo {
        min-width: 180px;
        max-width: 180px;
    }
    
    .logo-container {
        height: 70px;
        min-height: 70px;
        padding: 0.75rem;
    }
    
    .logo-img {
        max-height: 40px; /* Smaller for very small screens */
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    
    .map-icon,
    .atom-structure,
    .vacant-circle {
        width: 35px;
        height: 35px;
    }
    
    .td-circle {
        width: 35px;
        height: 35px;
    }
    
    .logo-text,
    .protonx-text,
    .switch-text,
    .td-text {
        font-size: 0.65rem;
    }
    
    .dental-banner span {
        font-size: 0.9rem;
    }
    
    .switch-97-complete::before {
        font-size: 1.1rem;
    }
    
    .switch-97-complete::after {
        font-size: 0.6rem;
    }
    
    .number-9 {
        font-size: 1.4rem;
    }
    
    .switch-oval {
        width: 14px;
        height: 5px;
        top: -5px;
        right: -8px;
    }
    
    .td-letters {
        font-size: 1rem;
    }
    
    .vacant-line1,
    .vacant-line2 {
        font-size: 0.35rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .client-logo {
        min-width: 140px;
        max-width: 180px;
    }
    
    .logo-container {
        height: 60px;
        min-height: 60px;
        padding: 0.75rem 1rem;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.service-card p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.step p {
    color: #4a5568;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

/* Case Studies List (one per row) */
.case-studies-list {
    padding: 80px 0;
    background: #ffffff;
}

.cs-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(2, 8, 20, 0.06);
    margin-bottom: 1.5rem;
    background: #fff;
}

.cs-media {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Ensure logos/photos fit nicely without changing holder size */
.case-studies-list .cs-image {
    object-fit: contain;
    padding: 12px;
    background: #ffffff;
}

.cs-body { }

.cs-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.cs-summary {
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.cs-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5b67e7;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.25);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.cs-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-points li {
    color: #4a5568;
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.25rem;
}

.cs-points li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px;
}

.cs-actions { margin-top: 0.75rem; }

.cs-actions .btn-primary { }

@media (min-width: 768px) {
    .cs-card {
        grid-template-columns: 2fr 3fr;
        padding: 1.75rem;
        gap: 1.75rem;
    }
    .cs-image {
        height: 260px;
    }
}

@media (min-width: 1024px) {
    .cs-card {
        grid-template-columns: 3fr 4fr;
        padding: 2rem;
        gap: 2rem;
    }
    .cs-image {
        height: 300px;
    }
}

/* Case Detail Page refinements */
.case-detail {
    padding: 48px 0 64px 0;
    background: #fff;
}

.case-detail .container {
    max-width: 960px;
}

.case-detail .section-header {
    text-align: center;
    margin: 2rem auto 1.25rem;
}

.case-detail .section-header h2 {
    position: relative;
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #2d3748;
    padding-bottom: 0.5rem;
}

.case-detail .section-header h2:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 84px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 10px rgba(102,126,234,0.35);
}

.case-detail .section-header p {
    max-width: 820px;
    margin: 0.75rem auto 0;
    color: #4a5568;
}

.case-detail .services-grid {
    gap: 1.25rem;
    margin-top: 1rem;
}

.case-detail .service-card {
    border-radius: 14px;
}

@media (min-width: 1024px) {
    .case-detail { padding: 40px 0 56px 0; }
    .case-detail .section-header { margin: 2rem auto 1rem; }
    .case-detail .section-header h2 { font-size: 2rem; }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.125rem;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #4a5568;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #fbbf24;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
}

.member-photo {
    margin-bottom: 1.5rem;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.photo-placeholder i {
    font-size: 3rem;
    color: white;
}

.team-member h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: #4a5568;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-choose {
    padding: 80px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature p {
    color: #4a5568;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Make CTA buttons match hero/top buttons */
.cta-section .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-section .btn-secondary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.cta-section .btn-secondary:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #4a5568;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #4a5568;
    margin: 0;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #4a5568;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    
    
    
    
    
    .ai-visualization {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .ai-brain {
        width: 80px;
        height: 80px;
    }
    
    .ai-brain i {
        font-size: 2rem;
    }
    
    .point {
        width: 12px;
        height: 12px;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .process {
        padding: 60px 0;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-choose {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 5rem 0 1.5rem 0;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    .stat {
        text-align: center;
        min-width: 80px;
    }
    
    .stat h3 {
        font-size: 1.1rem;
    }
    
    .stat p {
        font-size: 0.7rem;
    }
    
    .hero-cta {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    
    .ai-visualization {
        width: 150px;
        height: 150px;
    }
    
    .ai-brain {
        width: 60px;
        height: 60px;
    }
    
    .ai-brain i {
        font-size: 1.5rem;
    }
    
    .point {
        width: 8px;
        height: 8px;
    }
    
    /* Hide some decorative elements on very small screens */
    .point-4,
    .point-5 {
        display: none;
    }
    
    .connection-lines {
        opacity: 0.3;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .services {
        padding: 40px 0;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .process {
        padding: 40px 0;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .testimonials {
        padding: 40px 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .team {
        padding: 40px 0;
    }
    
    .member-photo {
        margin-bottom: 1rem;
    }
    
    .photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .photo-placeholder i {
        font-size: 2.5rem;
    }
    
    .why-choose {
        padding: 40px 0;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .contact {
        padding: 40px 0;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.service-card,
.testimonial-card,
.team-member,
.feature {
    transition: all 0.3s ease;
}

.service-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .gradient-text {
        color: #000;
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
    }
}
