/* ==========================================================================
   CSS Variables & Design System Tokens
   ========================================================================== */
:root {
    /* Color Palette - Premium corporate feel */
    --clr-primary: #1e3a8a; /* Deep intelligent blue */
    --clr-primary-light: #3b82f6; 
    --clr-secondary: #0f172a; /* Slate very dark */
    --clr-accent: #f59e0b; /* Amber/gold accent for trust and success */
    
    --clr-bg-main: #ffffff;
    --clr-bg-light: #f8fafc;
    --clr-bg-deep: #0f172a;
    
    --clr-text-main: #334155;
    --clr-text-muted: #64748b;
    --clr-text-light: #f8fafc;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    --grad-accent: linear-gradient(135deg, var(--clr-accent) 0%, #d97706 100%);
    --grad-text: linear-gradient(to right, var(--clr-primary), var(--clr-primary-light));
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.bg-deep {
    background-color: var(--clr-bg-deep);
    color: var(--clr-text-light);
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white {
    color: var(--clr-text-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: padding var(--transition-normal), box-shadow var(--transition-normal);
    padding: 1.25rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--clr-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--clr-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--clr-secondary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--clr-bg-light);
}

.hero-bg-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}

.glow-orb.top-left {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3);
    top: -100px;
    left: -100px;
}

.glow-orb.bottom-right {
    width: 500px;
    height: 500px;
    background: rgba(245, 158, 11, 0.2);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-weight: 600;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Glass Card Hero Visual */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.main-hero-card {
    width: 100%;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.main-hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

.dots {
    display: flex;
    gap: 6px;
}

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

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 150px;
    margin-bottom: 2rem;
}

.bar {
    flex: 1;
    background: var(--grad-primary);
    border-radius: 6px 6px 0 0;
    animation: growUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: bottom;
    opacity: 0;
    transform: scaleY(0);
}

.bar-1 { height: 40%; animation-delay: 0.2s; }
.bar-2 { height: 60%; animation-delay: 0.4s; opacity: 0.8; }
.bar-3 { height: 80%; animation-delay: 0.6s; opacity: 0.9; }
.bar-4 { height: 100%; background: var(--grad-accent); animation-delay: 0.8s; }

@keyframes growUp {
    to { transform: scaleY(1); opacity: 1; }
}

.stats-row {
    display: flex;
    justify-content: space-between;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--clr-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-header.text-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    font-weight: 600;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.feature-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--clr-primary);
    border-radius: 50%;
    font-size: 0.8rem;
}

.about-image-wrapper {
    position: relative;
    height: 400px;
}

.image-card {
    width: 100%;
    height: 100%;
    background: var(--grad-primary);
    position: relative;
    overflow: hidden;
}

.abstract-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.geo-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
}

.circle {
    width: 200px; height: 200px; border-radius: 50%; top: -50px; right: -50px;
}

.square {
    width: 150px; height: 150px; bottom: 50px; left: -20px; transform: rotate(45deg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-accent);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

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

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 3rem 2rem 2rem;
    position: relative;
    background: var(--clr-bg-light);
}

.quote-icon {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.1);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.client-info h4 {
    margin: 0;
    font-size: 1rem;
}

.client-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info .contact-desc {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
}

.info-icon {
    font-size: 2rem;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.info-item p, .info-item a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.info-item a:hover {
    color: var(--clr-accent);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05); /* slightly visible on deep bg */
    border-color: rgba(255, 255, 255, 0.1);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: inherit;
    transition: var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary-light);
    background: rgba(255,255,255,0.15);
}

.contact-form select option {
    background: var(--clr-bg-deep);
    color: white;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 4px;
}
.form-status.success {
    color: #4ade80;
    padding: 0.5rem;
    background: rgba(74, 222, 128, 0.1);
}
.form-status.error {
    color: #f87171;
    padding: 0.5rem;
    background: rgba(248, 113, 113, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #090e1a; /* darker than deep string */
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 0;
}

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

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-fade { transform: scale(0.95); }

.reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-fade.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content, .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero h1 { font-size: 3rem; }
    .hero .description { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .feature-list li { justify-content: center; }
    .info-items { align-items: center; text-align: left; }
    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: var(--clr-bg-main);
        flex-direction: column;
        justify-content: center;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .hidden-mobile { display: none; }
}
