@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #020617; /* Deep Space Black/Blue */
    --surface-color: rgba(30, 41, 59, 0.4); /* Glassmorphism Panel */
    --surface-hover: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --neon-cyan: #22d3ee;
    --neon-purple: #c084fc;
    --neon-magenta: #d946ef;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- LIVING BACKGROUND ORBS & PARTICLES --- */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: floatOrbs 20s infinite alternate ease-in-out;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;
    background: rgba(34, 211, 238, 0.12); /* Cyan Orb */
    top: -100px;
    left: -150px;
}

body::after {
    width: 700px;
    height: 700px;
    background: rgba(192, 132, 252, 0.12); /* Purple Orb */
    bottom: -200px;
    right: -150px;
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes floatOrbs {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 80px) scale(0.95); }
    100% { transform: translate(30px, 40px) scale(1.05); }
}

/* =========================================
   UTILITY CLASSES (Glass, Gradients, Buttons)
   ========================================= */

.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-glow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 30px;
    color: var(--neon-cyan);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.btn-glow i {
    margin-left: 8px;
    font-size: 20px;
}

.btn-glow:hover {
    background: var(--neon-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.6);
    transform: translateY(-3px);
}

.btn-glow-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid var(--neon-purple);
    border-radius: 30px;
    color: var(--neon-purple);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-glow-secondary:hover {
    box-shadow: 0 0 25px rgba(192, 132, 252, 0.4);
    background: rgba(192, 132, 252, 0.2);
    transform: translateY(-3px);
}

/* =========================================
   TOP NAVBAR
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.4s;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--neon-cyan);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    position: relative;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-cyan);
    transition: 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    font-size: 2.5rem;
    color: var(--text-primary);
    display: none;
    cursor: pointer;
    z-index: 1001;
}

/* =========================================
   MAIN CONTENT WRAPPER
   ========================================= */
.main-content {
    margin-top: 90px; /* Space for top navbar */
    min-height: calc(100vh - 90px);
    padding: 50px 8%;
    display: flex;
    flex-direction: column;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    background: transparent;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* =========================================
   ANIMATIONS (GSAP-Style)
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
    animation: fadeInRight 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInRight {
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 991px) {
    .navbar {
        padding: 15px 5%;
    }
    .main-content {
        padding: 40px 5%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        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.4s ease;
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Absolute Grid Fallbacks for Mobile */
    .services-grid, .project-grid, .info-cards, .contact-container {
        grid-template-columns: 1fr !important;
    }
}
