/* ============================================
   RESET & VARIABLES
   Updated: 2026-02-03
   ============================================ */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    /* Slightly lighter for cards */
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    /* Zin 400 */
    --border-color: #333333;
    /* Zinc 800 */
    --border-focus: #FFFFFF;
    --accent: #FFFFFF;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: all 0.3s ease;
}

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

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

.project-page {
    /* Background removed per user request */
}

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

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

/* ============================================
   HEADER & NAV
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    /* Initially transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: background-color 0.3s ease, top 0.3s;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.9);
}

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

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* Burger Menu (Hidden by default on desktop) */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Mobile Nav - Hide header nav on mobile */
@media (max-width: 768px) {
    .burger-menu {
        display: none;
    }

    .nav-links {
        display: none;
    }
}

/* ============================================
   FLOATING MOBILE NAV (separate from header)
   ============================================ */
.mobile-nav-trigger {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-nav-trigger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.mobile-nav-popup {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1099;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-popup.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-popup a {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.mobile-nav-popup a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .mobile-nav-trigger {
        display: flex;
    }

    .mobile-nav-popup {
        display: flex;
    }
}


/* ============================================
   COMPONENTS: BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #e5e5e5;
}

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

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   COMPONENTS: CARDS
   ============================================ */
.card {
    background-color: var(--bg-secondary);
    /* or just transparent with border */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    border-color: var(--border-focus);
}

.card-icon {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.card p {
    font-size: 1rem;
    flex-grow: 1;
    /* Pushes footer down */
    margin-bottom: var(--spacing-md);
}

.card-footer {
    margin-top: auto;
    width: 100%;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    /* Transparent grey */
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   SECTIONS: HERO
   ============================================ */
.hero {
    min-height: 100dvh;
    /* Mobile viewport height fix */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    width: 100%;
    background-image: url('hero-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Not fixed per user request */
    /* Offset for sticky header */
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge i {
    font-size: 0.5rem;
    color: #00ff00;
    /* Green dot for status */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to bottom right, #ffffff, #a1a1aa);
    /* Subtle gradient for title */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero h1 .highlight {
    /* Kept for structure, but styled same as regular title or subtle accent */
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.scroll-indicator {
    margin-top: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: 1.5rem;
    /* Icon size */
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

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


/* ============================================
   SECTIONS: PROJECTS (Bento Grid)
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

/* For specific grid layout (keeping the 'bento' feel) */
/* We can use CSS Grid classes if they exist in HTML, otherwise default to responsive grid */

/* ============================================
   SECTIONS: STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    margin-top: var(--spacing-xs);
    color: var(--text-secondary);
}

/* ============================================
   SECTIONS: CTA (Footer/Contact)
   ============================================ */
.cta-section {
    text-align: center;
}

.cta-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    margin-bottom: var(--spacing-sm);
}

/* Footer specific */
footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links i:hover {
    color: var(--text-primary);
}


/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    /* very dark input */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    /* Prevents iOS auto-zoom on focus */
}

.form-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: #e5e5e5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}