@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;700&display=swap');

:root {
    --bg-dark: #05020a;
    --bg-light: #120822;
    --primary-neon: #a855f7;
    --primary-light: #d8b4fe;
    --primary-dark: #6b21a8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background animated elements */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    opacity: 0.5;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #3b0764 0%, transparent 70%);
    animation-delay: -5s;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 2, 10, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(168,85,247,0.5));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-neon);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Sections */
section {
    padding: 6rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
    padding-top: 8rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-neon));
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    border-color: transparent;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-neon);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
}

/* Skills/Projects Section */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 1rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-neon);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 2, 10, 0.8);
    color: var(--text-muted);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-neon);
    transform: translateY(-3px);
}

/* Badges & Certifications Section */
.badges-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
}

.badge-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.badge-card:hover img {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
    transform: scale(1.05);
}

.badge-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.badge-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.badge-date {
    font-size: 0.75rem;
    color: var(--primary-neon);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-top: auto;
}

.badges-credly-link {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Socials Section */
.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
}

.social-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.social-card:hover .social-card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.social-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.social-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.social-card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-card-cta {
    font-size: 0.8rem;
    color: var(--primary-neon);
    font-weight: 600;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}

.social-card:hover .social-card-cta {
    gap: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile hide for now */
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

/* =============================================
   UTILITIES — REVEAL ANIMATION
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   SPLASH SCREEN
   ============================================= */
#splash {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.splash-hidden {
    opacity: 0;
    visibility: hidden;
}
.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.splash-logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(168,85,247,0.7));
    animation: splashPulse 1s ease-in-out infinite alternate;
}
@keyframes splashPulse {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.splash-bar {
    width: 160px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
}
.splash-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-neon));
    border-radius: inherit;
    animation: splashLoad 1.6s ease forwards;
}
@keyframes splashLoad {
    from { width: 0%; }
    to   { width: 100%; }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-neon));
    z-index: 9998;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* =============================================
   CURSOR GLOW (dual-layer)
   ============================================= */
#cursor-glow {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.13) 0%, rgba(107,33,168,0.04) 50%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* JS drives position via requestAnimationFrame — no CSS transition needed */
}

#cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-neon);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(168,85,247,0.9), 0 0 20px rgba(168,85,247,0.5);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

#cursor-dot.hovered {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 2px solid var(--primary-neon);
    box-shadow: 0 0 14px rgba(168,85,247,0.8), 0 0 30px rgba(168,85,247,0.4);
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-neon));
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(168,85,247,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 500;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    box-shadow: 0 6px 28px rgba(168,85,247,0.65);
    transform: translateY(-3px);
}

/* =============================================
   DARK MODE TOGGLE BUTTON
   ============================================= */
#theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
#theme-toggle:hover {
    color: var(--primary-neon);
    border-color: var(--primary-neon);
    box-shadow: 0 0 12px rgba(168,85,247,0.3);
}

/* =============================================
   LIGHT MODE OVERRIDES
   ============================================= */
body.light-mode {
    --bg-dark: #f0f0f8;
    --bg-light: #e8e0f8;
    --text-main: #1a1a2e;
    --text-muted: #555577;
    --glass-bg: rgba(255,255,255,0.6);
    --glass-border: rgba(100,60,180,0.15);
}
body.light-mode nav {
    background: rgba(240,240,248,0.85);
}
body.light-mode footer {
    background: rgba(240,240,248,0.9);
}
body.light-mode .blob-1 {
    background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
}
body.light-mode .blob-2 {
    background: radial-gradient(circle, rgba(107,33,168,0.15) 0%, transparent 70%);
}
body.light-mode #splash {
    background: #f0f0f8;
}

/* =============================================
   ANIMATED STATS COUNTER SECTION
   ============================================= */
.stats-counter-section {
    min-height: auto;
    padding: 4rem 5%;
}
.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.counter-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.counter-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(168,85,247,0.07), transparent 70%);
    pointer-events: none;
}
.counter-icon {
    font-size: 2rem;
    color: var(--primary-neon);
    margin-bottom: 1rem;
    display: block;
}
.counter-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.counter-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =============================================
   ORGANIZATIONS SECTION
   ============================================= */
.orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}
.org-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    align-items: flex-start;
}
.org-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1F7434, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.org-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.org-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}
.org-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    width: fit-content;
}
.org-role.member {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}
.org-role.officer {
    background: rgba(168,85,247,0.15);
    color: var(--primary-neon);
    border: 1px solid rgba(168,85,247,0.3);
}
.org-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.org-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

