/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    --bg-primary: #080710;
    --bg-secondary: #0f0e1d;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #8290a4;
    
    --accent-primary: #a855f7; /* Purple */
    --accent-secondary: #06b6d4; /* Cyan */
    
    --grad-primary: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    --grad-primary-hover: linear-gradient(135deg, #c084fc 0%, #22d3ee 100%);
    --grad-dark: linear-gradient(135deg, #1e1b4b 0%, #083344 100%);
    
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.2);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.2);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}
.skill-pill{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.15);
    border-radius:10px;
    padding:8px 14px;
    color:#fff;
    background:#1a1d2b;
}

.skill-pill span{
    position:relative;
    z-index:2;
}

.skill-pill::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    height:100%;
    background:linear-gradient(90deg,#8b5cf6,#22d3ee);
    opacity:.25;
    z-index:1;
}

.p90::before{ width:90%; }
.p80::before{ width:80%; }
.p70::before{ width:70%; }
.p60::before{ width:60%; }
.p50::before{ width:50%; }
.p40::before{ width:40%; }
.p30::before{ width:30%; }

.text-muted {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-secondary);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e1b4b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==========================================
   REUSABLE UTILITIES
   ========================================== */
.section-padding {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--bg-secondary);
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--grad-primary);
    border-radius: 2px;
    margin-top: 15px;
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--accent-secondary);
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary-gradient {
    background: var(--grad-primary);
    color: #fff !important;
    border: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.btn-primary-gradient:hover {
    background: var(--grad-primary-hover);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* ==========================================
   NAVBAR
   ========================================== */
#mainNavbar {
    padding: 20px 0;
    transition: var(--transition-smooth);
    z-index: 1030;
}

#mainNavbar.scrolled {
    padding: 12px 0;
    background: rgba(8, 7, 16, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-accent {
    color: var(--accent-primary);
    font-family: monospace;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px !important;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-vh: 100vh;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.greeting-badge {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.cursor {
    animation: blink 0.8s infinite;
    color: var(--accent-secondary);
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 580px;
}

/* Hero Social Links */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--text-primary) !important;
    border-color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow-cyan);
}

/* Ambient Background Lights */
.ambient-bg-one {
    position: absolute;
    width: 40vw;
    height: 40vw;
    top: -10vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.ambient-bg-two {
    position: absolute;
    width: 50vw;
    height: 50vw;
    bottom: -15vw;
    left: -15vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Profile Image Glowing Frames */
.profile-image-container {
    width: 420px;
    height: 420px;
    z-index: 2;
}

.glow-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: var(--grad-primary);
    opacity: 0.15;
    filter: blur(10px);
    animation: rotateGlow 8s linear infinite;
}

.glow-ring-inner {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--grad-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0.7;
    animation: rotateGlow 12s linear infinite reverse;
}

.profile-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.profile-image-container:hover .profile-image {
    transform: scale(1.08);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-visual {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.badge-row .badge {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bg-secondary-custom {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ==========================================
   EDUCATION (TIMELINE)
   ========================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px 40px;
}

.timeline-item.left-item {
    left: 0;
    text-align: right;
}

.timeline-item.right-item {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    top: 15px;
    background: var(--accent-secondary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-secondary);
    transition: var(--transition-smooth);
}

.timeline-item.right-item .timeline-dot {
    left: -8px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content {
    position: relative;
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.bg-academic {
    background: rgba(6, 182, 212, 0.1) !important;
    color: var(--accent-secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skill-category-card {
    border-radius: 20px;
}

.category-icon-wrapper {
    background: rgba(168, 85, 247, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.skill-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.skill-badge:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.1);
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.project-card {
    border-radius: 20px;
    height: 100%;
}

.project-img-wrapper {
    height: 200px;
    position: relative;
}

.project-mockup-bg {
    width: 100%;
    height: 100%;
    background: var(--grad-dark);
    position: relative;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 7, 16, 0.85);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.bg-category-project {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    background: rgba(8, 7, 16, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    color: var(--accent-secondary);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.project-actions .btn:hover {
    transform: scale(1.1);
    color: var(--accent-primary) !important;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.highlight-list {
    list-style-type: none;
}

.highlight-list li {
    position: relative;
    margin-bottom: 6px;
}

.highlight-list li::before {
    content: "✓";
    position: absolute;
    left: -20px;
    color: var(--accent-secondary);
    font-weight: 800;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================
   COMPETITIVE PROGRAMMING SECTION
   ========================================== */
.stat-card {
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.dsa-insights-card {
    border-radius: 20px;
    border-left: 4px solid var(--accent-primary);
}

/* ==========================================
   ACHIEVEMENTS & LEADERSHIP
   ========================================== */
.badge-icon-holder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.border-left-indicator {
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    position: relative;
    transition: var(--transition-smooth);
}

.border-left-indicator:hover {
    border-left-color: var(--accent-secondary);
}

.border-left-indicator::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    left: -5px;
    top: 6px;
    transition: var(--transition-smooth);
}

.border-left-indicator:hover::before {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-info-card {
    border-radius: 20px;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.contact-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.contact-form-card {
    border-radius: 20px;
}

/* Float Form Controls */
.form-floating > .form-control {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.form-floating > .form-control:focus {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
    color: var(--text-primary);
}

.form-floating > label {
    color: var(--text-secondary);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent-secondary);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 991.98px) {
    .hero-name {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.6rem;
    }
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding: 0 0 30px 40px;
        text-align: left !important;
    }
    .timeline-item.right-item {
        left: 0;
    }
    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 60px 0;
    }
    .hero-name {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .profile-image-container {
        width: 250px;
        height: 250px;
    }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS (JS-Triggered)
   ========================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}
