/* ===== ROOT & VARIABLES ===== */
:root {
    --steel-dark: #1a1d23;
    --steel-mid: #2a2e37;
    --steel-light: #3d424d;
    --steel-highlight: #5a6070;
    --accent-orange: #d4771e;
    --accent-orange-glow: rgba(212, 119, 30, 0.4);
    --accent-blue: #3a6fa0;
    --accent-blue-glow: rgba(58, 111, 160, 0.3);
    --text-primary: #e8eaf0;
    --text-secondary: #9ea3b0;
    --caution-yellow: #f5c518;
    --caution-black: #1a1a1a;
    --metallic-gradient: linear-gradient(135deg, #3d424d 0%, #2a2e37 50%, #3d424d 100%);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--steel-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    background-image:
        url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg,
            rgba(26, 29, 35, 0.92) 0%,
            rgba(26, 29, 35, 0.80) 30%,
            rgba(26, 29, 35, 0.75) 50%,
            rgba(26, 29, 35, 0.80) 70%,
            rgba(26, 29, 35, 0.95) 100%
        );
    z-index: 0;
    pointer-events: none;
}

/* ===== SPARK PARTICLES ===== */
.sparks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-orange), 0 0 12px var(--accent-orange-glow);
    animation: sparkFall linear forwards;
}

@keyframes sparkFall {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(120px) translateX(var(--drift));
    }
}

/* ===== STEEL BEAMS ===== */
.steel-beam {
    position: fixed;
    background: var(--metallic-gradient);
    z-index: 2;
}

.steel-beam-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--steel-light), var(--steel-highlight), var(--steel-light));
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.steel-beam-bottom {
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--steel-light), var(--steel-highlight), var(--steel-light));
    box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
}

.steel-beam-left {
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--steel-light), var(--steel-highlight), var(--steel-light));
    box-shadow: 2px 0 8px rgba(0,0,0,0.5);
}

.steel-beam-right {
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--steel-light), var(--steel-highlight), var(--steel-light));
    box-shadow: -2px 0 8px rgba(0,0,0,0.5);
}

/* ===== CORNER BOLTS ===== */
.bolt {
    position: fixed;
    width: 20px;
    height: 20px;
    z-index: 3;
    background: radial-gradient(circle, #7a8090, #4a4f5c);
    border-radius: 50%;
    border: 2px solid #5a6070;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.2),
        0 2px 6px rgba(0,0,0,0.6);
}

.bolt::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #3a3f4a;
    line-height: 1;
}

.bolt-tl { top: 12px; left: 12px; }
.bolt-tr { top: 12px; right: 12px; }
.bolt-bl { bottom: 52px; left: 12px; }
.bolt-br { bottom: 52px; right: 12px; }

/* ===== MAIN CONTAINER ===== */
.main-container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
    gap: 30px;
}

/* ===== LOGO SECTION ===== */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.industrial-frame {
    position: relative;
    padding: 25px;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(240, 242, 245, 0.92) 40%,
        rgba(200, 205, 215, 0.85) 70%,
        rgba(58, 111, 160, 0.2) 100%
    );
    border-radius: 16px;
    border: 2px solid var(--steel-highlight);
    box-shadow:
        0 0 30px rgba(58, 111, 160, 0.15),
        0 0 60px rgba(212, 119, 30, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 20px 60px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    animation: frameGlow 4s ease-in-out infinite alternate;
}

.industrial-frame:hover {
    box-shadow:
        0 0 40px rgba(58, 111, 160, 0.25),
        0 0 80px rgba(212, 119, 30, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 25px 70px rgba(0,0,0,0.6);
    transform: scale(1.02);
}

@keyframes frameGlow {
    0% {
        box-shadow:
            0 0 30px rgba(58, 111, 160, 0.15),
            0 0 60px rgba(212, 119, 30, 0.08),
            inset 0 1px 0 rgba(255,255,255,0.1),
            0 20px 60px rgba(0,0,0,0.5);
    }
    100% {
        box-shadow:
            0 0 40px rgba(212, 119, 30, 0.2),
            0 0 80px rgba(58, 111, 160, 0.12),
            inset 0 1px 0 rgba(255,255,255,0.15),
            0 20px 60px rgba(0,0,0,0.5);
    }
}

/* Frame corners - angular industrial brackets */
.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 5;
}

.fc-tl {
    top: -2px;
    left: -2px;
    border-top: 3px solid var(--accent-orange);
    border-left: 3px solid var(--accent-orange);
}

.fc-tr {
    top: -2px;
    right: -2px;
    border-top: 3px solid var(--accent-orange);
    border-right: 3px solid var(--accent-orange);
}

.fc-bl {
    bottom: -2px;
    left: -2px;
    border-bottom: 3px solid var(--accent-blue);
    border-left: 3px solid var(--accent-blue);
}

.fc-br {
    bottom: -2px;
    right: -2px;
    border-bottom: 3px solid var(--accent-blue);
    border-right: 3px solid var(--accent-blue);
}

.logo {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 20px rgba(212, 119, 30, 0.3));
}

/* ===== INDUSTRIAL DIVIDER ===== */
.industrial-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 280px;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--steel-highlight), transparent);
}

.divider-bolt {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #7a8090, #4a4f5c);
    border-radius: 50%;
    border: 1.5px solid #5a6070;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

/* ===== MESSAGE SECTION ===== */
.message-section {
    text-align: center;
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--text-primary);
    position: relative;
    text-shadow:
        0 0 10px var(--accent-blue-glow),
        0 0 20px rgba(58, 111, 160, 0.1);
    animation: textFlicker 8s ease-in-out infinite;
}

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

.glitch-text::before {
    color: var(--accent-orange);
    animation: glitch1 6s infinite;
}

.glitch-text::after {
    color: var(--accent-blue);
    animation: glitch2 6s infinite;
}

@keyframes textFlicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
    98% { opacity: 0.9; }
}

@keyframes glitch1 {
    0%, 89%, 91%, 100% { opacity: 0; transform: translate(0); }
    90% { opacity: 0.6; transform: translate(-2px, 1px); }
}

@keyframes glitch2 {
    0%, 93%, 95%, 100% { opacity: 0; transform: translate(0); }
    94% { opacity: 0.6; transform: translate(2px, -1px); }
}

.sub-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.sub-message p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
}

.bracket {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--accent-orange);
    font-weight: 700;
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
    width: 100%;
    max-width: 450px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.progress-percent {
    color: var(--accent-orange);
    font-weight: 700;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--steel-mid);
    border-radius: 4px;
    border: 1px solid var(--steel-light);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
    box-shadow: 0 0 10px var(--accent-orange-glow);
    transition: width 0.1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    width: 100%;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: rgba(42, 46, 55, 0.6);
    border: 1px solid var(--steel-light);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
    cursor: default;
}

.service-card:hover {
    background: rgba(42, 46, 55, 0.85);
    border-color: var(--accent-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 119, 30, 0.15);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-blue);
    transition: color 0.35s ease;
}

.service-card:hover .service-icon {
    color: var(--accent-orange);
}

.service-card span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    transition: color 0.35s ease;
}

.service-card:hover span {
    color: var(--text-primary);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    text-align: center;
}

.contact-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--steel-mid);
    border: 1px solid var(--steel-light);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contact-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-orange-glow);
    transform: translateY(-2px);
}

/* ===== CAUTION TAPE ===== */
.caution-tape {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: repeating-linear-gradient(
        -45deg,
        var(--caution-yellow),
        var(--caution-yellow) 20px,
        var(--caution-black) 20px,
        var(--caution-black) 40px
    );
    z-index: 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.tape-scroll {
    display: flex;
    white-space: nowrap;
    animation: scrollTape 15s linear infinite;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--caution-black);
}

.tape-scroll span {
    padding: 0 30px;
    background: var(--caution-yellow);
}

@keyframes scrollTape {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== ANIMATIONS - ENTRANCE ===== */
.logo-section {
    animation: fadeSlideDown 1s ease-out 0.2s both;
}

.industrial-divider {
    animation: fadeIn 1s ease-out 0.6s both;
}

.message-section {
    animation: fadeSlideUp 1s ease-out 0.8s both;
}

.progress-section {
    animation: fadeSlideUp 1s ease-out 1s both;
}

.services-grid {
    animation: fadeSlideUp 1s ease-out 1.2s both;
}

.contact-section {
    animation: fadeIn 1s ease-out 1.5s both;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 260px;
    }

    .logo {
        max-width: 240px;
    }

    .industrial-frame {
        padding: 18px;
    }

    .glitch-text {
        letter-spacing: 2px;
    }

    .main-container {
        padding: 50px 16px 70px;
        gap: 24px;
    }

    .bolt { display: none; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
