/* --- 1. Variables & Reset --- */
html {
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0a0a0a;
    --neon-blue: #00f2ff;
    --neon-purple: #7000ff;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- 2. Fixed Aurora Background --- */
.aura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10; 
    overflow: hidden;
    background: #050505;
}

.aura-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--neon-purple), transparent);
    top: -10%;
    left: -10%;
    animation: float 20s infinite alternate;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--neon-blue), transparent);
    bottom: -10%;
    right: -10%;
    animation: float 15s infinite alternate-reverse;
}

.blob-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #0044ff, transparent);
    top: 40%;
    left: 40%;
    animation: float 25s infinite alternate;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* --- 3. Typography & Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-spacer {
    padding: 100px 0;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-header .line {
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
    flex-grow: 1;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4. Glass Header --- */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    z-index: 1000;
    border-radius: 0; 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}
.dot { color: var(--neon-blue); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--neon-blue); }

.btn-nav {
    border: 1px solid var(--neon-blue);
    padding: 8px 20px;
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--neon-blue);
    color: #000 !important;
    box-shadow: 0 0 15px var(--neon-blue);
}

/* --- 5. Hero Section (FIXED IMAGE & BORDER) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-image-box {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Updated: White Glass Glowing Border */
.img-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%; 
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: #000;
    /* Pure white glass glowing effect */
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.2);
    /* Continuous Pulse Animation */
    animation: white-glass-pulse 3s infinite alternate;
}

@keyframes white-glass-pulse {
    0% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.2);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.img-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* The top image handles the fading animation */
/* Updated: Slower speed (14s) and Blur Logic */
.img-top {
    animation: fade-switch 14s infinite ease-in-out;
}

/* Animation Cycle:
   - Stay Clear
   - Blur Heavily -> Fade Out
   - Stay Invisible (Back image shows)
   - Blur Heavily -> Fade In
   - Stay Clear
*/
@keyframes fade-switch {
    0%, 40% {
        opacity: 1;
        filter: blur(0px);
    }
    45% {
        opacity: 1;
        filter: blur(10px); /* Start Blurring before fading */
    }
    55% {
        opacity: 0;
        filter: blur(10px); /* Fade out while blurred */
    }
    60%, 90% {
        opacity: 0;
        filter: blur(0px);
    }
    95% {
        opacity: 0;
        filter: blur(10px); /* Prepare to fade in with blur */
    }
    100% {
        opacity: 1;
        filter: blur(0px); /* Clear */
    }
}

.orbit-circle {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.2);
    animation: spin 20s linear infinite;
    z-index: 1;
}

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

.hero-text .small-tag {
    color: var(--neon-blue);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.neon-name {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
    color: #fff;
    animation: name-glow 2s infinite alternate;
}

@keyframes name-glow {
    0% { text-shadow: 0 0 10px rgba(0, 242, 255, 0.5); }
    100% { text-shadow: 0 0 25px rgba(0, 242, 255, 0.9), 0 0 50px rgba(0, 242, 255, 0.6); }
}

.interactive-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 40px;
    cursor: default;
    transition: all 0.4s ease;
}

.interactive-subtitle:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 14px 35px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.btn-primary:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.8);
}

.btn-linkedin {
    padding: 14px 35px;
    background: #0077b5;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-linkedin:hover { background: #005e93; transform: translateY(-3px); }

/* --- 6. Content Modules (Glass) --- */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    transition: 0.3s;
}

.glass-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Skills */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    cursor: default;
}

.skill-pill i { color: var(--neon-blue); }

.skill-pill:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* Education & Leadership Grids */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.icon-box {
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.year-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--neon-blue);
}

/* Certifications */
.cert-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    height: 100%;
}

.cert-item img {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.cert-item p {
    font-weight: 600;
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* --- 7. Experience Accordion --- */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.accordion-head {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-head:hover { background: rgba(255,255,255,0.05); }

.role-group h3 {
    font-size: 1.2rem;
    color: #fff;
}
.company-name {
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.meta-group {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.date-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.arrow-icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.accordion-item.active .arrow-icon {
    transform: rotate(180deg);
    color: var(--neon-blue);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: rgba(0,0,0,0.3);
}

.inner-content { padding: 30px; }
.inner-content ul { padding-left: 20px; }
.inner-content li { margin-bottom: 10px; color: #ddd; }
.simple-list { list-style: none; padding-left: 0 !important; }

/* --- 8. Contact & Footer --- */
.contact-section {
    padding: 80px 0 40px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    margin-top: 50px;
}

.center-text { text-align: center; }

.contact-msg {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.action-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.action-btn {
    padding: 15px 30px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.action-btn:hover { transform: translateY(-5px); }
.mail { background: #333; border: 1px solid #555; }
.linkedin { background: #0077b5; }
.whatsapp { background: #25D366; }

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.credits a { color: var(--neon-blue); text-decoration: none; }

/* --- 9. Mobile Responsive --- */
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text { margin-top: 30px; }
    
    .hero-btns { justify-content: center; }
    
    .meta-group {
        align-items: flex-start;
        text-align: left;
        margin-top: 10px;
    }
    .accordion-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        border-bottom: 1px solid var(--neon-blue);
    }

    .nav-links.active { left: 0; }

    .hamburger.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    .neon-name { font-size: 2.5rem; }
    
    .glass-header { width: 100%; top: 0; left: 0; transform: none; border: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .hero-section { padding-top: 120px; }
}