/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0A0E14;
    --bg-secondary: #111922;
    --bg-card: #141C28;
    --accent: #00D4FF;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --accent-green: #00FFB3;
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --text-muted: #6B7A8F;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: rgba(17, 25, 34, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.15em;
    text-shadow: 0 0 40px var(--accent-glow);
    margin-bottom: 1rem;
}

.hero-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1.5rem auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 2vw, 1rem);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
}

.hero-subtitle .accent {
    color: var(--accent);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

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

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}

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

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-visual {
    text-align: center;
}

.monogram {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: relative;
}

.monogram span {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.monogram::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
}

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

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content strong {
    color: var(--accent);
}

.about-content .highlight {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-style: italic;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-5px);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

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

/* ===== Experience Timeline ===== */
.experience {
    background: var(--bg-secondary);
}

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

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

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-content h4 span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    border-radius: 2px;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-5px);
}

.skill-abbr {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}

.skill-card span:last-child {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Projects Section ===== */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card.featured {
    grid-column: span 2;
    min-height: 300px;
}

.project-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a2a3a 100%);
}

.project-card:nth-child(2) .project-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.project-card:nth-child(3) .project-bg {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}

.project-card:nth-child(4) .project-bg {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a2a 100%);
}

.project-info {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(10, 14, 20, 0.95) 0%, transparent 100%);
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

/* ===== Education Section ===== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.edu-card {
    background: var(--bg-card);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.edu-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.edu-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.edu-card h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

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

.edu-card .highlight {
    color: var(--accent-green);
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-intro {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.contact-item {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.contact-item.business-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item.address {
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-address {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav {
        padding: 1rem 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

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

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

    .project-card.featured {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 2rem;
    }
}
