/* --- CSS VARIABLES --- */
:root {
    --primary: #00e5ff;
    --primary-dark: #00b3cc;
    --accent: #a29bfe;
    --bg: #0a0b10;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #e0e0e0;
    --text-muted: #9ba1a6;
    --whatsapp: #25D366;
}

/* --- RESET & BASE STYLES --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

html {
    scroll-behavior: smooth; /* Native smooth scrolling */
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.6; 
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ANIMATED BACKGROUND ORBS --- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px; height: 400px;
    background: rgba(0, 229, 255, 0.15);
    top: -100px; left: -100px;
}

.orb-2 {
    width: 500px; height: 500px;
    background: rgba(162, 155, 254, 0.1);
    bottom: -200px; right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* --- NAVIGATION --- */
nav {
    padding: 20px 10%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(10, 11, 16, 0.85); 
    backdrop-filter: blur(15px);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid var(--glass-border);
}

.logo { 
    font-weight: 800; 
    font-size: 1.8rem; 
    color: #fff; 
    letter-spacing: 2px; 
}

.logo span { color: var(--primary); }

.nav-links a { 
    color: var(--text); 
    text-decoration: none; 
    margin-left: 35px; 
    font-weight: 500; 
    transition: color 0.3s ease; 
}

.nav-links a:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    padding: 0 20px;
    margin-top: -80px; /* Offset for navbar */
}

.hero .subtitle {
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 { 
    font-size: 5rem; 
    font-weight: 800; 
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter-text { 
    font-size: 1.5rem; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
    height: 30px; /* Prevents layout shift during typing */
}

#typewriter { color: var(--primary); font-weight: 600; }

.btn-main {
    padding: 16px 45px; 
    border-radius: 50px; 
    background: var(--primary); 
    color: #000;
    text-decoration: none; 
    font-weight: 700; 
    transition: all 0.4s ease; 
    border: none; 
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-main:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3); 
    background: var(--primary-dark);
}

/* --- GENERAL SECTIONS --- */
.section { padding: 100px 0; }
.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 60px; 
    text-align: center; 
    color: #fff; 
}
.glass-section { background: rgba(255,255,255,0.01); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }

/* --- ABOUT SECTION --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; color: #fff;}
.about-text p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.1rem;}

.tech-stack { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-stack span {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

/* --- GRID & CARDS --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.card, .service-box {
    background: var(--glass); 
    border: 1px solid var(--glass-border); 
    padding: 40px;
    border-radius: 20px; 
    backdrop-filter: blur(10px); 
    transition: all 0.4s ease;
}

.card:hover, .service-box:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    background: rgba(255,255,255,0.03); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card i { font-size: 3rem; color: var(--primary); margin-bottom: 25px; }
.card h3, .service-box h3 { margin-bottom: 15px; font-size: 1.5rem; color: #fff;}
.card p, .service-box p { color: var(--text-muted); }

/* --- CONTACT FORM --- */
.contact-container { max-width: 600px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* --- WHATSAPP FLOATING ICON --- */
.whatsapp-float {
    position: fixed; 
    bottom: 30px; 
    right: 30px;
    width: 65px; 
    height: 65px; 
    background-color: var(--whatsapp);
    color: #FFF; 
    border-radius: 50px; 
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.5); 
    z-index: 1000;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-decoration: none; 
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover { 
    transform: scale(1.1) rotate(10deg); 
}

/* --- FOOTER --- */
footer {
    padding: 40px 20px; 
    text-align: center; 
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.5);
}
.footer-sub { margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); }

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Smooth easing */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- KEYFRAMES --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .about-container { flex-direction: column; text-align: center; }
    .tech-stack { justify-content: center; }
    .nav-links { display: none; /* In a full app, you'd toggle this with JS */ }
    .mobile-menu-btn { display: block; }
}