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

:root {
    --neon-blue: #00d2ff;
    --neon-orange: #ff7b00;
    --matte-black: #0a0a0a;
    --dark-blue: #050b1a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --text-dim: #a1a1aa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--matte-black);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Background & Global Effects */
canvas#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    max-width: 100vw;
}

.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.neon-text-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.neon-text-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.5);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 1.2rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    gap: 3.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    text-align: center;
    z-index: 10;
}

.hero h1 {
    font-size: 6.5rem;
    line-height: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-weight: 300;
}

/* Buttons */
.btn-futuristic {
    padding: 1rem 2.4rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    flex-shrink: 0;
}

.btn-futuristic.primary {
    background: var(--neon-blue);
    color: var(--matte-black);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.3);
}

.btn-futuristic:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 40px rgba(0, 210, 255, 0.5);
    background: var(--neon-blue);
    color: var(--matte-black);
}

/* Sections */
.section { padding: 12rem 0; }

.section-title {
    font-size: 3.5rem;
    margin-bottom: 5rem;
    text-align: center;
}

/* Glass Cards */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 3.5rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.1);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Service Card Specifics */
.service-icon {
    font-size: 3.5rem;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    display: block;
}

/* Technologies */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
}

.tech-item {
    text-align: center;
    transition: 0.4s;
    opacity: 0.7;
}

.tech-item:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--neon-blue);
}

.tech-item i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

/* Footer */
footer {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Mobile Navigation Toggle */
.menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

@media (max-width: 992px) {
    .menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links a { font-size: 1.5rem; }

    /* Font Scaling */
    .hero h1 {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }
    
    .hero p { font-size: 1.1rem; }
    
    .section-title { font-size: 2.2rem; }
    
    .section { padding: 6rem 0; }
    
    /* Layout Adjustments */
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .glass-card { padding: 2rem; }
    
    .contact-grid { gap: 3rem; }
    
    .tech-stack { gap: 2rem; }
    .tech-item i { font-size: 2.5rem; }
    
    .container { padding: 0 1.5rem; }
    
    /* Hero Buttons on Mobile */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }

    .btn-futuristic {
        width: auto;
        min-width: 200px;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation for UI elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating { animation: float 6s ease-in-out infinite; }
