:root {
    --bg-color: #111316;
    /* Deep Gunmetal */
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #E0E0E0;
    /* Metallic Silver */
    --text-secondary: #a0a0b0;
    --accent-blue: #4A6FA5;
    /* Steel Blue */
    --accent-silver: #C0C0C0;
    --gradient-main: linear-gradient(135deg, var(--accent-silver), var(--accent-blue));
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent scroll during entrance */
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
    padding-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(17, 19, 22, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 111, 165, 0.2);
    transform: translateY(-100%);
    /* Hidden initially */
    animation: slideDown 0.8s forwards 3.5s;
    /* Delays until after entrance */
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(74, 111, 165, 0.5));
}

.company-name {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-silver);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    /* Hidden initially */
    animation: fadeIn 1s forwards 3s;
    /* Fades in after entrance */
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(17, 19, 22, 0.7);
    /* Dark overlay for readability */
    top: 0;
    left: 0;
    z-index: -1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 1rem;
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--accent-blue);
    text-decoration: none;
    border: 1px solid var(--accent-blue);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(74, 111, 165, 0.6);
}

/* Services Section */
.services {
    padding: 5rem 5%;
}

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

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid rgba(74, 111, 165, 0.1);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 0 0 0 rgba(74, 111, 165, 0);
    transition: box-shadow 0.3s;
    z-index: -1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::after {
    box-shadow: 0 0 20px rgba(74, 111, 165, 0.2);
}

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(74, 111, 165, 0.3));
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(74, 111, 165, 0.6));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-silver);
}

/* About Section */
.about {
    padding: 5rem 5%;
    background: rgba(74, 111, 165, 0.05);
    text-align: center;
    border-top: 1px solid rgba(74, 111, 165, 0.1);
    border-bottom: 1px solid rgba(74, 111, 165, 0.1);
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    text-align: center;
}

footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(74, 111, 165, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Entrance Animation Overlay */
#entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.entrance-logo {
    width: 100px;
    height: auto;
    filter: grayscale(100%) brightness(200%);
    /* Metallic look */
    animation: pulse 1.5s infinite alternate;
}

.entrance-text {
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    color: var(--accent-blue);
    font-size: 1.5rem;
    letter-spacing: 5px;
    border-right: 2px solid var(--accent-blue);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 2s steps(20, end) forwards, blink 0.75s step-end infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
        filter: drop-shadow(0 0 0px var(--accent-blue));
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 20px var(--accent-blue));
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 450px;
    }

    /* Adjust based on text length */
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-blue);
    }
}

.shatter {
    animation: shatterEffect 0.8s forwards;
}

@keyframes shatterEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
        letter-spacing: 20px;
    }

    100% {
        transform: scale(2);
        opacity: 0;
        display: none;
    }
}

/* Responsive */
.btn:hover {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(74, 111, 165, 0.6);
}

/* Services Section */
.services {
    padding: 5rem 5%;
}

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

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid rgba(74, 111, 165, 0.1);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 0 0 0 rgba(74, 111, 165, 0);
    transition: box-shadow 0.3s;
    z-index: -1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::after {
    box-shadow: 0 0 20px rgba(74, 111, 165, 0.2);
}

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(74, 111, 165, 0.3));
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(74, 111, 165, 0.6));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-silver);
}

/* About Section */
.about {
    padding: 5rem 5%;
    background: rgba(74, 111, 165, 0.05);
    text-align: center;
    border-top: 1px solid rgba(74, 111, 165, 0.1);
    border-bottom: 1px solid rgba(74, 111, 165, 0.1);
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    text-align: center;
}

footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(74, 111, 165, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Entrance Animation Overlay */
#entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.entrance-logo {
    width: 100px;
    height: auto;
    filter: grayscale(100%) brightness(200%);
    /* Metallic look */
    animation: pulse 1.5s infinite alternate;
}

.entrance-text {
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    color: var(--accent-blue);
    font-size: 1.5rem;
    letter-spacing: 5px;
    border-right: 2px solid var(--accent-blue);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 2s steps(20, end) forwards, blink 0.75s step-end infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
        filter: drop-shadow(0 0 0px var(--accent-blue));
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 20px var(--accent-blue));
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 350px;
    }

    /* Adjust based on text length */
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-blue);
    }
}

.shatter {
    animation: shatterEffect 0.8s forwards;
}

@keyframes shatterEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
        letter-spacing: 20px;
    }

    100% {
        transform: scale(2);
        opacity: 0;
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(17, 19, 22, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(74, 111, 165, 0.2);
    }

    nav.active {
        right: 0;
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 3rem;
    }

    nav a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-silver);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}