/* --- Design System & CSS Variables --- */
:root {
    --primary: #00ffcc;
    --primary-glow: rgba(0, 255, 204, 0.4);
    --secondary: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.3);
    --accent-gold: #ffd700;
    --bg-dark: #07090e;
    --card-bg: rgba(14, 18, 27, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(0, 255, 204, 0.3);
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* --- Ambient Glows --- */
.ambient-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: var(--primary-glow);
    opacity: 0.3;
}

.glow-2 {
    bottom: -100px;
    right: -100px;
    background: var(--secondary-glow);
    opacity: 0.35;
}

/* --- Navigation --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.nav-cta {
    text-decoration: none;
}

/* --- Sections Common --- */
section {
    padding: 8rem 2rem 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: 0.5px;
}

/* --- Scroll Animations --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.subtitle {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.description strong {
    color: #fff;
}

.hero-metrics {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    max-width: 650px;
}

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

.metric-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

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

/* --- Buttons --- */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-right: 1.2rem;
}

.cyber-btn.primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.25);
}

.cyber-btn.primary:hover {
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
    transform: translateY(-2px);
}

.cyber-btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
}

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

.cyber-btn-sm {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cyber-btn-sm:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* --- Glass Cards --- */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2.2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.skill-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
}

/* --- Projects / Case Studies --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.project-card {
    position: relative;
    border-left: 4px solid var(--primary);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.badge-award {
    background: rgba(255, 215, 0, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-tech {
    background: rgba(0, 255, 204, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 204, 0.3);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.project-domain {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
}

.project-problem, .project-solution {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.project-problem strong, .project-solution strong {
    color: var(--text-main);
}

.project-metrics {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px dashed var(--glass-border);
    border-bottom: 1px dashed var(--glass-border);
}

.p-metric {
    display: flex;
    flex-direction: column;
}

.p-val {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.p-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

/* --- Terminal Contact --- */
.terminal-container {
    background: #090c12;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    background: #111622;
    padding: 12px 18px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.terminal-dots {
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    color: #94a3b8;
    font-size: 0.85rem;
}

.terminal-badge-live {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    animation: liveBadgeGlow 2.5s infinite;
}

@keyframes liveBadgeGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; box-shadow: 0 0 10px rgba(0, 255, 204, 0.4); }
}

.terminal-body {
    padding: 2rem;
    font-family: var(--font-mono);
}

/* --- Terminal Quick Chips & Interactive Output --- */
.terminal-quick-cmds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--glass-border);
}

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

.term-chip {
    background: rgba(14, 18, 27, 0.9);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-chip:hover {
    background: rgba(0, 255, 204, 0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.25);
}

.term-chip:active {
    transform: translateY(0);
}

.term-console-output {
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    border-left: 2px solid var(--primary);
    padding: 1rem;
    border-radius: 0 6px 6px 0;
}

.term-console-output.active {
    display: block;
    animation: fadeInConsole 0.3s ease;
}

@keyframes fadeInConsole {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.term-line-cmd {
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.term-line-res {
    color: #e2e8f0;
    margin-left: 0.5rem;
    margin-bottom: 0.25rem;
}

.term-line-res.highlight {
    color: var(--accent-gold);
    font-weight: 600;
}

.sys-msg {
    color: #64748b;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
}

.input-line {
    display: flex;
    margin-bottom: 1.4rem;
    align-items: flex-start;
}

.prompt {
    color: var(--primary);
    margin-right: 12px;
    font-size: 0.9rem;
    white-space: nowrap;
}

input, textarea {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.terminal-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s;
}

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

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Timeline Section Styling --- */
.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.t-filter {
    background: rgba(14, 18, 27, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-filter:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.t-filter.active {
    background: rgba(0, 255, 204, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

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

.timeline-rail {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-left: 90px;
    transition: all 0.4s ease;
}

.timeline-item.filtered-out {
    opacity: 0.2;
    filter: grayscale(1);
    transform: scale(0.97);
}

.timeline-marker {
    position: absolute;
    left: 28px;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.marker-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transition: all 0.3s ease;
}

.marker-dot.award {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.marker-dot.pulse {
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(0, 255, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

.marker-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 0.35rem;
    font-weight: 600;
}

.timeline-content {
    flex: 1;
    padding: 1.75rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.featured-milestone {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(14, 18, 27, 0.9), rgba(255, 215, 0, 0.05));
}

.milestone-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(0, 255, 204, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.award-badge {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 600;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.milestone-org {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.milestone-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.milestone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* --- EdTech Hub Section Styling --- */
.edtech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.edtech-card {
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.edtech-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.edtech-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.edtech-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.edtech-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.edtech-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.edtech-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fff;
    background: rgba(112, 0, 255, 0.25);
    border: 1px solid var(--secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 1.5rem;
    }
    .nav-links {
        display: none;
    }
    .glitch {
        font-size: 2.2rem;
    }
    .hero-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    .timeline-rail {
        left: 20px;
    }
    .timeline-marker {
        left: 8px;
    }
    .timeline-item {
        padding-left: 55px;
    }
    .timeline-content {
        padding: 1.25rem;
    }
    .timeline-controls {
        gap: 0.5rem;
    }
    .t-filter {
        padding: 0.4rem 0.85rem;
        font-size: 0.75rem;
    }
}
