/* ============================================
   PORTFOLIO SITE - ULTRA PREMIUM STYLES
   ============================================ */

:root {
    /* --- COLOR PALETTE (Deep Dark Blue & Neon Red) --- */
    --bg-dark: #020c1b;
    /* Blackest Blue */
    --bg-surface: #0a192f;
    /* Dark Blue Surface */
    --bg-card: rgba(17, 34, 64, 0.75);
    /* Glassy Card */

    --primary: #64ffda;
    /* Neon Cyan (Tech) */
    --accent: #ff3b3b;
    /* Neon Red (Passion) */
    --accent-glow: rgba(255, 59, 59, 0.4);

    --text-main: #e6f1ff;
    /* Bright White-Blue */
    --text-muted: #8892b0;
    /* Muted Slate */

    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);

    --transition-fast: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Fluid Typography */
    --fs-h1: clamp(2.5rem, 8vw, 4.5rem);
    --fs-h2: clamp(2rem, 5vw, 3rem);
    --fs-body: clamp(1rem, 1.2vw, 1.1rem);
}

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

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- AURORA BACKGROUND ANIMATION --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(22, 33, 62, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 59, 59, 0.05) 0%, transparent 25%);
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blobFloat 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--primary);
    opacity: 0.08;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--accent);
    opacity: 0.08;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* --- UTILITIES & TYPOGRAPHY --- */
.section-title {
    font-weight: 800;
    font-size: var(--fs-h2);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.gradient-text-anim {
    background: linear-gradient(120deg, var(--text-main), var(--primary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.navbar-brand span {
    color: var(--text-main);
}

/* --- VIVID ANIMATED BUTTONS --- */
.btn-fun-primary {
    background: linear-gradient(90deg, var(--primary), #4cc9f0);
    border: none;
    color: var(--bg-dark);
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
}

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

.btn-fun-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.7);
}

.btn-fun-primary:hover::before {
    opacity: 1;
}

.btn-fun-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255, 59, 59, 0.5);
    /* Red Accent Border */
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-fun-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

/* Nav Pills / Buttons */
.navbar-nav .nav-link {
    color: var(--text-main) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid transparent;
}

/* Hover: Glassy Pill */
.navbar-nav .nav-link:hover {
    background: rgba(100, 255, 218, 0.1);
    /* Subtle Green Tint */
    color: var(--primary) !important;
    transform: translateY(-2px);
    border-color: rgba(100, 255, 218, 0.2);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

/* Active: Filled Gradient Pill */
.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.15), rgba(100, 255, 218, 0.05));
    color: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    font-weight: 600;
}

/* --- THEME DROPDOWN --- */
.glass-dropdown {
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 180px;
}

.theme-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-btn:hover {
    transform: scale(1.2);
    z-index: 2;
    box-shadow: 0 0 10px currentColor;
}

.theme-btn.active {
    transform: scale(1.1);
    border: 2px solid #fff !important;
    box-shadow: 0 0 15px currentColor;
}

/* Remove old underline effect */
.nav-link::before,
.nav-link::after {
    display: none;
}

/* --- HERO SECTION --- */
.hero-img-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    perspective: 1000px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 50px rgba(100, 255, 218, 0.2);
}

.hero-ring {
    position: absolute;
    inset: -20px;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    animation: rotateRing 20s linear infinite;
    opacity: 0.5;
    z-index: 1;
}

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

.hero-badge {
    position: absolute;
    bottom: 10px;
    right: -15px;
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--glass-shadow);
    z-index: 3;
    animation: floatBadge 3s infinite ease-in-out;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* --- HOLOGRAPHIC CARD DESIGN --- */
.fun-card {
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Gradient Border Trick using pseudo-element */
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Moving Gradient Border */
.fun-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    /* Border width */
    background: linear-gradient(45deg, var(--primary), transparent, var(--accent), transparent, var(--primary));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 4s linear infinite;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.fun-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(10, 25, 47, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.fun-card:hover::after {
    opacity: 1;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Card Icon Box */
.fun-card .bi-folder-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fun-card:hover .bi-folder-fill {
    background: var(--primary);
    color: var(--bg-dark);
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 0 20px var(--primary);
    border-color: transparent;
}

.card-title {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* --- TAGS / CHIPS --- */
.tech-pill {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px;
    background: rgba(100, 255, 218, 0.05);
    /* Slight Cyan tint */
    color: var(--primary);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: inherit;
    /* Use custom font */
    transition: var(--transition-fast);
    cursor: default;
}

.tech-pill:hover,
.tech-pill.active {
    background: rgba(100, 255, 218, 0.15);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

/* --- ABOUT TEXT ANIMATION (Staggered classes added via JS or CSS child select) --- */
.about-text p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.about-text.visible p {
    opacity: 1;
    transform: translateY(0);
}

.about-text.visible p:nth-child(1) {
    transition-delay: 0.1s;
}

.about-text.visible p:nth-child(2) {
    transition-delay: 0.3s;
}

.about-text.visible ul {
    transition-delay: 0.5s;
}

.tech-list {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.5s;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.about-text.visible .tech-list {
    opacity: 1;
    transform: translateY(0);
}

.tech-list li {
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.tech-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- ABOUT GRID (BENTO STYLE) --- */
.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(100, 255, 218, 0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.about-card:hover .icon-box {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px var(--primary);
}

/* Override parent padding for layout if needed,
   but specific to about-text-container being used dynamically */
#about-text-container {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

/* Ensure the parent .card-body doesn't constrain too much */
.fun-card .card-body {
    padding: 0;
}

/* --- CONTACT --- */
.contact-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.contact-icon:hover {
    color: var(--primary);
    transform: translateY(-3px) scale(1.1);
}

/* --- FOOTER --- */
footer {
    background: #020c1b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero-img-container {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem;
    }

    .display-2 {
        font-size: 2.2rem;
    }

    .tech-list {
        grid-template-columns: 1fr;
    }

    /* Single column stack */

    /* Ensure padding for mobile */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Mobile Menu BG */
    .navbar-collapse {
        background: var(--bg-surface);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        box-shadow: var(--glass-shadow);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 10px;
    }
}