/* --- GLOBAL VARIABLES --- */
:root {
    --bg-dark: #0B1120;
    --bg-card: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --cyan: #22D3EE;
    --purple: #A855F7;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION (GLASSMORPHISM) --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: 20px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-btn {
    border: 1px solid var(--cyan);
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--cyan) !important;
}

.nav-btn:hover {
    background: rgba(34, 211, 238, 0.1);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.tech-tagline {
    font-family: var(--font-mono);
    color: var(--cyan);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(to right, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    min-height: 60px; /* Prevents layout shift during typing */
}

/* --- HERO BUTTONS (CLEANED UP & FIXED) --- */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px; /* Modern pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary Button with Gradient Glow */
.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
    color: #fff;
}

/* Secondary Button (Outline) - Kept in case you uncomment the GitHub link */
.btn-secondary {
    border: 2px solid var(--cyan);
    color: var(--cyan);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

/* Background Glow Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--cyan);
    top: 10%;
    left: 10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--purple);
    bottom: 10%;
    right: 10%;
}

/* --- PROJECTS SECTION --- */
.projects-section {
    padding: 100px 20px;
    background: #0f172a; /* Slightly lighter than hero */
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d; /* For JS 3D tilt */
}

.project-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.folder-icon {
    font-size: 2rem;
}

.tech-stack span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    margin-left: 10px;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.text-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--cyan);
}

/* --- ANIMATION UTILITIES --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- ABOUT & SKILLS SECTION --- */
.about-section {
    padding: 100px 20px;
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
#About_myself {
    /* 1. Typography Improvements */
    font-size: 1.1rem;
    line-height: 1.8; /* Increases vertical space between lines for readability */
    color: #a8b2d1;   /* A softer, slightly blue-tinted grey (easier on eyes than pure white) */
    font-weight: 400;
    
    /* 2. Layout & Spacing */
    max-width: 500px; /* Prevents the text from stretching too wide across the screen */
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    
    /* 3. Visual Polish */
    text-align: left;
    letter-spacing: 0.2px; /* Adds a tiny bit of space between letters for a cleaner look */
    position: relative;
}

/* Optional: Adding a subtle left border to give it a "quote" or "intro" feel */
#About_myself::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: linear-gradient(to bottom, #00d2ff, #928dab); /* Matches your "Code" gradient */
    border-radius: 2px;
    opacity: 0.6;
}
.skills-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.skill-group {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.group-header h4 {
    color: var(--text-main);
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.glass-tag {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    cursor: default;
}

.glass-tag:hover {
    background: rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.15);
}

/* --- TIMELINE SECTION --- */
.timeline-section {
    padding: 100px 20px;
    background: #0f172a;
}

.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--purple));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.date-badge {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--purple);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.issuer {
    color: var(--cyan);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* --- ENHANCED FOOTER --- */
.glass-footer {
    position: relative;
    padding: 120px 20px 50px;
    background: radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.05) 0%, var(--bg-dark) 60%);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: var(--purple);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    border-radius: 50%;
}

.footer-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    z-index: 10;
}

.footer-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

/* --- THE NEON BUTTON --- */
.btn-neon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.btn-neon:hover {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2), inset 0 0 15px rgba(34, 211, 238, 0.1);
    color: var(--cyan);
}

.btn-neon svg {
    transition: transform 0.3s ease;
}

.btn-neon:hover svg {
    transform: translateX(5px);
}

/* --- MODERN SOCIAL ICONS --- */
.social-links-modern {
    margin: 60px 0 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    color: var(--text-main);
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}
#linkdin_color:hover{
    background-color: #0A66C2;
}
#X:hover{
    background-color: #000000;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS & MOBILE NAV
   ========================================= */

/* --- Prevent Horizontal Scrolling (BULLETPROOF FIX) --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
}

/* Trap the glowing orbs so they don't stretch the screen */
.hero {
    overflow-x: hidden; 
}

/* --- Hide hamburger by default (Desktop) --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 10000; /* Boosted z-index */
    position: relative;
}

.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    background-color: var(--cyan);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* --- Mobile Breakpoint (Phones & Small Tablets) --- */
@media (max-width: 768px) {
    
    /* 1. Fix Header & Menu Visibility */
    .nav-container {
        padding: 0 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }
    
    .logo {
        font-size: 1.2rem; 
        white-space: nowrap; /* Stops the logo from breaking to a new line */
        z-index: 10000;
        position: relative;
    }

    /* 2. Fix Hamburger Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 17, 32, 0.98); 
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 9999; /* Just below the hamburger icon */
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* 3. Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--purple);
    }

    /* 4. Fix Hero Section Sizing */
    h1 {
        font-size: 2.2rem; /* Scaled for Galaxy A52 */
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column; 
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%; 
        text-align: center;
    }

    /* 5. Fix Grid & Timeline Spacing */
    .about-grid, .project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 35px; 
    }
    
    .timeline-dot {
        left: 4px;
        width: 12px;
        height: 12px;
    }
    
    .footer-title {
        font-size: 2.2rem; 
    }
    
    .footer-glow {
        width: 300px; /* Shrink the footer glow so it doesn't cause overflow */
    }
}

/* Blinking Cursor Animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}