/* ============================================
   Root Variables & Color Scheme
   ============================================ */
:root {
    --bg: #131119;
    --bg-card: #1a1620;
    --fg: #ffffff;
    --fg-muted: #a6a6a6;
    --primary: #bff7ff;
    --primary-dark: #0e0a12;
    --border: #3f3a48;
    --neon-glow: #bff7ff;
    --radius: 12px;
    
    /* Animation timings */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, rgba(19, 17, 25, 0.7) 0%, rgba(19, 17, 25, 0.7) 100%), url('Screenshot 2026-03-11 210742.png') center/cover no-repeat fixed;
    background-attachment: fixed;
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    width: 0%;
    z-index: 60;
    transition: width var(--transition-fast);
    box-shadow: 0 0 10px var(--neon-glow), 0 0 20px rgba(191, 247, 255, 0.5);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all var(--transition-normal);
    padding: 24px 0;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(19, 17, 25, 0.8);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px var(--neon-glow), 0 0 20px rgba(191, 247, 255, 0.5);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--fg-muted);
    transition: color var(--transition-normal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--fg);
}

.mobile-menu-btn svg {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-normal);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(19, 17, 25, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
}

.mobile-nav-link {
    padding: 12px 16px;
    color: var(--fg-muted);
    transition: all var(--transition-normal);
    border-radius: var(--radius);
}

.mobile-nav-link:hover {
    background: rgba(191, 247, 255, 0.1);
    color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(191, 247, 255, 0.1);
    border: 1px solid rgba(191, 247, 255, 0.2);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: bounce-slow 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(32px, 8vw, 96px);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: var(--fg-muted);
}

.text-primary {
    color: var(--primary);
}

.neon-text {
    text-shadow: 0 0 10px var(--neon-glow), 0 0 20px rgba(191, 247, 255, 0.5);
}

.hero-description {
    font-size: 18px;
    color: var(--fg-muted);
    max-width: 672px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.btn {
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(191, 247, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(191, 247, 255, 0.9);
    box-shadow: 0 0 30px rgba(191, 247, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(191, 247, 255, 0.5);
    color: var(--primary);
    background: rgba(191, 247, 255, 0.05);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(191, 247, 255, 0.1);
    transform: translateY(-2px);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.neon-glow {
    box-shadow: 0 0 20px rgba(191, 247, 255, 0.3);
}

.hero-status {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--fg-muted);
    font-size: 14px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--fg-muted);
    transition: color var(--transition-normal);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: var(--primary);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: bold;
    margin-bottom: 16px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-glow);
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-paragraph {
    font-size: 16px;
    color: var(--fg-muted);
    line-height: 1.8;
}

.highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(191, 247, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

.highlight-card:hover {
    border-color: rgba(191, 247, 255, 0.5);
    background: rgba(191, 247, 255, 0.1);
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(191, 247, 255, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
}

.skill-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(191, 247, 255, 0.1);
    border: 1px solid rgba(191, 247, 255, 0.2);
    color: var(--fg);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.skill-badge:hover {
    border-color: rgba(191, 247, 255, 0.5);
    color: var(--primary);
    background: rgba(191, 247, 255, 0.15);
}

.skills-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skills-title {
    font-size: 20px;
    font-weight: 600;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(191, 247, 255, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(191, 247, 255, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--fg);
}

.project-description {
    font-size: 14px;
    color: var(--fg-muted);
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(191, 247, 255, 0.1);
    border: 1px solid rgba(191, 247, 255, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(191, 247, 255, 0.1);
    border: 1px solid rgba(191, 247, 255, 0.2);
    border-radius: var(--radius);
    color: var(--primary);
    transition: all var(--transition-normal);
}

.project-link:hover {
    background: rgba(191, 247, 255, 0.2);
    border-color: var(--primary);
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition-normal);
}

.service-card:hover {
    border-color: rgba(191, 247, 255, 0.5);
    background: rgba(191, 247, 255, 0.03);
    transform: translateY(-4px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(191, 247, 255, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    margin-bottom: 16px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.6;
}

/* ============================================
   Tech Stack Section
   ============================================ */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.tech-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 8px;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    padding: 12px 16px;
    background: rgba(191, 247, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

.tech-item:hover {
    border-color: rgba(191, 247, 255, 0.5);
    background: rgba(191, 247, 255, 0.1);
    color: var(--primary);
}

.tech-label {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-description {
    font-size: 16px;
    color: var(--fg-muted);
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg-muted);
    font-weight: 600;
}

.contact-link {
    color: var(--primary);
    transition: color var(--transition-normal);
    font-size: 16px;
    word-break: break-all;
}

.contact-link:hover {
    color: rgba(191, 247, 255, 0.8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
}

.form-input {
    padding: 12px 16px;
    background: rgba(191, 247, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(191, 247, 255, 0.1);
    box-shadow: 0 0 10px rgba(191, 247, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0;
    margin-top: 96px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-content p {
    font-size: 14px;
    color: var(--fg-muted);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(191, 247, 255, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: rgba(191, 247, 255, 0.2);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes typewriter {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes blink {
    0%, 49% {
        border-right: 3px solid var(--primary);
    }
    50%, 100% {
        border-right: 3px solid transparent;
    }
}

.typewriter {
    color: var(--primary);
    text-shadow: 0 0 10px var(--neon-glow), 0 0 20px rgba(191, 247, 255, 0.5);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--primary);
    animation: typewriter 2s steps(16, end) 0.3s 1 forwards,
               blink 0.75s step-end 0.3s infinite;
}

.tagline {
    display: inline-block;
    color: var(--fg-muted);
    font-size: inherit;
    font-weight: inherit;
    animation: fadeIn 0.8s ease-out 2.5s both;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav.active {
        display: flex;
    }

    .nav-logo {
        font-size: 20px;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .highlights {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .highlight-card span {
        font-size: 12px;
    }

    .highlights {
        gap: 12px;
    }

    .highlight-card {
        padding: 12px;
    }
}
