/* ==========================================
   MODERN PORTFOLIO - CSS STYLES
   ========================================== */

/* ==========================================
   LOADING SCREEN
   ========================================== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    user-select: none;
}

.loader-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(12px);
    animation: loaderFadeUp 0.7s ease 0.1s forwards;
}

.loader-role {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    font-weight: 400;
    color: #00ff88;
    letter-spacing: 0.25em;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(10px);
    animation: loaderFadeUp 0.7s ease 0.35s forwards;
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    animation: loaderFadeUp 0.5s ease 0.6s forwards;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    animation: loaderBounce 1.1s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.18s; }
.loader-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes loaderFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%            { transform: scale(1.2); opacity: 1; }
}

/* ==========================================
   ROOT VARIABLES
   ========================================== */
:root {
    /* Colors */
    --primary-color: #00ff88;
    --secondary-color: #00d4ff;
    --accent-color: #ff0080;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6a6a6a;
    --border-color: #222222;
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-glow-secondary: 0 0 20px rgba(0, 212, 255, 0.3);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   BACKGROUND ANIMATION
   ========================================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

#particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

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

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-bracket {
    color: var(--primary-color);
}

.logo-text {
    color: var(--text-primary);
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.title-line {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.title-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.title-role {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats glassmorphism container */
.hero-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Gradient stat value */
.stat-value {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

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

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-dark);
}

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

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.scroll-arrow {
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-image {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.profile-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

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

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

.code-snippet {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.code-header .dot:nth-child(1) {
    background: #ff5f56;
}

.code-header .dot:nth-child(2) {
    background: #ffbd2e;
}

.code-header .dot:nth-child(3) {
    background: #27c93f;
}

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-keyword {
    color: #ff79c6;
}

.code-var {
    color: #8be9fd;
}

.code-property {
    color: #50fa7b;
}

.code-string {
    color: #f1fa8c;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: -1px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: var(--section-padding);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header .dot:nth-child(1) {
    background: #ff5f56;
}

.terminal-header .dot:nth-child(2) {
    background: #ffbd2e;
}

.terminal-header .dot:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.terminal-body {
    padding: 30px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-line {
    color: var(--primary-color);
    margin-top: 20px;
}

.prompt {
    color: var(--secondary-color);
}

.terminal-output {
    color: var(--text-secondary);
    margin: 10px 0 20px 20px;
}

.interest-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    margin: 5px 10px 5px 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

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

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ==========================================
   ENHANCED HIGHLIGHTS SECTION
   ========================================== */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.highlight-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.highlight-item:hover::before {
    transform: scaleX(1);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(0, 255, 136, 0.1);
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.highlight-item:hover i {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.highlight-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.highlight-item:hover h4 {
    color: var(--primary-color);
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Specific styling for different cards */
.highlight-item:nth-child(2)::before {
    background: linear-gradient(90deg, var(--secondary-color), #a855f7);
}

.highlight-item:nth-child(2) i {
    color: var(--secondary-color);
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
}

.highlight-item:nth-child(2):hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.highlight-item:nth-child(2):hover h4 {
    color: var(--secondary-color);
}

.highlight-item:nth-child(2):hover i {
    background: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.highlight-item:nth-child(3)::before {
    background: linear-gradient(90deg, #ff0080, #ff5f56);
}

.highlight-item:nth-child(3) i {
    color: #ff0080;
    background: rgba(255, 0, 128, 0.1);
    border-color: rgba(255, 0, 128, 0.2);
}

.highlight-item:nth-child(3):hover {
    border-color: rgba(255, 0, 128, 0.3);
}

.highlight-item:nth-child(3):hover h4 {
    color: #ff0080;
}

.highlight-item:nth-child(3):hover i {
    background: #ff0080;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.4);
}

/* ==========================================
   ENHANCED SKILLS SECTION
   ========================================== */
.skills {
    padding: var(--section-padding);
    /* background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%); */
}

/* ---- Ticker / Marquee ---- */
.ticker-row {
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
    display: flex;
    width: max-content;
    gap: 14px;
    padding: 6px 0;
}

.ticker-left {
    animation: tickerLeft 28s linear infinite;
}

.ticker-right {
    animation: tickerRight 34s linear infinite;
}

.ticker-row:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes tickerLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes tickerRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 3px 3px 0 rgba(0, 255, 136, 0.08);
    cursor: default;
}

.ticker-item:hover {
    background: rgba(0, 255, 136, 0.06);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 3px 3px 0 rgba(0, 255, 136, 0.3);
}

.ticker-item i {
    font-size: 1.05rem;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.ticker-right .ticker-item i {
    color: var(--secondary-color);
}

.ticker-right .ticker-item:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: var(--secondary-color);
    box-shadow: 3px 3px 0 rgba(0, 212, 255, 0.3);
}


.tech-stats {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---- Stat Card ---- */
.stat-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 0 rgba(0, 255, 136, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 rgba(0, 255, 136, 0.25);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-card-icon.secondary {
    color: var(--secondary-color);
}

.stat-card-value {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.stat-card-value.secondary {
    color: var(--secondary-color);
    font-size: 1.7rem;
}

.stat-card-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Slim decorative bar at the bottom of each card */
.stat-card-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    overflow: hidden;
    margin-top: auto;
}

.stat-card-fill {
    height: 100%;
    width: var(--fill-width, 100%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: progressLoad 1.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.stat-card-fill.secondary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

@keyframes progressLoad {
    from { width: 0; }
    to   { width: var(--fill-width, 100%); }
}

/* Pulsing dot for ONLINE status */
.status-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5);
    animation: pulseDot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

@media (max-width: 768px) {
    .tech-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tech-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience {
    padding: var(--section-padding);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

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

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
}

.timeline-toggle {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    padding: 5px;
}

.timeline-item.active .timeline-toggle {
    transform: rotate(180deg);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
}

.timeline-item.active .timeline-details {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-company {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    /* Changed from 15px to 0 for better collapsing */
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-description li {
    position: relative;
    margin-bottom: 10px;
    list-style: none;
}

.timeline-description li::before {
    content: '▹';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--primary-color);
}

/* ==========================================
   PROJECTS SECTION - ENHANCED
   ========================================== */
.projects {
    padding: var(--section-padding);
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.projects::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* ---- Filter Tabs ---- */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 9px 22px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: -1;
}

.filter-btn:hover {
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 3px 3px 0 rgba(0, 255, 136, 0.3);
}

.filter-btn:hover::before {
    transform: scaleX(1);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 3px 3px 0 rgba(0, 255, 136, 0.4);
    font-weight: 700;
}

.filter-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ---- Projects Grid ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 1;
}

/* ---- Project Card ---- */
.project-card {
    background: rgba(10, 10, 10, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 5px 0px rgba(0, 255, 136, 0.2);
    position: relative;
}

/* Gradient top bar on hover */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 3;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0px rgba(0, 255, 136, 0.35);
}

/* ---- Project Image ---- */
.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

/* ---- Category Badge (pinned top-left of image) ---- */
.project-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ---- Live Badge (pinned top-right of image) ---- */
.project-live-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes pulseDotPrimary {
    0%   { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.status-pulse.primary {
    background: var(--primary-color);
    animation: pulseDotPrimary 1.8s ease-in-out infinite;
}

@keyframes pulseDotUpdating {
    0%   { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(250, 204, 21, 0); }
    100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.status-pulse.updating {
    background: #facc15;
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55);
    animation: pulseDotUpdating 1.8s ease-in-out infinite;
}

.project-live-badge.updating {
    border-color: #facc15;
    color: #fde68a;
}

/* ---- Hover Overlay (icon links) ---- */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    border: 1px solid var(--primary-color);
    text-decoration: none;
    border-radius: 0;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 var(--secondary-color);
}

.project-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ---- Project Content ---- */
.project-content {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ---- Tech Tags ---- */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tech-tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--secondary-color);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.project-card:hover .tech-tag {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.35);
}

/* ---- Bottom Action Buttons ---- */
.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.btn-demo,
.btn-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.btn-demo {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: 1px solid var(--primary-color);
    flex: 1;
    justify-content: center;
}

.btn-demo:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 rgba(0, 255, 136, 0.4);
}

.btn-code {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
}

.btn-code:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 rgba(0, 212, 255, 0.3);
}

.btn-case-study {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 100%;
    justify-content: center;
}

.btn-case-study:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0 rgba(0, 255, 136, 0.5);
}

.btn-demo:focus-visible,
.btn-code:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--section-padding);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--primary-color);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.3rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

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

.form-group textarea {
    resize: vertical;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 15px;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .title-name {
        font-size: 3rem;
    }

    .profile-image {
        width: 300px;
        height: 300px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        border-right: 1px solid var(--border-color);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transition: var(--transition-normal);
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .title-name {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .profile-image {
        width: 250px;
        height: 250px;
    }

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

    .projects-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 7px 16px;
        font-size: 0.75rem;
    }

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

    .btn-demo,
    .btn-code {
        justify-content: center;
    }

    .timeline::before {
        left: 10px;
    }

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

    .timeline-marker {
        left: 1px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Better mobile project interaction */
    .project-overlay {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.6);
    }

    .project-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(10, 10, 10, 0.8);
    }
}

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

    .title-role {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .code-content {
        font-size: 0.75rem;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {

    .navbar,
    .scroll-top,
    .background-animation {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}