/* ==============================
   CSS VARIABLES & TOKENS
   ============================== */
:root {
    /* Color Palette - Cyber Dark Theme */
    --bg-main: #0A0A0C;
    --bg-secondary: #121216;
    --bg-glass: rgba(18, 18, 22, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);

    --accent-cyan: #00E5FF;
    --accent-purple: #B026FF;
    --accent-glow: 0 0 15px rgba(0, 229, 255, 0.6), 0 0 30px rgba(0, 229, 255, 0.4);

    --text-main: #FFFFFF;
    --text-muted: #A0A0AB;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Metrics & Transitions */
    --radius-lg: 16px;
    --radius-sm: 8px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==============================
   RESET & BASE STYLES
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hidden default cursor, custom below */
}

/* Global Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Accent Utilities */
.text-accent {
    color: var(--accent-cyan);
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.highlight {
    position: relative;
    display: inline-block;
}

/* Custom Scrollbar Webkit */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #2a2a35;
    border-radius: 10px;
}

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


/* ==============================
   BACKGROUND EFFECTS (CANVAS)
   ============================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-purple);
}

.bg-glow-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent-cyan);
    opacity: 0.2;
}


/* ==============================
   CUSTOM CURSOR
   ============================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 229, 255, 0.5);
    transition: width 0.15s ease, height 0.15s ease;
}

/* When hovering over interactive elements */
body.hover-effect .cursor-outline {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent-cyan);
}


/* ==============================
   COMPONENTS (Buttons, Cards)
   ============================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: none;
    /* custom cursor applies */
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cyber-btn {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
    transition: 0.5s;
}

.cyber-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: var(--accent-glow);
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.cyber-btn-outline:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 30px;
    transition: var(--transition-smooth);
}


/* ==============================
   LAYOUT CONFIG
   ============================== */
section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

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

.cyber-line {
    width: 80px;
    height: 3px;
    background: var(--accent-cyan);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: var(--accent-glow);
}

.glass-card,
.timeline-item .content,
.contact-form-wrapper,
.project-modal-dialog {
    position: relative;
    overflow: hidden;
}

.glass-card::before,
.timeline-item .content::before,
.contact-form-wrapper::before,
.project-modal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.12), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
}

.glass-card:hover::before,
.timeline-item .content:hover::before,
.contact-form-wrapper:hover::before,
.project-modal.open .project-modal-dialog::before {
    opacity: 1;
    animation: sectionShine 1.4s ease;
}

@keyframes sectionShine {
    0% {
        left: -120%;
    }

    100% {
        left: 140%;
    }
}


/* ==============================
   NAVBAR
   ============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.glass-nav {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
}

.navbar.scrolled {
    padding: 15px 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
    box-shadow: var(--accent-glow);
}

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

.nav-link:hover {
    color: var(--accent-cyan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: none;
}


/* ==============================
   HERO SECTION
   ============================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    max-width: none;
    margin: 0;
    padding-left: 12%;
    padding-right: 12%;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    gap: 48px;
}

.hero-text {
    flex: 1 1 56%;
    max-width: 620px;
    text-align: left;
    margin-right: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 25px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    /* Slightly smaller so it fits */
    line-height: 1.2;
    margin-bottom: 15px;
    white-space: nowrap;
    /* Forces name to stay on one line */
   
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 25px;
    min-height: 40px;
    margin-left: 0;
  padding-left: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* optional */
  

}

.hero-subtitle .divider {
    color: var(--accent-purple);
    margin: 0 10px;
    
    
}

.typing {
    color: var(--accent-cyan);
}

.cursor {
    animation: blink 0.8s infinite;
    color: var(--accent-cyan);
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex: 0 1 40%;
    margin-left: auto;
}

.hero-visual img {
    width: min(100%, 420px);
    height: auto;
    display: block;
    object-fit: cover;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
}


/* ==============================
   ABOUT SECTION
   ============================== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-text {
    max-width: 980px;
    text-align: left;
    font-size: 1.15rem;
    color: var(--text-muted);
    padding: 36px 40px;
}

.about-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.about-heading {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 22px;
    color: var(--text-main);
}

.about-highlights,
.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.about-highlights span,
.about-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 0.95rem;
}

.about-text p {
    margin-bottom: 18px;
}

.about-closing {
    margin-bottom: 0;
    color: var(--text-main);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.cyber-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cyber-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    display: inline-block;
}

.cyber-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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


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

/* Center Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(0, 229, 255, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-main);
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    top: 30px;
    z-index: 2;
    box-shadow: var(--accent-glow);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

/* Tag inside content */
.timeline-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tag-completed {
    background: rgba(176, 38, 255, 0.1);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.tag-active {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.timeline-item .content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-item .content h4 {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-item .content p {
    font-size: 0.95rem;
}


/* ==============================
   SKILLS SECTION
   ============================== */
.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.skill-card {
    text-align: center;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid transparent;
}

.skill-card:hover {
    border-top-color: var(--accent-cyan);
    transform: translateY(-5px);
}

/* Circular Progress */
.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.circular-progress svg {
    position: relative;
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.circular-progress svg circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.bg-circle {
    stroke: rgba(255, 255, 255, 0.05);
}

.progress-circle {
    stroke: var(--accent-cyan);
    stroke-dasharray: 314;
    /* 2 * pi * 50 */
    stroke-dashoffset: 314;
    /* Starts hidden */
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.5));
}

.circular-progress .percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}


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

.project-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
    font: inherit;
    background: var(--bg-glass);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    appearance: none;
    cursor: none;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: 0.3s;
}

.project-card:hover::before {
    background: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple);
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.project-link {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.project-link:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-tags span {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.project-details-label,
.meta-heading {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.project-modal-dialog h3 {
    font-size: 1.9rem;
    margin: 12px 0 10px;
}

.project-modal-dialog p {
    color: var(--text-muted);
}

.project-details-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.project-details-meta p {
    margin-top: 8px;
}

.project-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 1400;
}

.project-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 12, 0.78);
    backdrop-filter: blur(12px);
}

.project-modal-dialog {
    position: relative;
    width: min(100%, 760px);
    max-height: min(88vh, 760px);
    overflow-y: auto;
    overflow-x: hidden;
    border-color: rgba(0, 229, 255, 0.22);
    background: linear-gradient(145deg, rgba(18, 18, 22, 0.92), rgba(8, 18, 28, 0.92));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.project-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: none;
}

.project-modal-close:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--accent-cyan);
}

body.modal-open {
    overflow: hidden;
}


/* ==============================
   CONTACT SECTION
   ============================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item .icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.info-text a,
.info-text span:not(.label) {
    font-weight: 500;
    font-size: 1.05rem;
}

.info-text a:hover {
    color: var(--accent-cyan);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-family: var(--font-body);
    padding: 15px;
    outline: none;
    transition: var(--transition-fast);
    cursor: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.full-width {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
}

.form-success {
    position: absolute;
    bottom: -45px;
    left: 0;
    width: 100%;
    color: #00ff88;
    text-align: center;
    font-weight: 600;
    opacity: 1;
    transition: 0.3s;
}

.tooltip-hidden {
    opacity: 0;
    pointer-events: none;
}


/* ==============================
   FOOTER
   ============================== */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 5% 30px;
    background: rgba(10, 10, 12, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}


/* ==============================
   SCROLL REVEAL ANIMATIONS 
   ============================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* Animation Delays for Staggering */
.delay-1 {
    transition-delay: 0.1s;
}

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

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


/* ==============================
   RESPONSIVE DESIGN 
   ============================== */
@media (max-width: 968px) {
    section {
        padding: 80px 6%;
    }

    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 60px;
    }

    .hero-text {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 0;
        max-width: 100%;
        width: 100%;
    }

    .hero-title {
        white-space: normal;
    }

    /* Allow wrapping on mobile only */
    .hero-visual {
        order: 1;
        margin-bottom: 20px;
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-description {
        max-width: 640px;
    }

    .about-text {
        max-width: 100%;
    }

    .about-highlights,
    .about-tags {
        justify-content: center;
    }

    .timeline::after {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 32px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .project-details-meta {
        grid-template-columns: 1fr;
    }

    .project-modal-dialog {
        width: min(100%, 680px);
    }
}

@media (max-width: 768px) {
    section {
        padding: 72px 5%;
    }

    .navbar {
        padding: 16px 5%;
    }

    /* Mobile Menu Logic */
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
    }

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

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        font-size: 1.5rem;
    }

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

    .hero {
        min-height: auto;
        padding-top: 104px;
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content {
        gap: 24px;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        text-align: center;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        min-height: auto;
        text-align: center;
        margin-bottom: 16px;
        max-width: 32ch;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 22px;
        max-width: 100%;
    }

    .hero-actions {
        width: 100%;
        gap: 14px;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-visual {
        margin-top: 8px;
    }

    .hero-visual img {
        width: min(88vw, 300px);
    }

    .about-text {
        padding: 28px 22px;
        font-size: 1.02rem;
    }

    .about-heading {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .about-highlights,
    .about-tags {
        gap: 10px;
    }

    .about-highlights span,
    .about-tags span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .about-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cyber-card {
        align-items: center;
        text-align: center;
    }

    .project-modal {
        padding: 14px;
    }

    .project-modal-dialog {
        width: 100%;
        max-height: 88vh;
        padding: 24px 20px;
    }

    .project-modal-dialog h3 {
        font-size: 1.55rem;
        padding-right: 42px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 64px 4.5%;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero {
        padding-top: 96px;
        padding-left: 4.5%;
        padding-right: 4.5%;
    }

    .hero-content {
        gap: 18px;
    }

    .status-badge {
        font-size: 0.78rem;
        padding: 6px 12px;
        margin-bottom: 18px;
    }

    .hero-title {
        font-size: clamp(1.85rem, 9vw, 2.4rem);
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 14px;
        max-width: 24ch;
        white-space: pre-line;
    }

    .hero-description {
        font-size: 0.96rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .cursor {
        display: none;
    }

    .hero-actions .btn {
        padding: 13px 18px;
        font-size: 0.88rem;
        max-width: 240px;
    }

    .hero-visual img {
        width: min(78vw, 240px);
    }

    .about-text {
        padding: 24px 18px;
    }

    .about-kicker {
        font-size: 0.75rem;
    }

    .about-highlights span,
    .about-tags span {
        font-size: 0.88rem;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
        height: 12px;
        width: 12px;
        top: 32px;
    }

    .project-modal-dialog {
        padding: 22px 16px;
    }

    .project-modal-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
}
