/* ===== Global Styles ===== */
:root {
    --primary-color: #fef17b;
    --secondary-color: #ff6b35;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --text-light: #e0e0e0;
    --text-muted: #8a8a8a;
    --accent-black: #000000;
}

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

*,
*::before,
*::after {
    max-width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    background-color: var(--darker-bg);
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: auto !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(254, 241, 123, 0.1);
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(254, 241, 123, 0.5));
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    filter: drop-shadow(0 0 10px rgba(254, 241, 123, 0.8));
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Remove sidebar navigation on mobile */
.navbar-collapse {
    background: transparent !important;
}

/* Remove any sidebar/offcanvas navigation */
.offcanvas,
.offcanvas-backdrop,
[class*="offcanvas"],
[class*="sidebar"],
[class*="drawer"] {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        right: auto !important;
        left: auto !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        margin-top: 1rem;
        border-radius: 0;
        box-shadow: none;
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        position: static !important;
        transform: none !important;
        right: auto !important;
        left: auto !important;
    }
    
    .navbar-nav {
        width: 100%;
        text-align: left;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        width: 100%;
        text-align: left;
    }
}

/* ===== Background Artifacts ===== */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(254, 241, 123, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254, 241, 123, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: none !important;
    pointer-events: none;
    z-index: 1;
    overflow: visible !important;
}

/* Disable grid animation in history section */
#history .grid-background {
    animation: none !important;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible !important;
    pointer-events: none;
    z-index: 1;
}

/* Disable particle animations in history section */
#history .particles,
#history .particles::before,
#history .particles::after {
    animation: none !important;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 
        100px 200px var(--primary-color),
        300px 100px var(--primary-color),
        500px 300px var(--primary-color),
        700px 150px var(--primary-color),
        900px 250px var(--primary-color),
        1100px 80px var(--primary-color),
        200px 400px var(--primary-color),
        400px 500px var(--primary-color),
        600px 450px var(--primary-color),
        800px 550px var(--primary-color),
        1000px 600px var(--primary-color),
        1200px 500px var(--primary-color);
    animation: none !important;
}

.particles::after {
    animation-delay: -7.5s;
    box-shadow: 
        150px 250px var(--primary-color),
        350px 150px var(--primary-color),
        550px 350px var(--primary-color),
        750px 200px var(--primary-color),
        950px 300px var(--primary-color),
        1150px 130px var(--primary-color),
        250px 450px var(--primary-color),
        450px 550px var(--primary-color),
        650px 500px var(--primary-color),
        850px 600px var(--primary-color),
        1050px 650px var(--primary-color),
        1250px 550px var(--primary-color);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.8;
    }
}

.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible !important;
}

.shape {
    position: absolute;
    border: 2px solid rgba(254, 241, 123, 0.2);
    animation: none !important;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 25s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    transform: rotate(45deg);
    animation-duration: 20s;
    animation-delay: -10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 30%;
    border-radius: 50%;
    animation-duration: 35s;
    animation-delay: -15s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(-30px, -100px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(80px, -30px) rotate(270deg);
        opacity: 0.5;
    }
}

.scan-line {
    display: none;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #0a0a0a 50%, var(--dark-bg) 100%);
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .hero-section {
        transform: none !important;
        position: relative;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        min-height: auto;
    }
    
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto;
        min-height: 100vh;
    }
    
    section {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, var(--primary-color), transparent),
        radial-gradient(2px 2px at 60% 70%, var(--primary-color), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--primary-color), transparent),
        radial-gradient(1px 1px at 80% 10%, var(--primary-color), transparent),
        radial-gradient(2px 2px at 90% 40%, var(--primary-color), transparent),
        radial-gradient(1px 1px at 33% 60%, var(--primary-color), transparent),
        radial-gradient(1px 1px at 55% 80%, var(--primary-color), transparent),
        radial-gradient(1px 1px at 15% 70%, var(--primary-color), transparent),
        radial-gradient(2px 2px at 75% 20%, var(--primary-color), transparent);
    background-repeat: repeat;
    background-size: 200% 200%;
    animation: none !important;
    opacity: 0.6;
    z-index: 1;
}

@keyframes moveStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-200px);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(254, 241, 123, 0.5);
    animation: none !important;
    position: relative;
    z-index: 10;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(254, 241, 123, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(254, 241, 123, 0.8), 0 0 40px rgba(254, 241, 123, 0.5);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #d4c85f);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 241, 123, 0.3);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 241, 123, 0.5);
    background: linear-gradient(135deg, #fff9a0, var(--primary-color));
    color: var(--dark-bg);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 30px rgba(254, 241, 123, 0.5));
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .hero-logo {
        max-height: 300px;
    }
}

@keyframes rotateGlow {
    0% {
        filter: drop-shadow(0 0 30px rgba(254, 241, 123, 0.5)) hue-rotate(0deg);
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(254, 241, 123, 0.5)) hue-rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== Section Styles ===== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
    text-shadow: 0 0 20px rgba(254, 241, 123, 0.5);
    animation: none !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(254, 241, 123, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(254, 241, 123, 0.8), 0 0 40px rgba(254, 241, 123, 0.4);
    }
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 2rem;
}

/* ===== About Section ===== */
#about {
    background: linear-gradient(180deg, var(--darker-bg) 0%, #0a0a0a 50%, var(--dark-bg) 100%);
    position: relative;
}

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

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(254, 241, 123, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible !important;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 241, 123, 0.1) 0%, transparent 70%);
    animation: none !important;
    pointer-events: none;
}

@keyframes cardGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(254, 241, 123, 0.3);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

/* ===== Services Section ===== */
#services {
    position: relative;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.service-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(254, 241, 123, 0.2);
    border-radius: 15px;
    padding: 0;
    height: auto;
    min-height: 100%;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 241, 123, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover::after {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(254, 241, 123, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.service-image {
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: all 0.4s ease;
    background: linear-gradient(180deg, rgba(254, 241, 123, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(254, 241, 123, 0.1);
    overflow: visible !important;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}

/* Ship Body Base */
.ship-body {
    position: absolute;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, rgba(254, 241, 123, 0.8), rgba(254, 241, 123, 0.4));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(254, 241, 123, 0.5);
}

/* Cargo Ship */
.ship-cargo .ship-body {
    width: 80px;
    height: 40px;
    border-radius: 10px;
}

.ship-cargo .ship-wing {
    position: absolute;
    width: 30px;
    height: 15px;
    background: linear-gradient(135deg, rgba(254, 241, 123, 0.6), rgba(254, 241, 123, 0.3));
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.ship-cargo .ship-wing-left {
    left: -20px;
    transform: translateY(-50%) rotate(-20deg);
}

.ship-cargo .ship-wing-right {
    right: 0;
    transform: translateY(-50%) rotate(20deg);
}

.ship-cargo .ship-engine {
    position: absolute;
    width: 15px;
    height: 20px;
    background: rgba(254, 241, 123, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(254, 241, 123, 0.8);
    animation: none !important;
}

/* Salvage Ship */
.ship-salvage .ship-body {
    width: 70px;
    height: 35px;
    border-radius: 8px;
}

.ship-salvage .ship-arm {
    position: absolute;
    width: 20px;
    height: 40px;
    background: linear-gradient(135deg, rgba(254, 241, 123, 0.7), rgba(254, 241, 123, 0.4));
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.ship-salvage .ship-arm-left {
    left: -25px;
    transform: translateY(-50%) rotate(-30deg);
}

.ship-salvage .ship-arm-right {
    right: 0;
    transform: translateY(-50%) rotate(30deg);
}

.ship-salvage .ship-tool {
    position: absolute;
    width: 8px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 2px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-color);
}

.ship-salvage .ship-engine {
    position: absolute;
    width: 12px;
    height: 15px;
    background: rgba(254, 241, 123, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(254, 241, 123, 0.8);
    animation: none !important;
}

/* Explorer Ship */
.ship-explorer .ship-body {
    width: 65px;
    height: 32px;
    border-radius: 8px;
}

.ship-explorer .ship-wing {
    position: absolute;
    width: 25px;
    height: 12px;
    background: linear-gradient(135deg, rgba(254, 241, 123, 0.6), rgba(254, 241, 123, 0.3));
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.ship-explorer .ship-wing-left {
    left: -18px;
    transform: translateY(-50%) rotate(-25deg);
}

.ship-explorer .ship-wing-right {
    right: 0;
    transform: translateY(-50%) rotate(25deg);
}

.ship-explorer .ship-scanner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(254, 241, 123, 0.6);
    animation: none !important;
}

.ship-explorer .ship-scanner::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ship-explorer .ship-engine {
    position: absolute;
    width: 14px;
    height: 18px;
    background: rgba(254, 241, 123, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(254, 241, 123, 0.8);
    animation: none !important;
}

/* Fighter Ship */
.ship-fighter .ship-body {
    width: 55px;
    height: 28px;
    border-radius: 6px;
}

.ship-fighter .ship-wing {
    position: absolute;
    width: 35px;
    height: 10px;
    background: linear-gradient(135deg, rgba(254, 241, 123, 0.7), rgba(254, 241, 123, 0.4));
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.ship-fighter .ship-wing-left {
    left: -25px;
    transform: translateY(-50%) rotate(-35deg);
}

.ship-fighter .ship-wing-right {
    right: 0;
    transform: translateY(-50%) rotate(35deg);
}

.ship-fighter .ship-engine {
    position: absolute;
    width: 10px;
    height: 12px;
    background: rgba(254, 241, 123, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    bottom: -8px;
    animation: none !important;
}

.ship-fighter .ship-engine-left {
    left: 30%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(254, 241, 123, 0.8);
}

.ship-fighter .ship-engine-right {
    right: 30%;
    transform: translateX(50%);
    box-shadow: 0 0 10px rgba(254, 241, 123, 0.8);
}

.ship-fighter .ship-weapon {
    position: absolute;
    width: 6px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--primary-color);
}

/* Refinery Ship */
.ship-refinery .ship-body {
    width: 75px;
    height: 38px;
    border-radius: 8px;
}

.ship-refinery .ship-tank {
    position: absolute;
    width: 18px;
    height: 35px;
    background: linear-gradient(135deg, rgba(254, 241, 123, 0.6), rgba(254, 241, 123, 0.3));
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.ship-refinery .ship-tank-left {
    left: -22px;
}

.ship-refinery .ship-tank-right {
    right: 0;
}

.ship-refinery .ship-processor {
    position: absolute;
    width: 25px;
    height: 15px;
    background: rgba(254, 241, 123, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(254, 241, 123, 0.6);
}

.ship-refinery .ship-engine {
    position: absolute;
    width: 16px;
    height: 22px;
    background: rgba(254, 241, 123, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(254, 241, 123, 0.8);
    animation: none !important;
}

/* Capital Ship */
.ship-capital .ship-body {
    width: 90px;
    height: 45px;
    border-radius: 10px;
}

.ship-capital .ship-wing {
    position: absolute;
    width: 40px;
    height: 18px;
    background: linear-gradient(135deg, rgba(254, 241, 123, 0.7), rgba(254, 241, 123, 0.4));
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.ship-capital .ship-wing-left {
    left: -30px;
    transform: translateY(-50%) rotate(-20deg);
}

.ship-capital .ship-wing-right {
    right: 0;
    transform: translateY(-50%) rotate(20deg);
}

.ship-capital .ship-engine {
    position: absolute;
    width: 12px;
    height: 15px;
    background: rgba(254, 241, 123, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    bottom: -10px;
    animation: none !important;
}

.ship-capital .ship-engine-left {
    left: 35%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(254, 241, 123, 0.8);
}

.ship-capital .ship-engine-right {
    right: 35%;
    transform: translateX(50%);
    box-shadow: 0 0 12px rgba(254, 241, 123, 0.8);
}

.ship-capital .ship-bridge {
    position: absolute;
    width: 20px;
    height: 25px;
    background: rgba(254, 241, 123, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(254, 241, 123, 0.6);
}

/* Animations */
@keyframes engineGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(254, 241, 123, 0.8);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 20px rgba(254, 241, 123, 1);
        opacity: 0.9;
    }
}

@keyframes scannerPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(254, 241, 123, 0.6);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(254, 241, 123, 1);
        transform: translateX(-50%) scale(1.1);
    }
}

.service-content {
    padding: 1.5rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.service-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.service-list i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* ===== Join Section ===== */
#join {
    background: linear-gradient(180deg, var(--darker-bg) 0%, #0a0a0a 50%, var(--dark-bg) 100%);
    position: relative;
}

#join.section-padding {
    padding-top: 100px;
    padding-bottom: 10px !important;
}

#join .discord-button-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#join .container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#join .row {
    margin-bottom: 0 !important;
}

#join .col-lg-8 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.join-form {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(254, 241, 123, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 0 40px rgba(254, 241, 123, 0.1);
}

.join-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: 0;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: none !important;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.form-control,
.form-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(254, 241, 123, 0.3);
    color: var(--text-light);
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(254, 241, 123, 0.5);
    box-shadow: 0 0 10px rgba(254, 241, 123, 0.2);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(254, 241, 123, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ===== Discord Button ===== */
.discord-button-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#join .discord-button-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 2rem;
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    border: 2px solid #5865F2;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #7289DA, #5865F2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
    color: white;
    border-color: #7289DA;
}

.btn-discord i {
    font-size: 1.5rem;
}

.btn-rsi {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(254, 241, 123, 0.3);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(254, 241, 123, 0.2);
}

.btn-rsi:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 241, 123, 0.4);
}

.btn-rsi i {
    font-size: 1.5rem;
}

.discord-button-container .btn {
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

section .container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0 0.5rem;
    background: #000000;
    border-top: 2px solid rgba(254, 241, 123, 0.15);
    position: relative;
    color: var(--text-light);
    margin-bottom: 0;
}

.footer .container {
    padding-bottom: 0;
}

.footer .row:last-child {
    margin-bottom: 0;
}

.footer p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 10px var(--primary-color);
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.footer p {
    color: rgba(224, 224, 224, 0.6);
}

.footer-logo {
    height: 30px;
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(254, 241, 123, 0.5));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 8px rgba(254, 241, 123, 0.8));
    transform: scale(1.1);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: rgba(138, 138, 138, 0.7);
}

.footer-links a {
    color: rgba(138, 138, 138, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer hr {
    border-color: rgba(254, 241, 123, 0.1);
    opacity: 0.3;
}

.footer .mb-0 {
    color: rgba(138, 138, 138, 0.6);
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer:last-child {
    margin-bottom: 0 !important;
}

body > footer:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0.5rem !important;
}

/* Consolidated html and body rules - removed duplicates */

* {
    max-width: 100%;
    box-sizing: border-box;
}

section {
    overflow-x: hidden !important;
    overflow-y: visible;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    opacity: 1;
    visibility: visible;
}

.container {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Removed problematic row margins that break Bootstrap grid */
/* Bootstrap rows should maintain their default negative margins for proper grid */
.row {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

[class*="col-"] {
    overflow-x: hidden !important;
    max-width: 100% !important;
    overflow-y: visible !important;
}
    
    .ship-cargo,
    .ship-salvage,
    .ship-explorer,
    .ship-fighter,
    .ship-refinery,
    .ship-capital {
        overflow: visible !important;
        max-width: 100% !important;
    }
    
    .ship-cargo *,
    .ship-salvage *,
    .ship-explorer *,
    .ship-fighter *,
    .ship-refinery *,
    .ship-capital * {
        max-width: 100% !important;
        right: 0 !important;
    }

body::after {
    display: none;
}

/* ===== History/Timeline Section ===== */
#history {
    position: relative;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    z-index: 1;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    transition: none !important;
}

/* Disable animations in history section */
#history .grid-background {
    animation: none !important;
}

#history .particles,
#history .particles::before,
#history .particles::after {
    animation: none !important;
    display: none !important;
}

#history.section-padding {
    padding-bottom: 0 !important;
}

#history .container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#history .timeline-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#history .timeline-item:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#history .row:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#history .col-lg-12:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 0;
    overflow-x: hidden;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0 !important;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        var(--primary-color) 0%, 
        rgba(254, 241, 123, 0.5) 50%, 
        var(--primary-color) 100%);
    box-shadow: 0 0 10px rgba(254, 241, 123, 0.5);
    animation: none;
}


.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 80px;
    opacity: 1;
    transform: none;
    transition: none;
    visibility: visible;
}

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

.timeline-item.visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Ensure timeline items are visible on mobile even if JS doesn't load */
@media (max-width: 768px) {
    #history {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: auto !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .timeline-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .timeline-item {
        opacity: 1 !important;
        transform: none !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        transition: none !important;
    }
    
    .timeline-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), rgba(254, 241, 123, 0.8));
    border: 3px solid var(--darker-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(254, 241, 123, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
    animation: none !important;
}

@keyframes markerGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(254, 241, 123, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(254, 241, 123, 0.9), inset 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

.timeline-marker i {
    font-size: 1.5rem;
    color: var(--darker-bg);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.timeline-content {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(254, 241, 123, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Disable backdrop-filter in history section for better performance */
#history .timeline-content {
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.8);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: rgba(254, 241, 123, 0.5);
    box-shadow: 0 10px 30px rgba(254, 241, 123, 0.2);
}

.timeline-item:hover .timeline-content::before {
    opacity: 1;
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), rgba(254, 241, 123, 0.8));
    color: var(--darker-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(254, 241, 123, 0.3);
}

.timeline-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(254, 241, 123, 0.5);
}

.timeline-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-code,
.timeline-mission,
.timeline-gameplay {
    background: rgba(254, 241, 123, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 8px;
}

.timeline-code h5,
.timeline-mission h5,
.timeline-gameplay h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-code ul,
.timeline-mission ul,
.timeline-gameplay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-code li,
.timeline-mission li,
.timeline-gameplay li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-code li::before,
.timeline-mission li::before,
.timeline-gameplay li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-gameplay p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.timeline-quote {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(254, 241, 123, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(254, 241, 123, 0.2);
    text-align: center;
    position: relative;
}

.timeline-quote::before,
.timeline-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    font-family: serif;
}

.timeline-quote::before {
    top: -10px;
    left: 20px;
}

.timeline-quote::after {
    bottom: -30px;
    right: 20px;
}

.timeline-quote p {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

.timeline-quote p:first-child {
    margin-bottom: 0.5rem;
}

.timeline-quote small {
    color: var(--text-muted);
    font-style: normal;
}

.timeline-quote i {
    color: var(--primary-color);
    opacity: 0.5;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-container {
        padding: 1.5rem 0;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 3rem;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        left: 0;
    }
    
    .timeline-marker i {
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }
    
    .timeline-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .timeline-year {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .timeline-code,
    .timeline-mission,
    .timeline-gameplay {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .timeline-code h5,
    .timeline-mission h5,
    .timeline-gameplay h5 {
        font-size: 1rem;
    }
    
    .timeline-quote {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .timeline-quote p {
        font-size: 1rem;
    }
    
    .timeline-quote::before,
    .timeline-quote::after {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .timeline-container {
        padding: 1rem 0;
    }
    
    .timeline-container::before {
        left: 15px;
        width: 2px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2.5rem;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
    }
    
    .timeline-marker i {
        font-size: 0.8rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .timeline-year {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .timeline-code,
    .timeline-mission,
    .timeline-gameplay {
        padding: 0.75rem;
    }
    
    .timeline-code h5,
    .timeline-mission h5,
    .timeline-gameplay h5 {
        font-size: 0.9rem;
    }
    
    .timeline-code li,
    .timeline-mission li,
    .timeline-gameplay li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        padding-left: 1.2rem;
    }
    
    .timeline-quote {
        padding: 0.75rem;
    }
    
    .timeline-quote p {
        font-size: 0.9rem;
    }
    
    .timeline-quote::before,
    .timeline-quote::after {
        font-size: 2.5rem;
    }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    section {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: 3px;
    }
    
    .section-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto;
        min-height: 100vh;
    }
    
    section {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-logo {
        max-height: 250px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .join-form {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .navbar-logo {
        height: 30px;
        margin-right: 0.5rem;
    }
    
    .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 0;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .title-underline {
        width: 80px;
        height: 3px;
    }
    
    .footer {
        padding: 2rem 0 0 !important;
        margin-bottom: 0 !important;
    }
    
    .footer .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .footer .row:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .footer p:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-logo {
        height: 25px;
    }
    
    .btn-discord {
        width: 100%;
        justify-content: center;
    }
    
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    html {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto;
        min-height: 100vh;
    }
    
    section {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-logo {
        height: 25px;
    }
    
    .hero-logo {
        max-height: 200px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .service-content {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .service-content h4 {
        font-size: 1.25rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section {
        padding-top: 70px;
        min-height: auto;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
        padding: 2rem 0;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .footer .row {
        text-align: left;
    }
    
    .footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .footer h5 {
        text-align: left;
        justify-content: flex-start;
    }
    
    .footer p {
        text-align: left;
    }
    
    .footer-links {
        display: block;
        text-align: left;
    }
    
    .footer .col-12.text-center {
        text-align: left !important;
    }
    
    .footer .col-12.text-center p {
        text-align: left !important;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .timeline-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto;
        min-height: 100vh;
    }
    
    section {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-logo {
        height: 20px;
    }
    
    .hero-logo {
        max-height: 150px;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-marker {
        width: 25px;
        height: 25px;
    }
    
    .timeline-content {
        padding: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
    
    h3, h4, h5 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .shape {
        display: none;
    }
    
    .geometric-shapes {
        display: none;
    }
    
    .footer {
        padding: 2rem 0 0 !important;
    }
    
    .footer .container {
        padding-bottom: 0 !important;
    }
    
    .footer .row:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .footer p:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ===== NATURAL SCROLL - FORÇADO ===== */
html {
    scroll-behavior: auto !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    width: 100% !important;
    max-width: 100vw !important;
    scroll-padding-top: 80px;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-overflow-scrolling: auto !important;
}

body {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    height: auto !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-overflow-scrolling: auto !important;
    position: relative !important;
}

/* Hide horizontal scrollbar completely */
::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
}

::-webkit-scrollbar-track:horizontal {
    display: none !important;
}

::-webkit-scrollbar-thumb:horizontal {
    display: none !important;
}

/* Consolidated - all scroll rules are now in one place above */

/* Ensure all containers don't cause overflow */
.container,
.container-fluid {
    overflow-x: hidden !important;
    max-width: 100% !important;
    overflow-y: visible !important;
}

.row {
    overflow-x: hidden !important;
    max-width: 100% !important;
    overflow-y: visible !important;
}

[class*="col-"] {
    overflow-x: hidden !important;
    max-width: 100% !important;
    overflow-y: visible !important;
}

section {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
}

/* Hide horizontal scrollbar in all browsers */
::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    background: transparent !important;
}

html {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

html::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* ===== Scroll Animation ===== */
/* All sections visible by default to prevent loading issues - consolidated with section rules above */

/* DISABLED fade-in animations - were causing scroll blocking */
.fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.fade-in.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* History section should never have fade-in animation */
#history.fade-in,
#history {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
}

