/* ========================================
   Portfolio CSS - Cyber/Neon Theme
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: hsl(220, 20%, 4%);
    --bg-secondary: hsl(220, 20%, 8%);
    --bg-card: hsl(220, 20%, 10%);
    --text-primary: hsl(160, 100%, 95%);
    --text-secondary: hsl(220, 10%, 55%);
    --accent: hsl(160, 100%, 50%);
    --accent-dim: hsl(160, 80%, 40%);
    --accent-secondary: hsl(185, 100%, 50%);
    --border: hsl(220, 15%, 18%);
    --glow: 0 0 20px hsla(160, 100%, 50%, 0.4);
    --glow-strong: 0 0 40px hsla(160, 100%, 50%, 0.6);
    --radius: 12px;
    --radius-sm: 8px;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(hsla(220, 15%, 18%, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, hsla(220, 15%, 18%, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: hsla(160, 100%, 50%, 0.1);
    top: 20%;
    left: 20%;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: hsla(185, 100%, 50%, 0.1);
    bottom: 20%;
    right: 20%;
    animation-delay: -3s;
}

/* Typography */
.text-gradient {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: hsla(220, 20%, 4%, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
}

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

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: var(--glow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.5rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: slideUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper {
    --avatar-zoom: 2.7;
    /* 👈 TWEAK THIS: 1 = full image, 2+ = zoom in */
    --avatar-ring: 4px;
    /* 👈 TWEAK THIS: green ring thickness */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: var(--avatar-ring) solid var(--accent);
    box-shadow: var(--glow), 0 0 40px hsla(160, 100%, 50%, 0.2);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--avatar-zoom));
    object-position: center 30%;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsla(220, 20%, 10%, 0.8);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

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

.hero-name {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-family: var(--font-mono);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.15em;
}

.hero-handle {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.hero-tagline {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    min-height: 1.5em;
    margin-bottom: 2rem;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    padding: 1.5rem 1rem;
    background: hsla(220, 20%, 10%, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: hsla(160, 100%, 50%, 0.5);
    background: hsla(220, 20%, 12%, 0.6);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid hsla(160, 100%, 50%, 0.5);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* Sections */
.section {
    padding: 6rem 1.5rem;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
}

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

.skill-card {
    padding: 1.5rem;
    background: hsla(220, 20%, 10%, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.skill-card:hover {
    border-color: hsla(160, 100%, 50%, 0.5);
    transform: translateY(-4px);
}

.skill-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: hsla(160, 100%, 50%, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.skill-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.skill-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.skill-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 3px;
    transition: width 1s ease-out;
}

.skill-level {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 0.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 1.5rem;
    background: hsla(220, 20%, 10%, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.project-card:hover {
    border-color: hsla(160, 100%, 50%, 0.5);
    transform: translateY(-4px);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.tag {
    padding: 0.25rem 0.75rem;
    background: hsla(160, 100%, 50%, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    text-decoration: underline;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

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

.timeline-content {
    padding: 1.25rem;
    background: hsla(220, 20%, 10%, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

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

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    padding: 2rem;
    background: hsla(220, 20%, 10%, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-card>p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-link {
    display: block;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.social-link:hover {
    border-color: hsla(160, 100%, 50%, 0.5);
    background: hsla(220, 20%, 12%, 0.5);
}

.social-link span:last-child {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.services-bar {
    padding: 1.5rem;
    background: hsla(220, 20%, 8%, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.services-bar>p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.service-tag {
    padding: 0.5rem 1rem;
    border: 1px solid hsla(160, 100%, 50%, 0.3);
    color: var(--accent);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.service-tag:hover {
    background: hsla(160, 100%, 50%, 0.1);
}

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

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

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

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: hsla(220, 20%, 4%, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

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

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

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

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

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

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

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

    .btn {
        width: 100%;
    }

    .services-list {
        flex-direction: column;
    }
}