﻿/* --- 1. MODERN VARIABLES --- */
:root {
    --primary: #00d2ff;
    --accent: #0056b3;
    --dark-bg: #0a0b10;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* --- 2. GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

    /* Fixed Industrial Background */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(10, 11, 16, 0.85), rgba(10, 11, 16, 0.85)), url('Images/gears.jpg');
        background-size: cover;
        background-position: center;
        z-index: -1;
        filter: contrast(1.1) brightness(0.9);
    }

/* --- 3. PROFESSIONAL NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 0 10px var(--primary));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: logo-glow 3s infinite ease-in-out;
}

    .logo img:hover {
        transform: scale(1.1) rotate(-2deg);
        filter: drop-shadow(0 0 25px var(--primary)) brightness(1.2);
    }

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px var(--primary));
        opacity: 0.9;
    }

    50% {
        filter: drop-shadow(0 0 20px var(--primary));
        opacity: 1;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: #bbb;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.4s;
}

    nav a:hover, nav a.active {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }

/* --- 4. LAYOUT CONTAINERS --- */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 25px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    text-align: center;
}

/* --- 5. GRID & CARD SYSTEM --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px 25px;
    border-radius: 20px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .card:hover {
        background: rgba(0, 210, 255, 0.08);
        transform: translateY(-12px);
        border-color: var(--primary);
        box-shadow: 0 15px 35px rgba(0, 210, 255, 0.2);
    }

    .card img {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: contain;
        border-radius: 12px;
        margin-bottom: 25px;
        filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.3));
    }

/* --- 6. CONTACT GRID & FORM --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    text-align: left;
}

form input, form textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

/* --- 7. TYPOGRAPHY & BUTTONS --- */
h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.sub-text {
    font-size: 1.15rem;
    color: #aaa;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.btn {
    background: var(--accent);
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: 0.3s;
}

/* --- 8. ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Link Entrance Animation */
@keyframes mobileNavIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating effect for mobile cards */
@keyframes mobileFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- 9. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    nav ul {
        gap: 15px;
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

        /* Staggered entrance for nav links on mobile */
        nav ul li {
            animation: mobileNavIn 0.5s ease forwards;
            opacity: 0;
        }

            nav ul li:nth-child(1) {
                animation-delay: 0.1s;
            }

            nav ul li:nth-child(2) {
                animation-delay: 0.2s;
            }

            nav ul li:nth-child(3) {
                animation-delay: 0.3s;
            }

            nav ul li:nth-child(4) {
                animation-delay: 0.4s;
            }

    /* Give mobile users feedback on touch */
    .card:active {
        background: rgba(0, 210, 255, 0.15);
        transform: scale(0.98);
        border-color: var(--primary);
    }

    /* Subtle float so the cards don't look "dead" on small screens */
    .card {
        animation: mobileFloat 4s infinite ease-in-out;
    }

    h1 {
        font-size: 2.4rem;
    }

    .glass-panel {
        padding: 40px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .card img {
        max-width: 240px;
        height: auto;
    }
}
