/* ============================================
   TwentyFour IT Services — Main Stylesheet
   Brand: Purple (#3b1a58) + Lime (#c6f400) + Deep (#0f0620)
   ============================================ */

/* ── CSS Variables ────────────────────────── */
:root {
    --primary: #c6f400;
    --secondary: #a855f7;
    --accent: #c6f400;
    --cyan: #67e8f9;
    --purple: #a855f7;
    --green: #c6f400;

    --bg-dark: #0f0620;
    --bg-darker: #080312;
    --bg-card: #1a0a2e;
    --bg-hover: #2e0f49;
    --border: #3b1a58;

    --text-primary: #f1f5f9;
    --text-secondary: #c4b5d8;
    --text-muted: #8b7ba8;

    --gradient-1: linear-gradient(135deg, #c6f400 0%, #a855f7 50%, #67e8f9 100%);
    --gradient-2: linear-gradient(135deg, #67e8f9 0%, #a855f7 50%, #c6f400 100%);
    --gradient-3: linear-gradient(135deg, #c6f400 0%, #67e8f9 100%);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(198, 244, 0, 0.2);

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

/* Light Theme Override */
[data-theme="light"] {
    --bg-dark: #f8f5ff;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0ebf8;
    --border: #e0d4f0;
    --text-primary: #1a0a2e;
    --text-secondary: #4a3b6b;
    --text-muted: #8b7ba8;
}


/* ── Reset & Base ─────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition-fast), color var(--transition-fast);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }


/* ── Loading Screen ───────────────────────── */
.loader-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content { text-align: center; }

.loader-code-text {
    font-family: var(--font-code);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.loader-code-text .code-line {
    display: block;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.code-line[data-line="1"] { animation-delay: 0.1s; }
.code-line[data-line="2"] { animation-delay: 0.3s; }
.code-line[data-line="3"] { animation-delay: 0.5s; }
.code-line[data-line="4"] { animation-delay: 0.7s; }
.code-line[data-line="5"] { animation-delay: 0.9s; }

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

.loader-spinner-wrapper { margin: 2rem 0; }

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-progress-wrapper {
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 2rem auto;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0;
    animation: progress 2s ease forwards;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes progress { to { width: 100%; } }

.loader-percentage {
    font-family: var(--font-code);
    color: var(--primary);
    font-size: 1rem;
    margin-top: 1rem;
}


/* ── Header & Navigation ─────────────────── */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 6, 32, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}

.main-header.scrolled {
    background: rgba(15, 6, 32, 0.95);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .main-header {
    background: rgba(248, 245, 255, 0.85);
}

[data-theme="light"] .main-header.scrolled {
    background: rgba(248, 245, 255, 0.95);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-lime { background: var(--primary); }
.dot-purple { background: var(--purple); }
.dot-white { background: #fff; }

.logo-text { color: #fff; }
[data-theme="light"] .logo-text { color: var(--text-primary); }

.logo-accent {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9em;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
    font-size: 0.9rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width var(--transition);
}

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

.nav-link.active::before { width: 80%; }

.nav-link i { font-size: 0.9rem; }

.nav-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-portal-btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.6rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    display: block;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #0f0620;
    border-color: var(--primary);
}

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

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}


/* ── Hero Section ─────────────────────────── */
.main-content { margin-top: 0; }

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.code-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.04;
    animation: gridMove 20s linear infinite;
}

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

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.08;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 0.08; }
    50%      { transform: translateY(-100px) rotate(180deg); opacity: 0.15; }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { z-index: 1; }

.hero-greeting {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.hero-name {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.name-prefix { color: var(--text-primary); }
.name-operator { color: var(--purple); margin: 0 0.3rem; }

.name-value {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-code);
    font-size: 1.1rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.title-prefix {
    color: var(--text-muted);
    margin-inline-end: 0.5rem;
}

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

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-size: 1rem;
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(198, 244, 0, 0.08);
    transform: translateY(-3px);
}


/* ── Hero Image & Badges ─────────────────── */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-image-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 244, 0, 0.15) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.05); }
}

.profile-image-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    background: var(--bg-card);
}

.profile-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: var(--shadow-lg);
    animation: floatBadge 6s ease-in-out infinite;
    white-space: nowrap;
}

.floating-badge i {
    font-size: 1.4rem;
    color: var(--primary);
}

.badge-content { display: flex; flex-direction: column; }

.badge-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.badge-libs {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.badge-1 { top: 20px; right: 0; animation-delay: 0s; }
.badge-2 { top: 50%; left: -30px; transform: translateY(-50%); animation-delay: 2s; }
.badge-3 { bottom: 20px; right: 10px; animation-delay: 4s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.badge-2 { animation-name: floatBadge2; }

@keyframes floatBadge2 {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% - 10px)); }
}


/* ── Scroll Indicator ─────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ── Sections ─────────────────────────────── */
.section { padding: 6rem 0; }

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

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

.section-number {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.title-bracket {
    color: var(--purple);
    font-family: var(--font-code);
}

.section-title .title-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -1rem auto 3rem;
}


/* ── Service / Project Cards ──────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(198, 244, 0, 0.2);
}

.project-card.featured-card {
    border-color: rgba(198, 244, 0, 0.3);
}

.project-card.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 1;
}

.project-image {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, var(--bg-hover), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.3;
    transition: all var(--transition);
}

.project-card:hover .project-placeholder {
    opacity: 0.6;
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 6, 32, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

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

.project-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.project-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.project-content { padding: 1.5rem; }

.featured-label {
    display: inline-block;
    background: rgba(198, 244, 0, 0.15);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-code);
    font-size: 0.72rem;
    padding: 4px 10px;
    background: rgba(198, 244, 0, 0.08);
    color: var(--primary);
    border-radius: 6px;
    border: 1px solid rgba(198, 244, 0, 0.15);
}


/* ── About Section ────────────────────────── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-number.special { font-size: 1.8rem; }

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 600;
}

.about-image-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.code-block {
    padding: 2rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 2;
}

.code-block .code-line {
    margin: 0;
    opacity: 1;
    transform: none;
    animation: none;
}

.code-line.indent { padding-left: 2rem; }

.code-keyword { color: var(--purple); }
.code-variable { color: var(--primary); }
.code-operator { color: var(--cyan); margin: 0 0.3rem; }
.code-string { color: #c6f400; }
.code-property { color: #67e8f9; }
.code-brace, .code-bracket { color: var(--text-muted); }
.code-comma, .code-semicolon { color: var(--text-muted); }
.code-number { color: #fbbf24; }


/* ── Skills Section ───────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.skill-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percent {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.skill-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px rgba(198, 244, 0, 0.3);
}


/* ── Timeline / Sectors ───────────────────── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    z-index: 1;
    transition: all var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(198, 244, 0, 0.4);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    transition: all var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(198, 244, 0, 0.2);
    transform: translateX(8px);
}

.timeline-date {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ── Portal CTA Section ───────────────────── */
.portal-cta-section { padding: 4rem 0; }

.portal-cta-card {
    background: var(--bg-card);
    border: 1px solid rgba(198, 244, 0, 0.2);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.portal-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
}

.portal-cta-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.portal-cta-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.portal-cta-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.portal-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.portal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.portal-features span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.portal-features i {
    color: var(--primary);
    font-size: 0.75rem;
}

.portal-cta-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-code {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
}


/* ── Contact Section ──────────────────────── */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: rgba(198, 244, 0, 0.2);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(198, 244, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.contact-link { color: var(--primary) !important; }

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(198, 244, 0, 0.1);
}

.form-input::placeholder { color: var(--text-muted); }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b7ba8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option { background: var(--bg-card); }
.form-textarea { resize: vertical; min-height: 120px; }
.btn-submit { align-self: flex-start; }

.form-message {
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-message.success {
    background: rgba(198, 244, 0, 0.1);
    border: 1px solid rgba(198, 244, 0, 0.3);
    color: var(--primary);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}


/* ── Footer ───────────────────────────────── */
.main-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand-text { color: #fff; }
[data-theme="light"] .footer-brand-text { color: var(--text-primary); }

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.footer-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cert-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cert-badge i { color: var(--primary); }

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

.footer-link-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.footer-link-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 3px 0;
    transition: color var(--transition);
}

.footer-link-col a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer-social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-social { justify-content: center; }
    .hero-image-wrapper { display: none; }
    .about-content { grid-template-columns: 1fr; }
    .portal-cta-card { grid-template-columns: 1fr; }
    .portal-cta-visual { display: none; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 6, 32, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    [data-theme="light"] .nav-menu {
        background: rgba(248, 245, 255, 0.98);
    }

    .nav-menu.active { display: flex; }
    .menu-toggle { display: flex; }
    .nav-portal-btn span { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr; }
    .hero-name { font-size: 2rem; }
    .footer-links-grid { grid-template-columns: 1fr; }
    .portal-cta-card { padding: 2rem; }
}
