:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --dark: #0f172a;
    --light-dark: #1e2937;
    --text: #e2e8f0;
    --gray: #94a3b8;
    --bg-light: #f8fafc;
    --text-light: #0f172a;
    --card-light: #ffffff;
    --gray-light: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--dark);
    user-select: none;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

/* Light Mode */
body.light-mode {
    --text: #0f172a;
    --gray: #64748b;
    --dark: #f8fafc;
    --light-dark: #e2e8f0;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* background: rgba(15, 23, 42, 0.85); */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 0.85rem 0;
    transition: all 0.4s;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.05); */
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .navbar {
   background: transparent;
    backdrop-filter: blur(16px);
}

body.light-mode .navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

body.light-mode .nav-links a {
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.3s;
}

.hamburger:hover {
    transform: scale(1.1);
}

body.light-mode .hamburger {
    color: var(--text-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: rotate(20deg);
}

body.light-mode #theme-toggle {
    color: #f59e0b;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e2937 50%, #0f172a 100%);
}

body.light-mode .hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
}

/* Animated background orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: floatOrb 12s ease-in-out infinite;
}

.hero::before {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.hero::after {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -80px;
    left: -80px;
    animation-delay: -6s;
}

body.light-mode .hero::before,
body.light-mode .hero::after {
    opacity: 0.08;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-content {
    max-width: 820px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.profile-pic-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 0.45rem;
    margin-bottom: 1.05rem;
}

.profile-pic {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.25);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
}


.hero h1 {
    font-size: 3.1rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text) 0%, var(--gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .hero h1 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.title {
    font-size: 1.3rem;
    color: #60a5fa;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

body.light-mode .title {
    color: #1e40af;
}

.tagline {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 1.55rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.social-links {
    margin-top: 1.5rem;
    margin-bottom: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.6rem;
    color: var(--gray);
    transition: all 0.3s;
    width: 48px;
    height: 48px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .social-links a {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-4px);
    background: var(--primary-glow);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

/* ==================== SECTIONS ==================== */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 1.5rem 80px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: white;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2.logo {
    margin-bottom: 0 !important;
}

body.light-mode h2 {
    color: var(--text-light);
}

h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ==================== ABOUT ==================== */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.12rem;
    color: var(--gray);
    line-height: 1.9;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 4px;
}

/* ==================== EDUCATION TIMELINE ==================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 3px;
}

body.light-mode .timeline::before {
    background: linear-gradient(to bottom, var(--primary), #e2e8f0);
}

.edu-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 75px;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

body.light-mode .edu-item::before {
    border-color: #f8fafc;
}

.edu-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.edu-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ==================== SKILLS ==================== */
.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.skill-category h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    justify-content: center;
}

body.light-mode .skill-category h3 {
    color: var(--text-light);
}

.skill-category h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}

.skill-card {
    background: var(--light-dark);
    padding: 1.3rem 1.4rem;
    border-radius: 14px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.skill-card:hover::before {
    opacity: 1;
}

body.light-mode .skill-card {
    background: var(--card-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .skill-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.skill-icon {
    font-size: 2.6rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    /* Ensures SVG/Font icons scale uniformly */
    object-fit: contain;
}


.skill-card:hover .skill-icon {
    transform: scale(1.18) translateY(-3px);
    filter: brightness(1.05) saturate(1.1);
}


/* Light mode optimization: reduces harsh contrast on colored logos */
body.light-mode .skill-icon {
    filter: brightness(0.9) saturate(0.95);
}

.skill-card span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}


/* Keeps conceptual FA icons aligned with Devicon sizing */
body.light-mode .skill-card span {
    color: var(--text-light);
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #334155;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: auto;
}

body.light-mode .progress-bar {
    background: #e2e8f0;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 9999px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== PROJECTS ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--light-dark);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

body.light-mode .project-card {
    background: var(--card-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .project-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a2332 0%, #1e2937 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(30, 41, 55, 0.8));
}

body.light-mode .project-img {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

body.light-mode .project-img::after {
    background: linear-gradient(to bottom, transparent 60%, rgba(241, 245, 249, 0.8));
}

.project-img i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}

.project-content {
    padding: 1.6rem 1.8rem;
}

.project-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1rem 0 0.3rem;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

body.light-mode .tech-tag {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.15);
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease;
}

body.light-mode .modal {
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--light-dark);
    width: 90%;
    max-width: 900px;
    max-height: 92vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalPop 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-mode .modal-content {
    background: var(--card-light);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header {
    padding: 1.4rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.light-mode .modal-header {
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.modal-body {
    padding: 2rem;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.modal-img {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #1a2332, #1e2937);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

body.light-mode .modal-img {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray);
}

body.light-mode .modal-description {
    color: #475569;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.modal-tech span {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

body.light-mode .modal-tech span {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-links a {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.modal-links .btn-demo {
    background: var(--primary);
    color: white;
}

.modal-links .btn-demo:hover {
    background: #2563eb;
}

.modal-links .btn-github {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.modal-links .btn-github:hover {
    background: var(--primary);
    color: white;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalPop {
    from {
        transform: scale(0.92) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ==================== CONTACT ==================== */
.contact-info {
    text-align: center;
    font-size: 1.05rem;
    color: var(--gray);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--text);
}

body.light-mode .contact-info {
    color: var(--gray-light);
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.contact-card {
    background: var(--light-dark);
    padding: 1.5rem 2rem;
    border-radius: 14px;
    text-align: center;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .contact-card {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;

}

.contact-card h4 {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text);
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #020617;
    color: #475569;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.light-mode footer {
    background: #f1f5f9;
    color: #64748b;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.last-updated {
    font-size: 0.78rem;
    color: #64748b;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

body.light-mode .last-updated {
    color: #94a3b8;
}

/* Mobile tweak */
@media (max-width: 768px) {
    .last-updated { font-size: 0.72rem; }
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.35);
    z-index: 999;
    transition: all 0.3s;
    border: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--light-dark);
    color: var(--text);
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 350px;
    border-left: 4px solid var(--primary);
    backdrop-filter: blur(10px);
}

body.light-mode .toast {
    background: var(--card-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    color: var(--text-light);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.2rem;
    color: var(--primary);
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.2s;
    padding: 4px;
}

.toast-close:hover {
    color: var(--primary);
}

/* ==================== TYPING ANIMATION ==================== */
.typing-text {
    display: inline;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.3em;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: left 0.4s ease;
        font-size: 1.2rem;
    }

    body.light-mode .nav-links {
        background: rgba(248, 250, 252, 0.98);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-content {
        margin-top: 70px;
    }

    .tagline {
        font-size: 1rem;
    }

    .section {
        padding: 80px 1rem 60px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .about-stats {
        gap: 2rem;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .social-links a {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }

    .tagline {
        margin-bottom: 1rem;
    }

    .title {
        font-size: 1.0rem;
        margin-bottom: 0.8rem;
    }
    
    .profile-pic-wrapper{
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
    .tagline {
        margin-bottom: 1.8rem;
    }
}



/* ==================== HERO SIGNATURE ==================== */
.signature {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 140px; /* Adjust size as needed */
    height: auto;
    z-index: 2; /* Above background orbs, below interactive content */
    pointer-events: none; /* Won't block clicks or text selection */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.signature:hover {
    opacity: 1;
}

/* Theme Visibility Logic */
.signature-white { display: block; }
.signature-black { display: none; }

body.light-mode .signature-white { display: none; }
body.light-mode .signature-black { display: block; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
        .signature {
        width: 100px;
        left: calc(50% - 50px);
        top: 5px;
        z-index: 100000;
        position: fixed;
    }
}