/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- NEW: Keyframe Animation for Multi-Color Glow --- */
@keyframes multi-color-glow {
    0% { box-shadow: 0 0 25px 5px rgba(111, 0, 255, 0.4); } /* Purple */
    33% { box-shadow: 0 0 25px 5px rgba(255, 100, 100, 0.4); } /* Pink/Red */
    66% { box-shadow: 0 0 25px 5px rgba(250, 204, 21, 0.4); }  /* Yellow */
    100% { box-shadow: 0 0 25px 5px rgba(111, 0, 255, 0.4); } /* Back to Purple */
}

/* 1. VARIABLES & BASE STYLES */
:root {
    --primary-font: 'Poppins', sans-serif;
    --primary: 259 83% 57%;
    --primary-foreground: 0 0% 100%;
    --secondary: 267 100% 97%;
    --secondary-foreground: 259 83% 57%;
    --foreground: 222.2 84% 4.9%;
    --accent-orange: 35 91% 62%;
    --accent: 35 91% 62%;
    --radius: .75rem;
    --accent-foreground: 0 0% 100%;
    --bg-light: #F9F7FF;
    --card-light-bg: #FFFFFF;
    --background: 0 0% 100%;
    --bg-dark: #100E17;
    --muted-foreground: 215.4 16.3% 46.9%;
    --primary: 259 83% 57%;
    --accent-orange: 35 91% 62%;
    --border: 267 32% 94%;
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent-orange)));
    --gradient-card: linear-gradient(135deg, hsl(267 100% 97%), hsl(0 0% 100%));
    --gradient-main: linear-gradient(135deg, #4F00BC 0%, #B434EB 50%, #FF6464 100%);
    --gradient-text: linear-gradient(90deg, #FACC15, #F97316);
    --gradient-accent: linear-gradient(135deg, hsl(35 91% 62%), hsl(48 100% 67%));
    --card-glass-bg: rgba(255, 255, 255, 0.07);
    --card-glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: #D1D1D1;
    --text-dark: #111827;
    --text-dark-secondary: #6B7280;
    --accent-yellow: #FACC15;
    --accent-purple: #6A11CB;
    --border-light: #ECE9F4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--primary-font);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { color: hsl(var(--foreground));font-size: 42px; font-weight: 700; margin-bottom: 10px; }
.section-title p { font-size: 15px; color: hsl(var(--muted-foreground)); max-width: 600px; margin: 0 auto; }
.section-title #sec1{color: hsl(var(--primary-foreground));}
.section-title #sec2{color: hsl(var(--primary-foreground));}
/* 2. ENHANCED BUTTONS */
.btn { padding: 14px 32px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; display: inline-block; border: none; }
.btn-primary { background: var(--accent-yellow); color: var(--text-dark); position: relative; }
.btn-primary::after { content: ''; position: absolute; bottom: -6px; right: 30px; width: 12px; height: 12px; background: var(--accent-yellow); transform: rotate(45deg); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 5px 25px rgba(250, 204, 21, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--card-glass-border); color: var(--text-primary); }
.btn-secondary:hover { background: var(--text-primary); color: var(--text-dark); }

/* 3. HEADER & NAVIGATION */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; transition: background-color 0.3s ease, padding 0.3s ease; }
.header.scrolled { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header.scrolled .logo, .header.scrolled .nav-links a { color: var(--text-dark); }
.header.scrolled .nav-links a.active { color: var(--accent-purple); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; transition: padding 0.3s ease; }
.logo { margin-left: 20px; font-size: 24px; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s ease; position: relative; padding: 5px 0; }
.nav-links a.active { color: var(--text-primary); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 50%; transform: translateX(-50%); background-color: var(--accent-yellow); transition: all 0.3s ease; }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.header.scrolled .nav-links a.active::after, .header.scrolled .nav-links a:hover::after { background-color: var(--accent-purple); }
.menu-toggle { display: none; }
/* 4. HERO SECTION */
.hero { min-height: 100vh; background: var(--gradient-hero); display: flex; align-items: center; }
.hero-content { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.hero-text { max-width: 600px; }
.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
    background: rgba(255, 255, 255, 0.1); /* Darkened for visibility */
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    margin-bottom: 20px;
    color: white; /* Added for visibility */
    font-family: sans-serif; /* Added for visibility */
}
.availability::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #22c55e; /* Green color */
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}
.hero-text h1 { font-size: 64px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-text h1 span { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p { font-size: 18px; color: var(--text-secondary); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 20px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 20px; }
.stat { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--card-glass-border); padding: 15px 25px; border-radius: 10px; text-align: center; }
.stat a{text-decoration: none;}
.stat h3 { color: var(--text-primary);font-size: 32px; font-weight: 700; }
.stat p { color: var(--text-secondary); font-size: 14px; margin: 0; }
.hero-image { position: relative; }
.image-wrapper { width: 400px; height: 400px; border-radius: 50%; background: var(--gradient-main); display: flex; justify-content: center; align-items: center; }
.hero-image img { width: 95%; height: 95%; border-radius: 50%; object-fit: cover; }
.badge { position: absolute; padding: 10px 20px; border-radius: 50px; font-weight: 600; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border: 1px solid var(--card-glass-border); animation: float 4s ease-in-out infinite;}
.badge.java { top: 20px; left: -30px; background: var(--gradient-accent); color: var(--primary); }
.badge.full-stack { bottom: 20px; right: -30px; background: var(--gradient-hero);animation-delay: -2s;}
/* Keyframes for the floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}
/* --- 5. LIGHT THEME SECTIONS with ENHANCED HOVER EFFECTS --- */
.about,  .projects { background: var(--gradient-card); }
.skills, .experience{background-color: hsl(var(--background));}
.about .section-title h2, .skills .section-title h2, .projects .section-title h2, .experience .section-title h2 { color: var(--text-dark); }
.contact.section-title {color: var(-primary-foreground);}
/* --- ENHANCED: Universal transition and hover effect for all light theme cards --- */
.about-card, .skill-card, .project-card, .experience-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.about-card:hover, .skill-card:hover, .project-card:hover, .experience-card:hover {
    transform: translateY(-8px) scale(1.03); /* Pop-up effect */
    box-shadow: 0 15px 30px rgba(111, 0, 255, 0.1); /* Subtle glowing effect */
}

.about-content { border-color: hsl(var(--border)); display: grid; grid-template-columns: 2fr 1.5fr; gap: 60px; align-items: flex-start; }
.about-text p { color: var(--text-dark-secondary); font-size: 18px; line-height: 1.8; margin-bottom: 20px; }
.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-card { background: var(--gradient-card); border: 1px solid var(--border-light); padding: 20px; border-radius: 10px; text-align: center; }
.about-card i { font-size: 28px; color: var(--accent-purple); margin-bottom: 10px; }
.about-card h3 { font-size: 18px; margin-bottom: 5px; color: var(--text-dark); }
.about-card p { font-size: 14px; color: var(--text-dark-secondary); margin: 0; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.skill-card { background: var(--gradient-card); border: 1px solid var(--border-light); padding: 30px; border-radius: 10px; }
.skill-icon1{color: hsl(var(--primary));background-color: hsl(var(--primary)/.1); border-radius: 10px; padding:15px;  border: 1px solid var(--border-light);}
.skill-icon2{color: hsl(var(--accent-orange));background-color: hsl(var(--accent-orange)/.1); border-radius: 10px; padding:15px; border: 1px solid var(--border-light);}
.skill-icon3{color: var(--accent-yellow);background-color: hsl(var(--accent-orange)/.1); border-radius: 10px; padding:  15px; border: 1px solid var(--border-light);}
.skill-icon4{color: var(--accent-purple);background-color: hsl(var(--foreground)/.1); border-radius: 10px; padding: 15px; border: 1px solid var(--border-light);}
.skill-icon5{color: hsl(var(--primary));background-color: hsl(var(--primary)/.1); border-radius: 10px; padding: 15px; border: 1px solid var(--border-light);}
.skill-card h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 20px; color: var(--text-dark); }
.skill-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-card li { color: hsl(var(--secondary-foreground));background-color: hsl(var(--secondary) / .9); border-radius: 9999px; border: 1px solid var(--border-light);padding: 8px 15px; font-size: 14px; font-weight: 500; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card { background: var(--gradient-card); border: 1px solid var(--border-light); padding: 30px 30px 30px 45px; border-radius: 10px; position: relative; }
.project-card::before { content: ''; position: absolute; left: 15px; top: 30px;bottom: 30px; width: 4px; background: var(--gradient-hero); border-radius: 5px; }
.project-card:nth-of-type(2)::before { background: var(--gradient-accent); }
.project-card h3 { font-size: 24px; margin-bottom: 15px; color: var(--text-dark); }
.project-card p { color: var(--text-dark-secondary); margin-bottom: 20px; }
.project-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--text-dark); }
.project-card ul { list-style-type: '•'; list-style-position: initial; color: var(--text-dark-secondary); margin-bottom: 20px; padding-left: 5px; }
.project-card ul li { padding-left: 10px;margin-bottom: 5px; }
.tech-stack1 { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tech-stack2 { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tech-stack span { background-color: hsl(var(--primary) / .1); color: hsl(var(--primary)); padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: 500; border: 1px solid var(--border-light); }
.project-links a { color: black; background-color: whitesmoke; border-radius: calc(var(--radius) - 2px); text-decoration: none;justify-content: center; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; margin-right: 20px;  font-size: .875rem; line-height: 1.25rem; padding: .75rem;}
.project-links a:hover{ color: hsl(var(--accent-foreground)); background-color: hsl(var(--accent));}

.experience-card {display: flex; gap: 30px; max-width: 900px; margin: 0 auto; padding: 40px; border-left: 5px solid var(--accent-purple); background: var(--gradient-card); border: 1px solid var(--border-light); border-radius: 10px;position: relative; }
.experience-card::before { content: ''; position: absolute; left: 15px; top: 30px;bottom: 30px; width: 4px; background: var(--gradient-hero); border-radius: 5px; }
.exp-icon { font-size: 40px; color: var(--accent-purple); margin-top: 5px; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.exp-header h3 { color: hsl(var(--foreground)); font-weight: 700; font-size: 1.5rem; }
.exp-header p { color: hsl(var(--accent-orange)); font-weight: 600; margin: 0; font-size: 1.125rem;}
.exp-header span { background-color: hsl(var(--primary) / .1); color: var(--accent-purple); padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; border: 1px solid var(--border-light); }
.exp-description { margin-bottom: 30px; color: hsl(var(--muted-foreground)); }
.exp-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-details h4 { font-size: 16px; color: var(--text-dark); margin-bottom: 10px; }
.exp-details .tech-stack1 span { 
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: .75rem;
    line-height: 1rem;
    padding-top: .25rem;
    padding-bottom: .25rem;
    padding-left: .5rem;
    padding-right: .5rem;
    background-color: hsl(var(--primary) / .1);
    border-radius: .25rem;
    border: 1px solid var(--border-light);
}
.exp-details .tech-stack2 span {
    color: hsl(var(--accent-orange));
    font-weight: 500;
    font-size: .75rem;
    line-height: 1rem;
    padding-top: .25rem;
    padding-bottom: .25rem;
    padding-left: .5rem;
    padding-right: .5rem;
    background-color: hsl(var(--accent-orange) / .1);
    border-radius: .25rem;
    border: 1px solid var(--border-light);
}
.exp-details p { color: var(--text-dark-secondary); font-size: 14px; }

/* --- 6. CONTACT SECTION with ENHANCED HOVER EFFECTS --- */
.contact { background: var(--gradient-hero); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.contact-card { background: var(--card-glass-bg); border: 1px solid var(--card-glass-border); padding: 30px; border-radius: 10px; text-align: center; backdrop-filter: blur(10px); transition: all 0.4s ease; text-decoration: none; color: var(--text-primary); }
.contact-card:hover {
    transform: translateY(-8px) scale(1.05); /* "Pop up" effect */
    animation: multi-color-glow 4s infinite alternate; /* "Glowing" and "multi-color" effect */
}
.contact-card i { font-size: 35px; margin-bottom: 15px; }
.icon1{color: var(--accent-purple);}
.icon2{color: hsl(var(--accent-orange));}
.icon3{color: var(--accent-yellow);}
.contact-card h3 { margin-bottom: 5px; }
.contact-card p { color: hsl(var(--primary-foreground) / .9); margin-bottom: 15px; }
.contact-card span { font-weight: 600; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace; }
.contact-cta { background: var(--card-glass-bg); border: 1px solid var(--card-glass-border); padding: 40px; border-radius: 10px; text-align: center; }
.contact-cta h3 { font-size: 28px; margin-bottom: 10px; }
.contact-cta p { color: hsl(var(--primary-foreground) / .9); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }

footer {
  text-align: center;
  padding: 20px;
  background: #121212;
  font-size: 0.9rem;
  color: #bbb;
}
/* --- 7. ENHANCED RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    section { padding: 80px 0; }
    .section-title h2 { font-size: 36px; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-stats, .hero-buttons { justify-content: center; }
    .about-content { grid-template-columns: 1fr; }
    .about-cards { grid-template-columns: repeat(2, 1fr); }

    /* --- NEW: Hamburger Menu & Mobile Nav Styles --- */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around; 
        align-items: center;
        width: 35px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        margin-right: 20px;
        padding:0;
        border: 8px solid transparent;
        border-radius: 7px;
        z-index: 1001;
    }
    .menu-toggle:hover{ padding: 0;border-color:hsl(var(--accent)); background-color: hsl(var(--accent));}
    .menu-toggle .bar {
        width: 100%;
        height: 1.5px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: background-color 0.3s ease;
    }
    .header.scrolled .menu-toggle .bar {
        background-color: var(--text-dark);
    }
    .links-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--gradient-hero);
        color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a { font-size: 22px; }
}
@media (max-width: 768px) {
    .hero-text h1 { font-size: 48px; }
    .hero-image .image-wrapper { width: 300px; height: 300px; }
    .projects-grid, .contact-grid, .exp-details { grid-template-columns: 1fr; }
    .experience-card { flex-direction: column; text-align: center; align-items: center; }
    .exp-header { flex-direction: column; align-items: center; gap: 10px; }
    .hero-stats { gap: 15px; }
    .stat { padding: 10px 15px; }
    .stat h3 { font-size: 28px; }
}
@media (max-width: 480px) {
    .section-title h2 { font-size: 32px; }
    .about-cards { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; align-items: center; gap: 20px; }
    .hero-text h1 { font-size: 40px; }
    .cta-buttons { flex-direction: column; }
}

