:root {
    --bg-dark: #050505;
    --bg-alt: #0a0a0a;
    --accent: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.3);
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Container Setup */
.scroll-container {
    height: 1200vh; /* Smooth transition for 239 high-res frames */
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover for immersive full screen */
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 2px solid var(--glass-border);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.loading-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-gray);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    z-index: 100;
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
    cursor: default;
}

.logo.large {
    font-size: 4rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

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

.btn-nav {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.btn-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark) !important;
}

/* Text Overlays */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    padding: 0 10%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 15;
}

.glitch-text {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

.text-overlay h1, .text-overlay h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.text-overlay p {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    max-width: 600px;
    line-height: 1.6;
    color: var(--text-gray);
}

.hero-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.hero-list i { color: var(--accent); }

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.h-stat {
    font-size: 1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.h-stat span {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    font-family: var(--font-heading);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    font-weight: 600;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-gray);
    border-radius: 15px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-mouse 2s infinite;
}

@keyframes scroll-mouse {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

.btn-premium {
    margin-top: 3rem;
    padding: 1.2rem 3rem;
    background: var(--accent);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 900;
    border-radius: 100px;
    letter-spacing: 0.1em;
    transition: 0.3s;
    display: inline-block;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.align-left { text-align: left; }
.align-right { text-align: right; }
.align-center { text-align: center; }

/* Sections */
.section {
    padding: 10rem 5%;
    position: relative;
    background: var(--bg-dark);
}

.bg-alt { background: var(--bg-alt); }

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container.narrow { max-width: 800px; }

.section-header {
    margin-bottom: 5rem;
}

.section-header.center { text-align: center; }

.subtitle {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 1rem;
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.header-desc {
    max-width: 700px;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.title.large { font-size: clamp(3rem, 6vw, 5rem); }

.divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header.center .divider { margin: 0 auto; }

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.card-image .icon {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 2.5rem;
    color: var(--accent);
}

.card-body {
    padding: 2.5rem;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-body p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-card {
    padding: 3rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    position: relative;
}

.project-card h3 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.stats {
    list-style: none;
    margin-top: 2rem;
}

.stats li {
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.stats i {
    color: var(--accent);
    margin-right: 0.8rem;
}

/* Flip Card Effect from reference index.html */
.flip-card {
    perspective: 1000px;
    height: 450px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 2.5rem;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.flip-card-front {
    background: var(--glass);
    display: flex;
    flex-direction: column;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-dark));
    transform: rotateY(180deg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: var(--accent);
}

.flip-card-image {
    height: 250px;
    overflow: hidden;
}

.flip-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-info {
    padding: 2rem;
    text-align: center;
}

.flip-card-info h3 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.flip-card-back h3 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Fleet Section */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.fleet-card {
    background: var(--glass);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.fleet-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fleet-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.fleet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.fleet-card:hover .fleet-img img {
    transform: scale(1.1);
}

.fleet-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.fleet-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fleet-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.fleet-tagline {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.fleet-specs {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.fleet-specs li {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.btn-order {
    margin-top: auto;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-order:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text { flex: 1; }
.about-visual { flex: 1; position: relative; }

.lead {
    font-size: 1.5rem;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.stat-item .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-gray);
}

.about-visual img {
    width: 100%;
    border-radius: 3rem;
    position: relative;
    z-index: 2;
}

.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

/* Contact Form */
.contact-form {
    background: var(--glass);
    padding: 4rem;
    border-radius: 3rem;
    border: 1px solid var(--glass-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

input, textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent);
    border: none;
    border-radius: 1rem;
    color: var(--bg-dark);
    font-weight: 900;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Contact & Map Grid */
.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-details {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--accent);
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.map-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    padding: 2rem;
}

.map-header {
    margin-bottom: 2rem;
}

.map-header h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.map-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.map-btn:hover {
    transform: translate(-50%, -5px);
    background: #fff;
}

/* Footer */
.footer {
    padding: 8rem 5% 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    color: #444;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .about-flex { flex-direction: column; text-align: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .stats-row { justify-content: center; }
    .navbar { padding: 1.5rem 5%; }
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 6rem 5%; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 2rem; }
}
