:root {
    --bg-main: #f8fafc;
    --bg-alt: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(15, 23, 42, 0.05);
    
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #6366f1;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --glow: 0 0 20px rgba(37, 99, 235, 0.15);
    
    --font-san: 'Inter', -apple-system, sans-serif;
    --font-thai: 'Prompt', -apple-system, sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-thai);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-main);
    box-shadow: var(--shadow-base);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-block {
    width: 100%;
}

.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.bg-alt {
    background-color: var(--bg-alt);
    max-width: 100%;
}

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

/* Glassmorphism */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-base);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    padding-top: 5rem;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3; /* Lighter opacity for light mode */
    z-index: 0;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #93c5fd; /* Light blue */
    top: 20%;
    left: 10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #c4b5fd; /* Light purple */
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-metrics {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.1));
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.metric h3 {
    font-size: 2.25rem;
    color: var(--primary);
    font-family: var(--font-san);
    line-height: 1;
    margin: 0;
}

.metric p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    height: 500px;
    z-index: 10;
}

.visual-card {
    position: absolute;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    background: var(--bg-alt);
    border-radius: 1rem;
}

.main-card {
    width: 80%;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.dots {
    display: flex;
    gap: 6px;
}
.dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: #cbd5e1;
}
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-weight: 500;
}

.chart-bar {
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.chart-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    animation: grow 2s ease-out forwards;
}

.chart-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
    font-weight: 500;
}

.float-card-1 {
    top: 10%;
    right: -5%;
    animation: float 6s infinite ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.float-card-2 {
    bottom: 15%;
    left: -5%;
    animation: float 8s infinite ease-in-out reverse;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Services Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--glow);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Benefits Section */
.benefits-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefits-list li {
    display: flex;
    gap: 1.5rem;
}

.benefit-icon {
    font-size: 2rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.benefits-list h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.benefits-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.big-glass {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: 1.5rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

.placeholder-graphic {
    position: relative;
    width: 300px;
    height: 300px;
}

.central {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--glow);
    z-index: 2;
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}
.n1 { top: -10px; left: 50%; border: 3px solid var(--primary); }
.n2 { bottom: 20%; right: -5px; background: var(--primary); box-shadow: 0 0 10px rgba(37,99,235,0.4); }
.n3 { bottom: 20%; left: -5px; background: var(--secondary); box-shadow: 0 0 10px rgba(99,102,241,0.4); }

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-alt);
    border-top: 4px solid var(--primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.cta-container p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group input, .form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-main);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-alt);
}

.form-group option {
    background: var(--bg-alt);
    color: var(--text-main);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem 2rem;
    background: var(--bg-alt);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes grow {
    from { width: 0; }
}

/* Scroll Revel Effects classes */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.slide-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-left { opacity: 0; transform: translateX(40px); transition: all 0.8s ease; }
.visible { opacity: 1; transform: translateY(0) translateX(0); }

/* Responsive */
@media (max-width: 992px) {
    .hero, .benefits-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-metrics {
        justify-content: center;
    }
    
    .benefits-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--bg-alt);
        padding: 2rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        text-align: center;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .navbar {
        background: var(--bg-alt);
    }
    
    .navbar .btn-outline {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-visual {
        height: 350px;
        margin-top: 2rem;
    }
    
    .main-card {
        width: 100%;
        height: 250px;
    }
    
    .float-card-1, .float-card-2 {
        display: none;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-metrics {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .metric {
        max-width: none;
    }

    .hero-visual {
        height: 350px;
    }

    .main-card {
        width: 95%;
        height: 250px;
    }

    .float-card-1, .float-card-2 {
        display: none;
    }

    .benefits-list li {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.75rem;
    }

    .service-card {
        padding: 1.5rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
}

/* Service Mockup Styles */
.mockup-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--card-border);
    position: relative;
    overflow: hidden;
    height: 140px;
    border-radius: 0.5rem;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Mockup (RAG & Chatbox) */
.mockup-chat {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    font-size: 0.7rem;
}
.chat-bubble {
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    max-width: 85%;
    animation: slide-up 0.5s ease backwards;
}
.chat-left {
    background: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
    color: var(--text-main);
}
.chat-right {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
    animation-delay: 0.2s;
}

/* Dashboard Mockup (Analytics & Marketing) */
.mockup-dashboard {
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dash-header .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
}
.dash-charts {
    display: flex;
    gap: 0.5rem;
    height: 100%;
    align-items: flex-end;
}
.dash-bar {
    flex: 1;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 2px 2px 0 0;
    animation: grow 1s ease-out forwards;
}

/* Document Mockup (PDF to Text) */
.mockup-doc {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0 1rem;
}
.doc-file {
    width: 40px; height: 50px; background: white; border: 1px solid #cbd5e1; border-radius: 4px;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.doc-file::after {
    content: 'PDF'; position: absolute; font-size: 0.5rem; font-weight: bold; color: #ef4444;
    bottom: 5px; right: 5px;
}
.doc-arrow {
    color: var(--primary);
    animation: pulse 2s infinite;
}
.doc-data {
    flex: 1; background: #f8fafc; border: 1px dashed var(--primary); border-radius: 4px; padding: 0.5rem;
}
.doc-data .line {
    height: 4px; background: #cbd5e1; border-radius: 2px; margin-bottom: 4px;
}
.doc-data .line:last-child { width: 60%; }

/* Workflow Mockup */
.mockup-workflow {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}
.wf-node {
    width: 30px; height: 30px; border-radius: 8px; background: white; box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    border: 1px solid rgba(37,99,235,0.2);
}
.wf-line {
    flex: 1; height: 2px; background: linear-gradient(90deg, #cbd5e1 50%, transparent 50%); background-size: 8px 100%;
    position: relative;
}
.wf-dot {
    position: absolute; width: 6px; height: 6px; background: var(--primary); border-radius: 50%;
    top: -2px; left: 0; animation: move-right 2s infinite linear;
}

/* Web Design Mockup */
.mockup-web {
    width: 80%; height: 80%; background: white; border-radius: 6px; box-shadow: var(--shadow-md);
    overflow: hidden; border: 1px solid #e2e8f0; display: flex; flex-direction: column;
}
.web-nav {
    height: 10px; background: #f1f5f9; display: flex; gap: 4px; padding: 0 4px; align-items: center;
}
.web-dot { width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; }
.web-hero { flex: 1; background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(99,102,241,0.1)); margin: 4px; border-radius: 4px; }

/* Image Generation Mockup */
.mockup-image-gen {
    position: relative; width: 90%; height: 90%; background: white; border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}
.gen-prompt {
    padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
    display: flex; gap: 4px; align-items: center; font-family: monospace; font-size: 0.55rem; color: var(--text-main);
}
.gen-result {
    flex: 1; padding: 8px; display: flex; gap: 8px; align-items: center; justify-content: center;
}
.gen-img-placeholder {
    width: 50px; height: 50px; background: linear-gradient(135deg, #e0e7ff, #ede9fe); border-radius: 4px;
    display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem;
    animation: pulse 2s infinite; border: 1px dashed var(--primary);
}
.gen-text-lines {
    flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.gen-text-lines .line {
    height: 4px; background: #cbd5e1; border-radius: 2px; width: 100%;
    animation: slide-up 0.5s ease backwards;
}
.gen-text-lines .line:nth-child(2) { animation-delay: 0.2s; }
.gen-text-lines .line:nth-child(3) { animation-delay: 0.4s; }

@keyframes slide-up { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 0.5; } }
@keyframes move-right { 0% { left: 0; } 100% { left: 100%; } }
@keyframes scan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }

/* Custom UI Components & Case Study Styles */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.expertise-card {
    padding: 2.5rem;
    border-radius: 24px;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    box-shadow: var(--shadow-base);
}

.wf-row {
    flex-direction: column;
}

.wf-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .wf-row {
        flex-direction: row !important;
    }
    .cs-content-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .wf-arrow {
        transform: rotate(0deg);
        margin: 0;
    }
}


/* Custom UI Components & Case Study Styles */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.expertise-card {
    padding: 2.5rem;
    border-radius: 24px;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    box-shadow: var(--shadow-base);
}

.wf-row {
    flex-direction: column;
}

.wf-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .wf-row {
        flex-direction: row !important;
    }
    .cs-content-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .wf-arrow {
        transform: rotate(0deg);
        margin: 0;
    }
}

/* Case Study detail responsiveness */
.cs-detail-hero {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    margin-bottom: 3rem;
    background: #f1f5f9;
}

.cs-detail-hero img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* To be safe */
    display: block;
}

@media (max-width: 768px) {
    .cs-detail-hero {
        border-radius: 16px;
        margin-bottom: 2rem;
    }
    
    .glass-card.cs-card-main {
        padding: 1.5rem !important;
    }
    
    .cs-section-box {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .cs-content-grid {
        gap: 2rem !important;
    }
    
    .impact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}


/* Case Study Gallery Styles */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.case-card-v2 {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    height: 100%;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
}

.case-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.case-card-img {
    aspect-ratio: 16 / 9; width: 100%;
    overflow: hidden; position: relative;
    height: auto;
}

.case-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center top; /* Ensure top headline is visible */
    transition: transform 0.6s ease;
}

.case-card-v2:hover .case-card-img img {
    transform: scale(1.1);
}

.case-card-tag {
    position: absolute; bottom: 1rem; right: 1rem;
    background: var(--primary); color: white;
    padding: 0.3rem 1rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.case-card-body {
    padding: 2rem; flex-grow: 1;
    display: flex; flex-direction: column;
}

.case-card-body h3 {
    font-size: 1.4rem; margin-bottom: 1rem;
    color: var(--text-main); line-height: 1.4;
}

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

.case-study-detail {
    max-width: 1000px; margin: 0 auto;
}

@media (max-width: 768px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }
}
