/* ========================================
   MAGSFENCES - SpaceX-Inspired Full-Screen Immersive Design
   100vh sections with scroll-snap
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    background: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.nav-logo:hover .logo-text {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-cta {
    padding: 10px 24px;
    background: #ffffff;
    color: #000000 !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    opacity: 1 !important;
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px;
    display: none;
    flex-direction: column;
    gap: 30px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.mobile-menu a:hover {
    opacity: 0.7;
}

/* ========================================
   Full-Screen Sections (SpaceX Style)
   ======================================== */

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    padding: 80px 0;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.section-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 2;
}

.section-dark {
    background: #000000;
}

.section-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 48px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.section-cta {
    display: inline-block;
    padding: 16px 48px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.section-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ========================================
   Section Features
   ======================================== */

.section-features {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin: 48px 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.feature {
    text-align: center;
}

.feature-number {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.feature-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ========================================
   Section List
   ======================================== */

.section-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 48px auto;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s both;
}

.list-item {
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(8px);
}

/* ========================================
   Locations Grid
   ======================================== */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 48px auto;
    max-width: 900px;
    animation: fadeInUp 1s ease 0.4s both;
}

.location-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-methods {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin: 48px 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.footer-info {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.6;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.6s both;
}

/* ========================================
   Scroll Indicator
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translateX(-50%) translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) translateY(20px);
    }
}

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

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .section-title {
        font-size: clamp(40px, 7vw, 72px);
    }
    
    .section-subtitle {
        font-size: clamp(14px, 2vw, 20px);
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .nav-content {
        padding: 20px;
    }
    
    .section-content {
        padding: 0 24px;
    }
    
    .section-title {
        font-size: clamp(32px, 10vw, 56px);
        letter-spacing: -1px;
    }
    
    .section-subtitle {
        font-size: clamp(14px, 4vw, 18px);
        margin-bottom: 32px;
    }
    
    .section-features {
        gap: 40px;
    }
    
    .feature-number {
        font-size: 36px;
    }
    
    .section-cta {
        padding: 14px 36px;
        font-size: 13px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 16px;
    }
    
    .contact-btn {
        padding: 24px 32px;
        width: 100%;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .section-features {
        flex-direction: column;
        gap: 24px;
    }
    
    .section-list {
        margin: 32px auto;
    }
    
    .list-item {
        padding: 16px 24px;
        font-size: 12px;
    }
    
    .location-item {
        padding: 16px;
        font-size: 12px;
    }
    
    .contact-value {
        font-size: 16px;
    }
}

/* ========================================
   Smooth Scroll Performance
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Loading Animation
   ======================================== */

body.loading {
    overflow: hidden;
}

.section {
    opacity: 0;
    animation: sectionFadeIn 0.8s ease forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   High DPI / Retina Display Optimization
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .section-bg img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
