:root {
    --bg: #0A0A12;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    cursor: auto; /* Normal Pointer */
}

/* --- Background Orbs --- */
.bg-orb {
    position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.4;
    animation: float 15s infinite alternate;
}
.orb-1 { width: 40vw; height: 40vw; background: var(--accent-purple); top: -10%; left: -10%; }
.orb-2 { width: 30vw; height: 30vw; background: var(--accent-cyan); bottom: 10%; right: -10%; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(40px, 40px); } }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
section { margin-bottom: 100px; padding-top: 60px; }

/* --- Navbar --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 30px; margin-bottom: 60px;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.logo .dot { color: var(--accent-cyan); }
.nav-links a {
    color: var(--text-muted); text-decoration: none; margin-left: 30px;
    font-weight: 500; transition: 0.3s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav { border: 1px solid var(--accent-cyan); padding: 8px 20px; border-radius: 20px; color: var(--accent-cyan) !important; }

/* --- Mobile Menu --- */
.hamburger { display: none; cursor: pointer; }
.bar { width: 25px; height: 3px; background: white; margin: 5px 0; transition: 0.3s; }
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: rgba(10, 10, 18, 0.95); backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: 0.4s; z-index: 1000; border-left: 1px solid var(--glass-border);
}
.mobile-nav.active { right: 0; }
.mobile-link { font-size: 1.5rem; color: white; text-decoration: none; margin: 20px; }

/* --- Glassmorphism --- */
.glass {
    background: var(--glass-bg); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1); transition: 0.4s;
}
.card-hover:hover {
    transform: translateY(-5px); border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
}

/* =========================================
   NEW INTRO ANIMATION STYLES
   ========================================= */

/* Intro Section Container */
.intro-section {
    position: relative;
    min-height: 90vh; /* Full viewport height */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0 !important; /* Override section padding */
}

/* Layout for Text and Image side-by-side */
.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

/* User Image Styling */
.hero-image-container {
    flex-shrink: 0;
}

.hero-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%; /* Makes it circular */
    border: 3px solid rgba(255, 255, 255, 0.1);
    /* Glowing effect combining cyan and purple */
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 
                0 0 40px rgba(168, 85, 247, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5), 
                0 0 60px rgba(168, 85, 247, 0.4);
}




/* --- Cyber Grid Background Animation --- */
.cyber-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(transparent 0%, rgba(6, 182, 212, 0.05) 2%, transparent 3%),
        linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.05) 2%, transparent 3%);
    background-size: 100px 100px;
    transform: perspective(500px) rotateX(60deg) scale(2);
    animation: cyberMove 10s linear infinite;
    z-index: -1;
    opacity: 0; /* Hidden initially */
    animation: fadeInGrid 2s ease-out forwards 0.5s, cyberMove 20s linear infinite;
}

@keyframes cyberMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}
@keyframes fadeInGrid { to { opacity: 1; } }

/* --- Typography & System Text --- */
.system-boot {
    font-family: 'Fira Code', monospace;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0.8;
}
.blink { animation: blink 0.8s step-end infinite; }

/* Main Scramble Title */
.scramble-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -2px;
    opacity: 0.5; /* Initial state for JS */
}

.intro-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.highlight-cyan { color: var(--accent-cyan); }
.highlight-purple { color: var(--accent-purple); }

/* --- Delayed Reveal Animation --- */
.reveal-delayed {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-delayed.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Existing Typography & Helpers --- */
.highlight { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); font-size: 0.95rem; margin-top: 10px; }
.section-title { font-size: 2.2rem; margin-bottom: 40px; border-left: 4px solid var(--accent-purple); padding-left: 15px; }

/* Typewriter (Used inside new intro too) */
.typewriter { color: var(--accent-cyan); font-family: 'Fira Code', monospace; }

/* --- Timeline --- */
.timeline-item { padding: 15px 0; }
.year { color: var(--accent-purple); font-family: 'Fira Code', monospace; font-size: 0.9rem; display: block; margin-bottom: 5px; font-weight: bold; }
.role { font-size: 1.3rem; margin-bottom: 8px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); margin: 15px 0; }

/* --- Grids & Projects (UPDATED FIXED VERSION) --- */
.skills-grid, .projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}
.skill-icon { font-size: 2rem; display: block; margin-bottom: 10px; }

/* Project Card Specifics */
.project-card { 
    padding: 0; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.project-img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    object-position: center;
    border-bottom: 1px solid var(--glass-border); 
    display: block;
}

.project-content { 
    padding: 25px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags span { 
    font-size: 0.75rem; 
    background: rgba(255,255,255,0.05); 
    padding: 5px 12px; 
    border-radius: 15px; 
    margin-right: 5px; 
    color: var(--accent-cyan); 
    display: inline-block; 
    margin-top: 15px; 
}

.project-links { 
    margin-top: 25px; 
    display: flex; 
    gap: 15px; 
}

.btn-demo { 
    text-decoration: none; 
    padding: 8px 20px; 
    background: var(--accent-cyan); 
    color: #000; 
    font-weight: 700; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
}
.btn-demo:hover { box-shadow: 0 0 15px var(--accent-cyan); }

.btn-github { 
    text-decoration: none; 
    padding: 8px 20px; 
    border: 1px solid var(--text-muted); 
    color: var(--text-muted); 
    border-radius: 20px; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}
.btn-github:hover { border-color: var(--text); color: var(--text); }

/* --- Buttons --- */
.btn { padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-block; margin-top: 20px; transition: 0.3s; }
.btn-glow { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); color: white; }
.btn-glow:hover { box-shadow: 0 0 20px var(--accent-cyan); transform: scale(1.05); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: white; margin-left: 10px; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* --- Scroll Reveal Animation --- */
.reveal-up { opacity: 0; transform: translateY(50px); transition: 0.8s ease-out; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* --- Footer --- */
footer { text-align: center; margin-bottom: 40px; }
.footer-note { font-family: 'Fira Code', monospace; color: var(--text-muted); font-size: 0.8rem; margin-top: 30px; }

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    /* Stack intro content on smaller screens */
    .intro-content {
        flex-direction: column-reverse; /* Image on top */
        text-align: center;
        gap: 30px;
    }
    .hero-text { max-width: 100%; }
    .hero-image-container { margin-bottom: 20px; }
    .hero-img { width: 250px; height: 250px; }
    .scramble-title { font-size: 3rem; }
    .intro-subtitle { font-size: 1.5rem; }
    .hero-btns { justify-content: center; display: flex; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .container { padding: 15px; }
}


/* =========================================
   CONTACT FORM STYLING
   ========================================= */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left; /* Align inputs correctly */
}

/* Input Fields Styling */
.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3); /* Thoda dark glass */
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--text);
    font-family: 'Fira Code', monospace; /* Hacker font for inputs */
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Jab user type karega (Focus State) */
.glass-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05); /* Halka sa cyan tint */
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* Placeholder color fix */
.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Submit Button Tweak */
.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer; /* Pointer wapas chahiye button pe */
    font-size: 1rem;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Mobile Responsiveness for Form */
@media (max-width: 768px) {
    .contact-form {
        width: 100%;
    }
}

