/* ===== CSS VARIABLES & RESET ===== */
:root {
    --bg-color: #0b0f19; /* Premium Deep Cyber Navy */
    --text-primary: #f8fafc; /* Crystal ice white */
    --text-secondary: #94a3b8; /* Modern slate gray */
    --accent-color: #3b82f6; /* Electric Blue */
    --accent-hover: #60a5fa; /* Soft blue hover */
    --secondary-color: #6366f1; /* Royal Indigo */
    --accent-gradient: linear-gradient(135deg, #3b82f6, #6366f1); /* Electric Blue to Indigo gradient */
    --glass-bg: rgba(15, 23, 42, 0.7); /* Deep slate-blue glass */
    --glass-border: rgba(59, 130, 246, 0.15); /* Electric Blue glass border */
    --html-color: #e34f26;
    --css-color: #1572b6;
    --python-color: #ffd43b; /* Python Yellow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--bg-color);
    /* Subtle developer grid pattern overlay */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 56px 56px, 56px 56px;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    /* Rich purple-indigo dark mesh gradient background */
    background: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.16) 0px, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.14) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%), 
        radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.08) 0px, transparent 50%), 
        #0b0f19;
}

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

.orb-1 {
    width: 450px;
    height: 450px;
    background: rgba(59, 130, 246, 0.22);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.18);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(16, 185, 129, 0.12);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: rgba(59, 130, 246, 0.12);
    bottom: 35%;
    left: -120px;
    animation-delay: -15s;
}

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

/* ===== GLASSMORPHISM UTILITY ===== */
.glass-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(-3deg);
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 0 30px rgba(124, 58, 237, 0.25);
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: padding 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}

nav.nav-scrolled {
    padding: 0.9rem 0;
    background-color: rgba(8, 12, 20, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

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

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

.btn-nav {
    background: var(--accent-gradient);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.btn-nav:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hamburger Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 110;
}

.menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.25);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c084fc, #22d3ee);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(168, 85, 247, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== LAYOUT WRAPPERS ===== */
section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    align-items: center;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    padding: 4rem 2rem;
}

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

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.typing-text {
    color: var(--text-primary);
    font-weight: 600;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--secondary-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.education-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 16px;
}

.education-badge i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.education-badge div {
    display: flex;
    flex-direction: column;
}

.education-badge strong {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.education-badge span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Terminal Mockup Styles */
.terminal-mockup {
    width: 100%;
    background: rgba(8, 12, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.terminal-mockup:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.2);
}

.terminal-header {
    background: rgba(13, 18, 30, 0.8);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-expand { background-color: #27c93f; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.terminal-body {
    padding: 1.5rem;
    overflow-x: auto;
    text-align: left;
}

.terminal-body pre {
    margin: 0;
}

.terminal-body code {
    font-family: 'Fira Code', monospace, Consolas, Courier;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
}

/* Syntax Highlighting Colors */
.terminal-body .keyword { color: #f43f5e; font-weight: 600; }
.terminal-body .class-name { color: #06b6d4; font-weight: 600; }
.terminal-body .method { color: #3b82f6; }
.terminal-body .variable { color: #a855f7; }
.terminal-body .attribute { color: #fbbf24; }
.terminal-body .string { color: #10b981; }
.terminal-body .comment { color: #64748b; font-style: italic; }

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

.skill-card {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
}

.html-icon { color: var(--html-color); }
.css-icon { color: var(--css-color); }
.js-icon { color: #f7df1e; } /* JavaScript Yellow */
.python-icon { color: var(--python-color); }
.design-icon { color: var(--secondary-color); } /* Web Design Cyan */
.uiux-icon { color: #ec4899; } /* UI/UX Pink */

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

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
    min-height: unset;
    padding-bottom: 6rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}

.contact-card {
    text-align: left;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Glassmorphic Form Fields */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    font-size: 1rem;
}

/* Float Label Animation */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    padding: 0 0.4rem;
    background: #05060b; /* Match body bg */
    color: var(--secondary-color);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.03);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.btn-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translate(3px, -3px);
}

/* Form Feedback Loading & Success */
.form-feedback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(6, 182, 212, 0.1);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    display: none;
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

.feedback-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.feedback-message {
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-back-form {
    display: none;
}

/* Sidebar Styling */
.contact-sidebar-card {
    padding: 3rem 2.5rem;
    height: 100%;
}

.contact-sidebar-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.sidebar-contact-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.sidebar-contact-link i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.8rem;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.link-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.link-details span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.link-details strong {
    color: var(--text-primary);
    font-size: 1rem;
    word-break: break-all;
}

.sidebar-contact-link:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.25);
    transform: translateX(5px);
}

.sidebar-contact-link:hover i {
    color: var(--accent-color);
    background: rgba(124, 58, 237, 0.1);
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-start;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.25);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
    .name { font-size: 3.5rem; }
    .about-content { grid-template-columns: 1fr; }
    .visual-placeholder { display: none; }
    .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(8, 12, 20, 0.96);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
        z-index: 99;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .btn-nav {
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .name { font-size: 2.8rem; }
    .title { font-size: 1.5rem; }
    .hero-buttons { flex-direction: column; }
    section { padding: 6rem 1rem 3rem; }
    .glass-card { padding: 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color), #38bdf8, #ec4899);
    width: 0%;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: width 0.1s ease-out;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding-bottom: 6rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem 2rem;
    text-align: left;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.project-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.project-links .btn {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.project-badge {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    align-self: center;
    margin-left: 0.5rem;
}

/* ===== NAVIGATION HIGHLIGHT ===== */
.nav-links a.active {
    color: var(--text-primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-color);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
