/* Global Styles & Variables */
:root {
    /* Future Tech Palette */
    --bg-body: #0B1120;       /* Deepest Space */
    --bg-card: #1E293B;       /* Dark Slate */
    --bg-glass: rgba(30, 41, 59, 0.7);
    
    --primary-color: #38BDF8; /* Neon Cyan */
    --primary-glow: rgba(56, 189, 248, 0.5);
    --secondary-color: #A855F7; /* Neon Purple */
    
    --text-main: #F1F5F9;     /* Off-white */
    --text-muted: #94A3B8;    /* Muted Blue-Grey */
    
    --nav-height: 80px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --gradient-main: linear-gradient(135deg, #38BDF8 0%, #A855F7 100%);
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
header {
    background-color: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e1b4b 0%, #0B1120 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--gradient-main);
    color: #fff;
    box-shadow: var(--shadow-glow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.cta-secondary {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(4px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Sections General */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services Grid */
.services {
    background-color: #0F172A;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(56, 189, 248, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-card ul li {
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.service-card ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Deep Dive Sections */
.deep-dive-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.dd-text .subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: block;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.dd-text h3 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.dd-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.dd-features li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.dd-features li i {
    color: var(--secondary-color);
    margin-right: 16px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.dd-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Reverse Layout */
.transcription-deep-dive .deep-dive-content {
    direction: rtl;
}
.transcription-deep-dive .deep-dive-content > * {
    direction: ltr;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, #0B1120 0%, #1E1B4B 100%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    background: rgba(0,0,0,0.5);
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Footer */
footer {
    background: #020617;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 20px;
}

.footer-social a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Page Header (Services Page) */
.page-header {
    padding: 200px 0 100px;
    background: radial-gradient(circle at bottom, #1e1b4b 0%, #0B1120 70%);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .deep-dive-content {
        gap: 40px;
    }
    
    .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .deep-dive-content,
    .transcription-deep-dive .deep-dive-content {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
    }
    
    .dd-image {
        order: -1;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
        color: var(--text-main);
        font-size: 1.5rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button, .cta-secondary {
        width: 100%;
        max-width: 300px;
    }
}
