:root {
    --accent: #ff3e3e;
    --accent-glow: rgba(255, 62, 62, 0.5);
    --dark: #0a0a0a;
    --darker: #050505;
    --gray: #1a1a1a;
    --light: #e0e0e0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--darker);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    margin: 0;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

.loader-logo {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.loader-logo span {
    color: var(--accent);
}

.loader-bar {
    height: 2px;
    width: 100%;
    background: rgba(255,255,255,0.1);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.loader-bar .progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loading 2s infinite cubic-bezier(0.23, 1, 0.32, 1);
}

.loader-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

@keyframes loading {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* UI Elements */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.15;
}

.glitch-text {
    position: relative;
    color: white;
    mix-blend-mode: lighten;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    clip: rect(0, 0, 0, 0);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    20% { clip: rect(80px, 9999px, 70px, 0); }
    40% { clip: rect(40px, 9999px, 50px, 0); }
    60% { clip: rect(100px, 9999px, 90px, 0); }
    80% { clip: rect(10px, 9999px, 30px, 0); }
    100% { clip: rect(60px, 9999px, 50px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 20px, 0); }
    20% { clip: rect(40px, 9999px, 30px, 0); }
    40% { clip: rect(70px, 9999px, 80px, 0); }
    60% { clip: rect(50px, 9999px, 40px, 0); }
    80% { clip: rect(90px, 9999px, 100px, 0); }
    100% { clip: rect(30px, 9999px, 10px, 0); }
}

.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--x) var(--y),
        rgba(255, 62, 62, 0.05),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.why-us {
    position: relative;
    overflow: hidden;
    background: var(--darker);
}

.floating-gear {
    position: absolute;
    font-size: 5rem;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.gear-1 {
    top: 10%;
    left: 5%;
    animation: rotate 20s infinite linear;
}

.gear-2 {
    bottom: 10%;
    right: 5%;
    animation: rotate 15s infinite linear reverse;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo h1 {
    font-size: 24px;
    margin: 0;
    letter-spacing: -1px;
}

.logo h1 span {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.logo p {
    font-size: 10px;
    margin: 0;
    opacity: 0.5;
    letter-spacing: 2px;
}

.contact-info {
    background: var(--accent);
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: 0.3s;
}

.contact-info:hover {
    transform: skew(-5deg) scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.socials a {
    text-decoration: none;
    color: var(--light);
    transition: 0.3s;
    font-size: 1.2rem;
}

.socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
    display: inline-block;
}

/* Hero */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(0,0,0,0.6), var(--dark)), 
                url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero h2 {
    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-secondary {
    border: 1px solid white;
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Stats */
.stats {
    background: var(--darker);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-family: 'Oswald', sans-serif;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.bento-item {
    background: var(--gray);
    padding: 40px;
    border: 1px solid var(--glass-border);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.highlight .bento-icon {
    color: white;
}

.bento-item h4 {
    margin-top: 0;
    color: var(--accent);
}

.bento-item.highlight {
    background: linear-gradient(45deg, var(--accent), #ff6b6b);
    grid-row: span 2;
    color: white;
}

.bento-item.highlight h4 {
    color: white;
    font-size: 2rem;
}

.bento-item:not(.highlight):hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
}

.bento-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: 0.5s;
}

.bento-item:hover::after {
    opacity: 1;
    transform: translate(25%, 25%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-box {
    background: var(--darker);
    padding: 40px;
    border-top: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: 0.3s;
    z-index: 0;
}

.service-box:hover::before {
    opacity: 0.05;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.gallery-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-card {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.5s;
}

.gallery-card:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.glass-card, .glass-form {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.glass-form {
    border-right: 4px solid var(--accent);
}

.info-item {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.glass-form h4 {
    margin-top: 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent);
}

input, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-neon {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-neon:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 40px var(--accent-glow);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .contact-wrapper, .stats-grid, .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid-v2 {
        grid-template-columns: 1fr 1fr;
    }
}