/* =========================================
   VARIABLES & THEME SETUP
   ========================================= */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;

    /* Neon Accents */
    --cyan: #00ffcc;
    --cyan-glow: rgba(0, 255, 204, 0.5);
    --purple: #7b2cbf;
    --purple-glow: rgba(123, 44, 191, 0.5);
    --blue: #0077b5;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Navbar */
    --nav-bg: rgba(10, 10, 15, 0.92);
    --nav-scrolled-bg: rgba(10, 10, 15, 0.96);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   LIGHT MODE VARIABLES
   ========================================= */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f2f5;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a60;

    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);

    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-scrolled-bg: rgba(255, 255, 255, 0.97);

    --cyan: #009e7e;
    --cyan-glow: rgba(0, 158, 126, 0.15);
    --purple: #6a1eab;
    --purple-glow: rgba(106, 30, 171, 0.15);
}

/* Light mode specific overrides */
body.light-mode .bg-animation {
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 158, 126, 0.06), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(106, 30, 171, 0.06), transparent 50%);
}

body.light-mode .name {
    background: linear-gradient(135deg, #1a1a2e, #4a4a60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .glass-card:hover {
    border-color: rgba(0, 158, 126, 0.25);
    box-shadow: 0 12px 40px 0 rgba(0, 158, 126, 0.08);
}

body.light-mode .node {
    background: var(--bg-primary);
    border-color: var(--purple);
}

body.light-mode .skill-tags span {
    background: var(--bg-secondary);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: var(--bg-secondary);
}

/* =========================================
   GLOBAL RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Heading hierarchy — each level gets its own size */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.highlight {
    color: var(--cyan);
}

.text-cyan {
    color: var(--cyan);
}

.text-purple {
    color: var(--purple);
}

.text-blue {
    color: var(--blue);
}

/* =========================================
   BACKGROUND ANIMATION
   ========================================= */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 255, 204, 0.05), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(123, 44, 191, 0.05), transparent 50%);
    pointer-events: none;
    transition: background 0.4s ease;
}

/* =========================================
   GLASSMORPHISM UTILITY
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 204, 0.2);
    box-shadow: 0 10px 40px 0 rgba(0, 255, 204, 0.1);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #00b38f);
    color: #0a0a0f;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--cyan-glow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-2px);
}

.btn-nav {
    border: 1px solid var(--cyan);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--cyan) !important;
    font-size: 0.95rem;
}

.btn-nav:hover {
    background: var(--cyan);
    color: #0a0a0f !important;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.7rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

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

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--cyan);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: rotate(15deg);
}

/* =========================================
   SECTIONS & TYPOGRAPHY
   ========================================= */
.section {
    padding: 6rem 0;
}

.alt-bg {
    background-color: var(--bg-secondary);
    transition: background-color 0.4s ease;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.greeting {
    font-family: var(--font-heading);
    color: var(--cyan);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.name {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 40px;
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.social-links a {
    font-size: 1.4rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--cyan-glow);
}

/* Hero Visual (Profile Animation) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 1;
}

.profile-pic {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--cyan);
    z-index: 2;
    box-shadow: 0 0 30px var(--cyan-glow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--cyan-glow);
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.orbiting-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate-orbit 20s linear infinite;
    z-index: 3;
}

@keyframes rotate-orbit {
    0% {
        transform: rotate(0deg);
    }

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

.node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 160px;
    transform: rotate(calc(var(--i) * 120deg)) translateX(160px);
    font-size: 1.3rem;
    color: var(--purple);
    background: var(--bg-primary);
    padding: 10px;
    border-radius: 50%;
    border: 1px solid var(--purple);
    box-shadow: 0 0 15px var(--purple-glow);
    transition: background 0.4s ease;
}

.node i {
    animation: counter-rotate-orbit 20s linear infinite;
    display: inline-block;
}

@keyframes counter-rotate-orbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-content {
    padding: 2.5rem;
    border-radius: 20px;
}

.about-content p {
    font-size: 1.08rem;
    line-height: 1.85;
}

.about-content p:first-of-type {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-content p:nth-of-type(2) {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-content strong {
    color: var(--cyan);
}

.highlight-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: rgba(0, 255, 204, 0.04);
    border: 1px solid rgba(0, 255, 204, 0.08);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    border-color: var(--cyan);
    background: rgba(0, 255, 204, 0.08);
    transform: translateX(4px);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--purple));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 10px;
    width: 14px;
    height: 14px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan-glow);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(0, 255, 204, 0.06);
    border: 1px solid rgba(0, 255, 204, 0.1);
}

.timeline-content p,
.timeline-content ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content ul {
    padding-left: 1.2rem;
    list-style-type: disc;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* =========================================
   AWARDS SECTION
   ========================================= */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.award-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.award-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.award-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.award-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--cyan);
}

.project-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.project-links a:hover {
    color: var(--cyan);
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-stack span {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--cyan);
    background: rgba(0, 255, 204, 0.08);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 204, 0.15);
}

.awards {
    font-size: 0.85rem;
    color: #ffb703;
    font-weight: 600;
    margin-top: auto;
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
}

.skill-category h3 i {
    color: var(--cyan);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tags span {
    font-size: 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.skill-tags span:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.1);
    background: rgba(0, 255, 204, 0.04);
}

/* =========================================
   CERTIFICATIONS SECTION
   ========================================= */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    text-align: center;
    padding: 2rem 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cert-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-icon-img {
    transform: scale(1.1);
}

.cert-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* =========================================
   CONTACT SECTION & FOOTER
   ========================================= */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link i {
    color: var(--cyan);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-link:hover {
    color: var(--cyan);
    transform: translateX(5px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    transition: background-color 0.4s ease;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS (Scroll Reveal)
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {

    .hero-content,
    .grid-2,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .name {
        font-size: 2.8rem;
    }

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

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
        transform: scale(0.8);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--nav-scrolled-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: right 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
        gap: 1.2rem;
    }

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

    .hamburger {
        display: block;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

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

@media (max-width: 480px) {
    .name {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}