/* Custom Properties */
:root {
    --color-bg: #090D16; /* Deep Slate/Navy */
    --color-text: #9CA3AF; /* Muted Body Text */
    --color-heading: #F9FAFB; /* Main Headings */
    --color-accent: #34D399; /* Mint Accent */
    --color-highlight: #10B981; /* Emerald Green */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-bg: #111827; /* Dark Navy Card Surfaces */
    --glass-border: rgba(255, 255, 255, 0.08); /* Subtle Border */
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-heading);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-highlight);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Liquid Glass Elements */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

.glass-header.scrolled {
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 160px;
    padding: 10px 0;
    transition: min-height 0.3s ease;
}

.glass-header.scrolled .header-container {
    min-height: 80px;
}

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

.logo img {
    height: auto;
    max-height: 150px;
    border-radius: 4px;
    transition: max-height 0.3s ease;
}

.glass-header.scrolled .logo img {
    max-height: 60px;
}

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

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--color-heading);
}

.nav-link:hover {
    color: #D1D5DB;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-highlight);
    transition: width 0.3s ease;
}

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

.btn-primary {
    background: var(--color-highlight);
    color: #090D16;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary:hover {
    color: #090D16;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    background: var(--color-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 180px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Ambient interactive spotlight */
    background: 
        radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(16, 185, 129, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    filter: blur(40px);
    z-index: -1;
}

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

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
}

.highlight-text-container {
    display: inline-block;
    min-width: 320px; /* Prevent layout shift for longest word */
    position: relative;
    vertical-align: bottom;
    text-align: left;
}

.highlight-text {
    background: linear-gradient(to right, #10B981, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: slideFade 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #CBD5E1; /* Improved contrast */
}

.hero-widget {
    position: relative;
    width: 100%;
    z-index: 2;
}

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

.service-card {
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-highlight);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.glass-footer {
    background: rgba(10, 14, 23, 0.8);
    border-top: 1px solid #1E293B; /* Subtle top border line */
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col-4 {
    grid-column: span 4;
}

.footer-col-2 {
    grid-column: span 2;
}

.footer-brand p {
    color: #94A3B8; /* Muted accessible body text */
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.footer-links h4, .footer-contact h4 { 
    margin-bottom: 1.5rem; 
    color: #E2E8F0;
}

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

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

.footer-links a {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #34D399; /* Hover state for links */
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact .contact-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.footer-contact p, .footer-contact a {
    color: #94A3B8;
    margin: 0;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #34D399;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright-text {
    color: #9CA3AF;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.visit-counter-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.visit-label {
    color: #9CA3AF;
    font-size: 0.875rem;
}

.visit-number {
    color: #34D399;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }
}

/* Glass Widget Enhancements */
.glass-layered {
    position: relative;
    width: 100%;
    padding: 10px;
}

.glass-layer-back {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

.widget-panel {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    text-align: left;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.widget-title {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 500;
}

.widget-stat-group {
    margin-bottom: 1.5rem;
}

.widget-stat-group.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.widget-stat-value {
    color: var(--color-highlight);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.widget-stat-label {
    font-size: 0.95rem;
    color: #E2E8F0;
    margin-top: 0.5rem;
}

.widget-graph {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    height: 120px;
    width: 100%;
    position: relative;
}

.widget-graph svg {
    width: 100%;
    height: 100%;
    display: block;
}

.widget-footer-text {
    font-size: 0.8rem;
    color: #64748B;
}

/* Utilities */
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-col-4 { grid-column: span 6; }
    .footer-col-2 { grid-column: span 3; }
}

@media (max-width: 768px) {
    .nav-list { display: none; }
    .mobile-menu-toggle { display: flex; }
    .grid-2, .grid-3, .grid-4, .hero-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .footer-col-4, .footer-col-2 { grid-column: span 12; }
    .footer-grid-container { grid-template-columns: 1fr; }
    
    /* Mobile Hero Fixes */
    .hero {
        padding-top: 160px;
        min-height: auto;
    }
    .highlight-text-container {
        display: block;
        min-width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
    .hero-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .hero-tab {
        font-size: 0.75rem;
        flex: 1 1 30%;
        text-align: center;
    }
    .trust-band-grid {
        flex-direction: column;
        text-align: center;
    }
    .trust-logos {
        justify-content: center;
        flex-wrap: wrap;
    }
    .widget-panel {
        padding: 1.5rem;
    }
    
    /* Header and Logo Fixes for Mobile */
    .header-container {
        min-height: 80px;
    }
    .logo img {
        max-height: 70px;
        max-width: 250px;
        object-fit: contain;
    }
}

/* Code Terminal Style */
.code-terminal {
    background: #0D1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    padding-top: 2.5rem;
    font-family: 'Courier New', Courier, monospace;
    color: #E6EDF3;
    font-size: 0.9rem;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    white-space: pre-wrap;
}

.code-terminal::before {
    content: '';
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F56;
    box-shadow: 20px 0 0 #FFBD2E, 40px 0 0 #27C93F;
}

/* Custom Form Controls */
.custom-radio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 1.05rem;
    user-select: none;
    color: #E2E8F0;
    padding-top: 2px;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.3s ease, border 0.3s ease;
}

.custom-radio:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.custom-radio input:checked ~ .checkmark {
    background-color: transparent;
    border-color: var(--color-highlight);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-radio input:checked ~ .checkmark:after {
    display: block;
}

.custom-radio .checkmark:after {
    top: 5px;
    left: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-highlight);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* Tab Styles */
.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--color-text);
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active-tab {
    background: var(--color-highlight);
    color: #0A0E17;
    border-color: var(--color-highlight);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tab-content.active {
    opacity: 1;
}

/* Trust Band */
.trust-band {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    margin-bottom: -5rem; /* pull up spacing to adjacent section */
    position: relative;
    z-index: 10;
}

.trust-band-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-stats {
    font-size: 1.1rem;
    color: #CBD5E1;
    flex: 1;
    min-width: 300px;
}

.trust-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 2;
    justify-content: flex-end;
}

.trust-logos svg {
    height: 40px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}

.trust-logos svg:hover {
    opacity: 1;
}

/* Hero Widget Service Tabs */
.hero-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.hero-tab {
    background: none;
    border: none;
    color: #A0AAB2;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s;
}

.hero-tab:hover {
    color: #CBD5E1;
}

.hero-tab.active {
    color: var(--color-highlight);
}

/* SVG Graph Animations */
.graph-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.graph-path.drawn {
    stroke-dashoffset: 0;
}

.glowing-dot {
    offset-path: path('M0,100 Q30,90 60,95 T120,80 T180,95 T240,75 T280,60 T340,70 T400,20');
    offset-distance: 0%;
    animation: followPath 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    /* pause by default until .drawn is added to the parent graph or via JS */
    animation-play-state: paused;
}

.widget-graph.drawn .glowing-dot {
    animation-play-state: running;
}

@keyframes followPath {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 1; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .highlight-text {
        animation: none;
    }
    .hero::before {
        transition: none;
        background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
    }
    .graph-path {
        stroke-dashoffset: 0;
        transition: none;
    }
    .glowing-dot {
        animation: none;
        offset-distance: 100%;
        opacity: 1;
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--color-highlight);
    transform: translateY(-5px);
}

/* Comparison Section Updates */
.comparison-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #1E293B;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1E293B;
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.3);
}

.traditional-title {
    color: #94A3B8;
    font-size: 1.1rem;
}

.wgs-title {
    color: #34D399;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.comparison-body {
    padding: 1rem 2rem;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #1E293B;
}

.traditional-text {
    color: #94A3B8;
    font-size: 1rem;
}

.wgs-badge {
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    color: #34D399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}
