/* Modern Variable System - ELITE DARK MODE SCIFI THEME */
:root {
    /* Primary Brand Colors - Neon Cyan & Purple Accent */
    --primary-color: #0ea5e9;
    --primary-dark: #38bdf8;
    --accent-color: #8b5cf6;
    /* Pink/Neon for highlights */
    --accent-pink: #ec4899;

    /* Base Colors - True Dark */
    --bg-body: #050505;
    --bg-light: transparent;
    --bg-card: rgba(15, 23, 42, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Functional */
    --success-color: #10b981;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
}

/* Light Mode Override (if toggled) */
body.light-mode {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --accent-color: #06b6d4;

    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-muted);
    background-color: var(--bg-body);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    max-width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Header & Nav */
header {
    background-color: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.light-mode header {
    background-color: rgba(255, 255, 255, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

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

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

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile Burger */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-body) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Abstract Background Shapes Removed in Favor of Body Orbs */
.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.hero-profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-body);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-profile-img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 88%;
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.timeline-item {
    border-left: 3px solid var(--border-color);
    padding-left: 2rem;
    position: relative;
    margin-bottom: 3rem;
    transition: var(--transition);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    position: absolute;
    left: -9.5px;
    top: 6px;
    border-radius: 50%;
    border: 3px solid var(--bg-body);
    transition: background-color 0.3s;
}

.timeline-item:hover {
    border-left-color: var(--primary-color);
}

.timeline-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.institution {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.date {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Cards (Experience & Projects) */
.experience-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.card,
.project-card,
.contact-card,
.info-item {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card {
    padding: 2.5rem;
}

.card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card h3,
.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.card ul {
    margin-left: 1rem;
}

.card li {
    margin-bottom: 0.8rem;
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.card li::before {
    content: '▹';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Skills */
.skill-category h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-tag {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.skill-tag i {
    color: var(--primary-color);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.skill-tag:hover i {
    color: white;
}

/* Project Cards Specifics */
.project-card {
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
    position: relative;
    overflow: hidden;
}

.project-icon-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    z-index: 1;
    transition: transform 0.5s, color 0.3s;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.4));
}

.project-card:hover .project-icon-placeholder i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6));
}

.project-icon-placeholder::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
    top: -50%;
    left: -50%;
    transition: transform 0.8s;
}

.project-card:hover .project-icon-placeholder::after {
    transform: translate(20px, 20px);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-date {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.project-desc {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tags span {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-item {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.info-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Footer & Contact */
.footer-section {
    background-color: var(--bg-light);
    /* Changed to light/dark aware */
    padding-bottom: 2rem;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%);
}

.contact-card>p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    font-weight: 500;
}

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

.social-links a {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animations using Classes */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}


.fade-in {
    transform: none;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive Media Queries */
@media screen and (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem;
        font-size: 1.2rem;
    }

    .burger {
        display: block;
        z-index: 1001;
        /* Above the menu */
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Animate links when menu opens */
    .nav-active li {
        animation: navLinkFade 0.5s ease forwards 0.2s;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Burger Toggle Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .contact-content {
        gap: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Elite Background Orbs Animation & Glow Effects
   -------------------------------------------------------------------------- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-body);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 25s infinite ease-in-out alternate;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--primary-color);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

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

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: var(--accent-pink);
    top: 30%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(100px, 150px) scale(1.1) rotate(10deg);
    }
}

/* Glow Effect for Cards */
.card::before,
.project-card::before,
.info-item::before,
.contact-card::before {
    background: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    z-index: 3;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 500ms;
    pointer-events: none;
}

.card:hover::before,
.project-card:hover::before,
.info-item:hover::before,
.contact-card:hover::before {
    opacity: 1;
}