/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Quantum AI Luxury Dark Palette */
    --primary-color: #00f0ff;
    /* Neon Cyan */
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary-color: #8a2be2;
    /* Electric Purple */
    --accent-color: #ff007f;
    /* Neon Pink Accent */

    --background-color: #030014;
    /* Deepest Violet/Black */
    --surface-color: rgba(10, 5, 30, 0.6);
    /* Translucent cyber surface */
    --surface-hover: rgba(20, 10, 50, 0.8);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(0, 240, 255, 0.15);

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --glass-bg: rgba(10, 15, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* Quantum AI Light Palette */
    --primary-color: #0088cc;
    /* Darker Cyan for readability */
    --primary-glow: rgba(0, 136, 204, 0.3);
    --secondary-color: #6a0dad;
    /* Darker Purple for readability */
    --accent-color: #d10068;
    /* Darker Pink */

    --background-color: #f8fafc;
    /* Slate-50 */
    --surface-color: #ffffff;
    /* White */
    --surface-hover: #f1f5f9;
    /* Slate-100 */

    --text-primary: #0f172a;
    /* Slate-900 */
    --text-secondary: #475569;
    /* Slate-600 */
    --text-muted: #64748b;
    /* Slate-500 */

    --border-color: #e2e8f0;
    /* Slate-200 */

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color var(--transition-normal);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 9999;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--background-color) 60%);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

/* Features Cards */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 1;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* Tech Stack / Infrastructure */
.tech-diagram {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.tech-node {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.tech-node strong {
    color: white;
}

.tech-node span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Timeline/Roadmap */
.roadmap-item {
    padding: 24px;
    border-left: 2px solid var(--border-color);
    margin-left: 20px;
    position: relative;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.roadmap-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Badge for AWS */
.aws-badge {
    background: #FF9900;
    color: #232f3e;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 80px;
    background: var(--surface-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        padding-top: 40px;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* --- Technologies Page Styles --- */
.tech-category {
    margin-bottom: 60px;
}

.tech-category h2 {
    margin-bottom: 30px;
    padding-bottom: 10px;
    display: inline-block;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tag {
    background-color: var(--surface-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* --- Process Page Styles (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -12px;
    background-color: var(--background-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
}

.timeline-item.active::after {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
    border-color: #ffffff;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -12px;
}

/* Timeline Arrows */
.timeline-item.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--surface-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--surface-color);
}

.timeline-item.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--surface-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--surface-color) transparent transparent;
}

.timeline .content {
    padding: 24px 30px;
    background-color: var(--surface-color);
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.timeline .content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.timeline h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 21px !important;
        /* Force override left/right positioning */
        right: auto;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid var(--surface-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--surface-color) transparent transparent;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 60px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--surface-color) transparent transparent;
    }
}

/* --- MOBILE NAVIGATION FIX (CloudTechGuru) --- */

/* Base Button Style (Hidden on Desktop via existing media query above) */
.mobile-menu-btn {
    display: none !important;
    /* Hidden by default on desktop, forced */
}

@media screen and (max-width: 768px) {

    /* Show Hamburger on Mobile */
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 25px;
        /* Adjust based on header height */
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 10001;
        /* Above everything */
        padding: 5px;
    }

    /* Hide Nav Links by default on Mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        padding-top: 60px;
        /* Space for close button */
        gap: 2rem;
        /* Glassmorphism for menu */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: rgba(15, 23, 42, 0.98);
    }

    /* Show Nav Links when Active */
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }

    /* Style links in mobile menu */
    .nav-links a {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-actions {
        display: none;
        /* Hide top buttons to avoid clutter */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================================
   QUANTUM AI CSS THEME ANIMATIONS & CLASSES
========================================================= */

/* 1. AI Glow Cards */
.ai-glow-card {
    background: rgba(10, 5, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
    transition: all 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.ai-glow-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary-color), transparent 30%);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.ai-glow-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--surface-color);
    border-radius: inherit;
    z-index: 1;
}

.ai-glow-card>* {
    position: relative;
    z-index: 2;
}

.ai-glow-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
    border-color: var(--primary-color);
}

.ai-glow-card:hover::before {
    opacity: 0.15;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* 2. Holographic & Cyber Buttons */
.cyber-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyber-btn:hover {
    background: var(--primary-color);
    color: #030014 !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.5);
    text-shadow: none;
}

.holographic-btn {
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.3), transparent);
    background-size: 200% 200%;
    animation: holoFlow 3s infinite linear;
    border: 1px solid var(--secondary-color);
    color: #fff !important;
    text-shadow: 0 0 5px var(--secondary-color);
}

.holographic-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 25px var(--secondary-color);
}

@keyframes holoFlow {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* 3. Pulsing Badges and Elements */
.pulsing-badge {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

.pulse-dot {
    animation: simplePulse 1.5s infinite alternate;
}

@keyframes simplePulse {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
        text-shadow: 0 0 10px var(--primary-color);
    }
}

/* 4. Glowing Text Overrides */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% auto;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glowing-icon {
    filter: drop-shadow(0 0 8px var(--primary-color));
}

/* 5. Quantum Background Gradients */
.quantum-bg-glow1,
.quantum-bg-glow2 {
    animation: float 20s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-50px) scale(1.1);
    }

    100% {
        transform: translateY(50px) scale(0.9);
    }
}

/* 6. Light Mode Explicit Overrides for Quantum Theme */
[data-theme="light"] .ai-glow-card {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .ai-glow-card:hover {
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.15);
}

[data-theme="light"] .ai-glow-card::before {
    background: conic-gradient(transparent, rgba(0, 136, 204, 0.6), transparent 30%);
}

[data-theme="light"] .ai-glow-card::after {
    background: var(--surface-color);
}

/* Force dark text on elements that were hardcoded white for dark mode */
[data-theme="light"] .ai-glow-card h3,
[data-theme="light"] .ai-glow-card div[style*="font-size: 2.2rem"],
[data-theme="light"] .ai-glow-card li,
[data-theme="light"] .ai-glow-card p {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

[data-theme="light"] h3.text-gradient,
[data-theme="light"] .text-gradient {
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .cyber-btn {
    box-shadow: 0 0 5px rgba(0, 136, 204, 0.2), inset 0 0 5px rgba(0, 136, 204, 0.1);
}

[data-theme="light"] .cyber-btn:hover {
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
}

[data-theme="light"] .holographic-btn {
    color: #ffffff !important;
    text-shadow: none;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
}

[data-theme="light"] .pulsing-badge {
    color: #ffffff !important;
}

[data-theme="light"] .quantum-bg-glow1,
[data-theme="light"] .quantum-bg-glow2 {
    opacity: 0.1;
    filter: blur(100px);
}