/* --- 1. Basic Reset (Zaroori hai) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif; /* Baad me font change kar lenge */
}

body {
    background-color: #050505;
    color: white;
    /* --- Cyber Grid Background --- */
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Grid box size */
    animation: moveGrid 20s linear infinite; /* Grid chalega */
}

@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; } /* Neeche ki taraf move karega */
}

/* --- Google Font Import for Hacker Look --- */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* --- Wide Floating Dock --- */
.floating-dock {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    
    /* Width badha di taaki faila hua lage */
    width: 90%; 
    max-width: 900px; /* Isse zyada chaura nahi hoga */
    
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 0, 0.2); /* Halka Green Border */
    
    padding: 15px 40px;
    border-radius: 12px; /* Thoda square rakha hacker feel ke liye */
    
    display: flex;
    justify-content: space-between; /* Name left, Links right */
    align-items: center;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1); /* Green Glow */
}

/* --- Hacker Logo Name --- */
.hacker-logo {
    font-family: 'VT323', monospace; /* Hacker Font */
    font-size: 1.8rem;
    color: #00ff41; /* Terminal Green */
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6); /* Glow Effect */
    letter-spacing: 2px;
    cursor: pointer;
    white-space: nowrap; /* Isse text kabhi next line me nahi jayega */
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

/* --- Links Section --- */
.menu-links {
    display: flex;
    gap: 40px; /* Links ke beech zyada gap */
    align-items: center;
}

.menu-links a {
    text-decoration: none;
    color: #a0a0a0;
    font-family: 'Courier New', monospace; /* Simple Code Font */
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.menu-links a:hover {
    color: white;
    text-shadow: 0 0 5px white;
}

.menu-links a.active {
    color: white;
    border-bottom: 2px solid #00ff41;
}

/* Contact Button */
.contact-btn {
    border: 1px solid #00ff41;
    color: #00ff41 !important;
    padding: 5px 20px;
    border-radius: 4px;
}

.contact-btn:hover {
    background: #00ff41;
    color: black !important;
    box-shadow: 0 0 15px #00ff41;
}

/* --- Hamburger Icon Styling (Default hidden on desktop) --- */
.hamburger {
    display: none; /* Desktop par nahi dikhega */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #00ff41; /* Green color */
    transition: all 0.3s ease;
}

/* --- Mobile Responsive Styles --- */
/* --- Mobile Responsive & Menu Design --- */
@media (max-width: 768px) {
    
    .floating-dock {
        width: 90%;
        padding: 10px 20px;
        justify-content: space-between; /* Logo aur Hamburger dur-dur */
    }

    /* Hamburger Icon (Open Button) */
    .hamburger {
        display: flex;
        z-index: 1001; /* Menu ke upar rahe */
    }

    /* --- SIDE DRAWER MENU (Naya Design) --- */
    .menu-links {
        position: fixed;
        top: 0;
        right: -100%; /* Default bahar */
        height: 100vh;
        width: 80%; /* Thoda chaura */
        max-width: 300px;
        
        /* Glassmorphism Effect */
        background: rgba(15, 15, 15, 0.85); /* Thoda transparent black */
        backdrop-filter: blur(20px); /* Peeche ka blur */
        border-left: 1px solid rgba(0, 255, 65, 0.3); /* Green Border */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide */
        z-index: 9999;
    }

    .menu-links.active {
        right: 0; /* Andar aayega */
    }

    /* Menu Links Text */
    .menu-links a {
        font-size: 1.5rem;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 2px;
        border-bottom: 1px solid transparent;
    }

    .menu-links a:hover {
        color: #00ff41;
        text-shadow: 0 0 10px #00ff41;
        transform: scale(1.1);
    }

    /* --- CLOSE BUTTON (CROSS) --- */
    /* Ye button menu ke andar top-right me dikhega */
    .close-menu-btn {
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2rem;
        color: #ff4444; /* Red color taaki alag dikhe */
        cursor: pointer;
        font-family: monospace;
        transition: 0.3s;
        display: block; /* Sirf mobile menu me dikhega */
    }

    .close-menu-btn:hover {
        color: white;
        transform: rotate(90deg); /* Ghumne wala effect */
    }
}

/* Desktop par Close button chupao */
@media (min-width: 769px) {
    .close-menu-btn {
        display: none;
    }
}



/* 
----------------------------------------------------------------------------------------------- */








/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px; /* Navbar ke liye jagah */
    background: radial-gradient(circle at 10% 20%, rgba(0, 255, 65, 0.05) 0%, #0a0a0a 90%);
    overflow: hidden;
}

/* Left Side Styling */
.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hello-tag {
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(0, 255, 65, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.neon-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.typing-text {
    font-size: 2rem;
    color: #b3b3b3;
    margin-bottom: 20px;
}

.auto-type {
    color: #00bcd4; /* Blue color for changing text */
    font-weight: bold;
}

.hero-desc {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
}

.hero-desc b { color: #fff; }

/* Buttons */
.hero-buttons { display: flex; gap: 20px; }

.btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

.primary-btn {
    background: #00ff41;
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.primary-btn:hover {
    background: transparent;
    border: 1px solid #00ff41;
    color: #00ff41;
}

.secondary-btn {
    background: transparent;
    border: 1px solid #fff;
    color: white;
}

.secondary-btn:hover {
    background: white;
    color: black;
}

/* --- Right Side: Code Card (Floating) --- */
.hero-visual {
    position: relative;
}

.code-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #333;
    border-radius: 10px;
    width: 350px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
    backdrop-filter: blur(10px);
}

.code-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg); /* Mouse le jane par seedha ho jayega */
    border-color: #00ff41;
}

.card-header {
    background: #1a1a1a;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.filename { margin-left: auto; color: #666; font-size: 0.8rem; font-family: monospace; }

.card-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #a9b7c6;
    line-height: 1.6;
}

.keyword { color: #cc7832; } /* Orange */
.string { color: #6a8759; } /* Green */
.var { color: #a9b7c6; }
.bool { color: #9876aa; } /* Purple */

/* --- MOBILE RESPONSIVE HERO --- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse; /* Mobile pe photo upar, text neeche nahi chahiye to column karo */
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        gap: 50px;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    
    .code-card {
        width: 100%;
        max-width: 300px;
        transform: none; /* Mobile pe ghumana band */
    }
}








/* 
----------------------------------------------------------------------------------------------- */










/* --- PROJECTS SECTION --- */
.projects-section {
    padding: 100px 10%;
    background-color: #0a0a0a;
}

.section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 50px;
    font-family: 'VT323', monospace;
}

.section-title .highlight {
    color: #00ff41;
    border-bottom: 2px solid #00ff41;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- The Folder/Window Card --- */
.project-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: #00ff41; /* Green border on hover */
}

/* Header Bar (Window Look) */
.card-top {
    background: #1a1a1a;
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-tab {
    color: #00ff41;
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Dots decoration */
.window-buttons {
    display: flex;
    gap: 6px;
}
.window-buttons .dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

/* Content */
.card-content {
    padding: 25px;
}

.card-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-content p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-stack span {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
}

/* Links at bottom */
.project-links {
    display: flex;
    gap: 20px;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.link-text {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}

.link-text:hover {
    color: #00ff41;
}





/* 
----------------------------------------------------------------------------------------------- */










/* --- SKILLS SECTION --- */
.skills-section {
    padding: 100px 10%;
    background-color: #0d0d0d; /* Thoda sa alag dark shade */
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

/* Category Box */
.skill-category {
    flex: 1;
    min-width: 300px; /* Mobile pe wrap ho jayega */
}

.category-title {
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin-bottom: 25px;
    border-left: 3px solid #00ff41; /* Green line indicators */
    padding-left: 15px;
}

/* Grid for Chips */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

/* The Skill Chip Design */
.skill-card {
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: 0.3s;
    cursor: default;
}

/* Hover Effect */
.skill-card:hover {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.05);
    transform: translateY(-3px);
}

/* Text Styling */
.skill-name {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.skill-level {
    color: #555;
    font-size: 0.7rem;
    font-family: monospace;
    text-transform: uppercase;
}

/* Hover pe text color change */
.skill-card:hover .skill-level {
    color: #00ff41;
}

/* Special Highlight for Main Skill (JavaScript) */
.highlight-card {
    border-color: #00bcd4; /* Cyan Border */
}

.highlight-card .skill-name {
    color: #00bcd4;
}









/* 
----------------------------------------------------------------------------------------------- */
















/* --- CONTACT SECTION --- */
.contact-section {
    padding: 100px 10% 20px 10%; /* Bottom padding kam rakhi hai footer ke liye */
    background-color: #050505;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* Left Side Text */
.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-desc {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    font-family: sans-serif;
}

/* Social Buttons */
.social-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.social-btn {
    text-decoration: none;
    color: #a0a0a0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    padding: 10px 20px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: 0.3s;
}

.social-btn:hover {
    border-color: #00ff41;
    color: #00ff41;
    background: rgba(0, 255, 65, 0.05);
}

.email-btn {
    border-color: #00ff41; /* Email button pehle se highlighted */
    color: #00ff41;
}

/* --- Right Side: CODE FORM --- */
.code-form {
    flex: 1;
    min-width: 300px;
    background: #111;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #222;
}

.input-group {
    margin-bottom: 25px;
}

/* Label styling like code */
.code-label {
    display: block;
    font-family: 'Courier New', monospace;
    color: #00bcd4; /* Variable Name Color */
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.purple { color: #c792ea; } /* const keyword color */
.white { color: #fff; }

/* Input Fields styling */
.code-form input, 
.code-form textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #a6e22e; /* String Color (Green/Yellow) */
    font-family: 'Courier New', monospace;
    padding: 12px;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}

.code-form input:focus,
.code-form textarea:focus {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.submit-btn .str { color: #a6e22e; } /* String color inside button */

.submit-btn:hover {
    border-color: #00ff41;
    background: #00ff41;
    color: black;
}
.submit-btn:hover .str { color: black; }















/* 
----------------------------------------------------------------------------------------------- */


















/* --- FOOTER --- */
footer {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid #111;
}

.footer-text {
    color: #555;
    font-size: 0.9rem;
    font-family: monospace;
}












/* =========================================
   ADD AT THE BOTTOM OF STYLE.CSS
   ========================================= */

/* --- 1. MAGIC CURSOR DESIGN --- */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid #00ff41; /* Green Border */
    background: rgba(0, 255, 65, 0.2);
    border-radius: 50%;
    pointer-events: none; /* Zaroori hai: Taaki click rok na de */
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Jab mouse link pe ho, tab cursor bada hoga */
.cursor.expand {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    border-color: transparent;
}

/* --- 2. SCROLL ANIMATION STYLES --- */
/* Jab tak scroll nahi kiya, tab tak gayab rahega */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(50px); /* Thoda neeche rahega */
    transition: all 1s ease-out; /* 1 second me upar aayega */
}

/* Jab screen pe aayega, tab ye class lagegi */
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Cards ek ke baad ek aayenge (Thoda delay) */
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.4s; }









/* 
animations  */











/* --- 1. GLITCH ANIMATION --- */
.glitch {
    position: relative;
    color: white;
    font-weight: 800;
    /* Neon glow bhi rahega */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
}

/* 2 nakli layers banayenge glitch ke liye */
.glitch::before,
.glitch::after {
    content: attr(data-text); /* Jo text likha hai wahi copy hoga */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505; /* Peeche ka background color */
}

/* Layer 1: Redish Glitch */
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

/* Layer 2: Blueish Glitch */
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* Animation Logic (Text ko kaatna) */
@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.85deg); }
    5% { clip: rect(70px, 9999px, 71px, 0); transform: skew(0.85deg); }
    10% { clip: rect(29px, 9999px, 83px, 0); transform: skew(0.06deg); }
    15% { clip: rect(10px, 9999px, 92px, 0); transform: skew(0.18deg); }
    20% { clip: rect(1px, 9999px, 80px, 0); transform: skew(0.79deg); }
    25% { clip: rect(50px, 9999px, 96px, 0); transform: skew(0.68deg); }
    30% { clip: rect(69px, 9999px, 6px, 0); transform: skew(0.92deg); }
    35% { clip: rect(93px, 9999px, 13px, 0); transform: skew(0.04deg); }
    40% { clip: rect(2px, 9999px, 48px, 0); transform: skew(0.19deg); }
    45% { clip: rect(57px, 9999px, 60px, 0); transform: skew(0.39deg); }
    50% { clip: rect(49px, 9999px, 20px, 0); transform: skew(0.34deg); }
    55% { clip: rect(25px, 9999px, 39px, 0); transform: skew(0.62deg); }
    60% { clip: rect(66px, 9999px, 37px, 0); transform: skew(0.04deg); }
    65% { clip: rect(8px, 9999px, 11px, 0); transform: skew(0.39deg); }
    70% { clip: rect(32px, 9999px, 65px, 0); transform: skew(0.3deg); }
    75% { clip: rect(4px, 9999px, 10px, 0); transform: skew(0.25deg); }
    80% { clip: rect(90px, 9999px, 92px, 0); transform: skew(0.64deg); }
    85% { clip: rect(15px, 9999px, 58px, 0); transform: skew(0.85deg); }
    90% { clip: rect(24px, 9999px, 3px, 0); transform: skew(0.24deg); }
    95% { clip: rect(33px, 9999px, 49px, 0); transform: skew(0.66deg); }
    100% { clip: rect(11px, 9999px, 38px, 0); transform: skew(0.26deg); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); transform: skew(0.57deg); }
    5% { clip: rect(5px, 9999px, 59px, 0); transform: skew(0.81deg); }
    /* ...same random movement... */
    100% { clip: rect(96px, 9999px, 52px, 0); transform: skew(0.55deg); }
}