/* ========================================
   MOBILE-FIRST RESPONSIVE LAYOUT
   Retro Computer Aesthetic
   Zero Horizontal Scroll Guarantee
   ======================================== */

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-family: 'VT323', monospace;
    background: var(--retro-black);
    color: var(--neon-cyan);
    line-height: 1.6;
    position: relative;
}

/* Prevent any element from causing horizontal scroll */
* {
    max-width: 100%;
}

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

/* ========================================
   RESPONSIVE GLASSMORPHIC NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem clamp(1rem, 5vw, 2rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 174, 239, 0.3);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 174, 239, 0.2);
    padding: 0.75rem clamp(1rem, 5vw, 2rem);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo Styling */
.logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-family: 'Press Start 2P', cursive;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-lex {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.logo-makesit {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Desktop Navigation Links */
.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* Mobile Hamburger Menu */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle-line {
    width: 30px;
    height: 3px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* Mobile Menu Overlay */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80vw);
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        border-left: 2px solid var(--neon-cyan);
        box-shadow: -10px 0 50px rgba(0, 174, 239, 0.3);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

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

    .nav-link {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

/* ========================================
   RESPONSIVE CONTAINER SYSTEM
   ======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.section {
    padding: clamp(3rem, 10vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

/* ========================================
   HERO SECTION - MOBILE FIRST
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem clamp(1rem, 5vw, 2rem) 3rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-photo {
    width: clamp(150px, 40vw, 250px);
    height: clamp(150px, 40vw, 250px);
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 3px solid var(--neon-cyan);
    box-shadow: 
        0 0 30px var(--neon-cyan),
        inset 0 0 30px rgba(0, 174, 239, 0.2);
    overflow: hidden;
    position: relative;
}

.hero-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 0, 0.2) 50%,
        transparent 70%
    );
    animation: photo-shimmer 3s linear infinite;
}

@keyframes photo-shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--neon-green);
    text-shadow: 
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.hero-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
}

.role-accent {
    color: var(--neon-purple);
    text-shadow: 0 0 15px var(--neon-purple);
}

.hero-tagline,
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--holo-white);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.building-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid var(--neon-purple);
    border-radius: 50px;
    margin: 2rem auto;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn {
    padding: 1rem 2rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-family: 'VT323', monospace;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
    white-space: nowrap;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    border-color: var(--neon-cyan);
    box-shadow: 
        0 0 20px rgba(0, 174, 239, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 30px rgba(0, 174, 239, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   SECTION CARDS - TERMINAL WINDOWS
   ======================================== */
.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    text-align: center;
    margin-bottom: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* ========================================
   MOBILE OPTIMIZATION
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   PERFORMANCE & ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
}
