:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.15);
    --secondary-glow: rgba(100, 100, 100, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    /* Wider to allow movement */
    height: 200vh;
    background-image:
        linear-gradient(var(--secondary-glow) 1px, transparent 1px),
        linear-gradient(90deg, var(--secondary-glow) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000000 90%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

.logo-bmu {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo-works {
    color: #fff;
    font-weight: 500;
}

.logo-subtitle {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.4rem;
    color: #666;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.3s forwards;
}

/* Typography & Hero */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.hero {
    margin-top: 5vh;
    margin-bottom: 5rem;
}

.glitch {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 10px var(--primary-glow);
    display: none;
    /* Hidden since we used logo, or keep as alternative title if user wants text too */
}

/* Re-enabling glitch for H1 if user wants text title under logo, currently H1 is just hidden or we can style the subtitle */

.subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUp 1s ease-out 0.5s forwards;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    -webkit-background-clip: text;
    background-clip: text;
    color: rgba(255, 255, 255, 0.8);
}

.description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #888;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

/* Services Cards */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 4px;
    /* Industrial sharp edges */
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
    /* Animation handled by JS intersection observer or simple delay */
    animation: slideUpFade 0.8s ease-out forwards;
}

/* Staggered animation delays for cards implemented in CSS for simplicity */
.card:nth-child(1) {
    animation-delay: 1.2s;
}

.card:nth-child(2) {
    animation-delay: 1.4s;
}

.card:nth-child(3) {
    animation-delay: 1.6s;
}

.card:nth-child(4) {
    animation-delay: 1.8s;
}

.card:nth-child(5) {
    animation-delay: 2.0s;
}

.card:nth-child(6) {
    animation-delay: 2.2s;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: #fff;
    transition: height 0.3s ease;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    height: 100%;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card p {
    font-size: 0.95rem;
    color: #aaa;
}

/* Footer Message */
.footer-msg {
    margin: 5rem 0 3rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.5s forwards;
}

.footer-msg h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}

.line {
    width: 50px;
    height: 2px;
    background: #333;
    margin: 0 auto 1rem;
}

/* Site Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
}

.footer-section p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-legal {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.company-name {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.tax-info {
    color: #555;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-text {
        font-size: 2.5rem;
        gap: 0.5rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .glitch {
        font-size: 3rem;
    }

    .grid-bg {
        background-size: 30px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}