:root {
    --bg-color: #1c1c1e;
    --surface-color: #2c2c2e;
    --primary-accent: #ff8c00;
    --secondary-accent: #fb923c;
    --text-color: #e5e5e5;
    --muted-text: #a3a3a3;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Splash Screen */
#splash-screen {
    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;
    overflow: hidden;
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
    width: 100%;
}

.splash-logo {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
    word-wrap: break-word;
    /* Ensure long text wraps if absolutely necessary */
    line-height: 1.1;
}

.splash-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    color: var(--text-color);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--primary-accent);
    box-shadow: 0 0 10px var(--primary-accent);
    margin: 0 auto 1rem;
    animation: loadLine 1.5s ease-in-out forwards 0.8s;
}

.splash-text {
    font-family: monospace;
    color: var(--muted-text);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 140, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    perspective: 500px;
    transform: scale(1.5);
    animation: gridMove 20s linear infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadLine {
    0% {
        width: 0;
    }

    100% {
        width: 200px;
    }
}

@keyframes gridMove {
    0% {
        transform: scale(1.5) translateY(0);
    }

    100% {
        transform: scale(1.5) translateY(50px);
    }
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    /* Slightly reduced side padding for mobile */
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    color: var(--text-color);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.brand-tagline {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-accent);
}

.logo:hover .brand-name {
    color: var(--primary-accent);
}

.btn-contact {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-contact:hover {
    background: var(--primary-accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--muted-text) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted-text);
    max-width: 600px;
}

.hero-bg-accent {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, rgba(28, 28, 30, 0) 70%);
    filter: blur(40px);
    z-index: -1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--surface-color);
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-accent);
}

.contact-details {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--muted-text);
    font-weight: 500;
}

.value {
    font-size: 1.2rem;
    color: var(--text-color);
    font-style: normal;
}

a.value:hover {
    color: var(--primary-accent);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--muted-text);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-bg-accent {
        width: 300px;
        height: 300px;
        right: -50px;
        filter: blur(60px);
        opacity: 0.6;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 0 1rem;
        /* Reduce padding to give more space for content */
    }

    .brand-name {
        font-size: 1.4rem;
        /* Slightly smaller to fit side-by-side with button */
    }

    .brand-tagline {
        display: none;
        /* Hide tagline on very small screens to save space/clean up */
    }

    .btn-contact {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
        /* Prevent text wrapping inside button */
        margin-left: 0.5rem;
        /* Ensure some spacing between logo and button */
    }

    .hero {
        padding-top: 90px;
        min-height: 85vh;
        /* Adjust for mobile browser bars */
        padding-bottom: 4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Ensure hero content is centered */
    }

    /* Splash Screen Enhancements for Mobile Centering */
    #splash-screen {
        padding: 2rem;
        /* Ensure safe zones */
    }

    .splash-content {
        transform: translateY(-5%);
        /* Visual correction to appear more "optical center" */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}