/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Dark Cyber Theme */
    --bg-primary: #0a0e27;
    --bg-secondary: #10152e;
    --bg-tertiary: #161b33;
    --bg-card: #1a1f3a;

    --accent-primary: #00d9ff;
    --accent-secondary: #7b2cbf;
    --accent-gradient: linear-gradient(135deg, #00d9ff 0%, #7b2cbf 100%);

    --text-primary: #e8eaed;
    --text-secondary: #9aa0b8;
    --text-muted: #6b7280;

    --border-color: #2a2f4a;
    --border-glow: rgba(0, 217, 255, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

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

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.2);
}

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

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

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

::selection {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary);
}

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

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

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

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

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

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

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
}

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

.logo-text {
    color: var(--text-primary);
    margin: 0 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

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

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

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

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(123, 44, 191, 0.1) 0%, transparent 50%);
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: inline-block;
}

.terminal-prompt {
    color: var(--accent-secondary);
    margin-right: 8px;
}

.typing-text {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

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

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

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

.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

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

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 16px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.about-intro {
    font-size: 20px !important;
    color: var(--text-primary) !important;
    font-weight: 500;
}

.about-principles {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-principles h3 {
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-size: 20px;
}

.about-principles ul {
    list-style: none;
}

.about-principles li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.principle-icon {
    color: var(--accent-primary);
    font-weight: bold;
}

.code-window {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.code-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

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

.code-dot.red {
    background: #ff5f56;
}

.code-dot.yellow {
    background: #ffbd2e;
}

.code-dot.green {
    background: #27c93f;
}

.code-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.code-content {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}

.code-keyword {
    color: #c792ea;
}

.code-class {
    color: #ffcb6b;
}

.code-function {
    color: #82aaff;
}

.code-param {
    color: #f07178;
}

.code-string {
    color: #c3e88d;
}

.code-number {
    color: #f78c6c;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: var(--section-padding);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-icon {
    font-size: 32px;
}

.skill-category-header h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-name {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-label {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.skill-label.strong {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.skill-label.intermediate {
    background: rgba(123, 44, 191, 0.1);
    color: #b388ff;
    border: 1px solid rgba(123, 44, 191, 0.3);
}

.skill-label.foundational {
    background: rgba(154, 160, 184, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(154, 160, 184, 0.3);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.project-icon {
    font-size: 40px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

.project-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.project-case-study {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.case-item {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.case-item strong {
    color: var(--accent-primary);
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.project-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.project-link {
    color: var(--accent-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-link:hover {
    gap: 12px;
}

/* ===== LEARNING SECTION ===== */
.learning {
    padding: var(--section-padding);
}

.learning-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.learning-intro p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.learning-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.learning-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.learning-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.learning-card ul {
    list-style: none;
}

.learning-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.learning-card li:last-child {
    border-bottom: none;
}

/* ===== VISION SECTION ===== */
.vision {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.vision-intro {
    text-align: center;
    margin-bottom: 60px;
}

.vision-statement {
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

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

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

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 6px var(--accent-primary);
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.vision-pillars h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pillar {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.pillar-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pillar h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pillar p {
    color: var(--text-secondary);
    font-size: 15px;
}

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

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.contact-intro p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--accent-primary);
    font-weight: 500;
}

.contact-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-cta h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-cta p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

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

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-quote {
    font-style: italic;
    color: var(--accent-primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

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

    .timeline-marker {
        left: 2px;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        padding: 40px;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }

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

    .hamburger {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

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

@media (max-width: 480px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero {
        min-height: 90vh;
    }

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