:root {
    --primary-color: #0A192F;
    /* Deep Navy */
    --secondary-color: #64FFDA;
    /* Teal Accent */
    --accent-blue: #112240;
    /* Light Navy */
    --text-color: #CCD6F6;
    /* Light Slate */
    --heading-color: #E6F1FF;
    /* White Slate */
    --background-color: #020C1B;
    /* Very Dark Navy */
    --card-bg: #112240;
    --light-gray: #8892b0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    font-size: 16px;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    /* Glassmorphism on Navy */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(2, 12, 27, 0.8), rgba(2, 12, 27, 0.7)), url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0 1.5rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--background-color) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    z-index: 1;
    background: rgba(17, 34, 64, 0.6);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--heading-color);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--light-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.2);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 8rem 1.5rem;
    background: linear-gradient(rgba(2, 12, 27, 0.95), rgba(2, 12, 27, 0.9)), url('assets/section-bg.png');
    background-size: cover;
    background-attachment: fixed;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--heading-color);
    position: relative;
    /* display: inline-block; Removed to fix center alignment conflict with reveal animation */
    /* left: 50%; */
    /* transform: translateX(-50%); */
}

.services h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    font-size: 1rem;
}

/* History / Timeline Section */
.about {
    padding: 8rem 1.5rem;
    background: var(--accent-blue);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--light-gray);
    line-height: 1.8;
}

.project-history {
    margin-top: 4rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--light-gray);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
}

.timeline-content h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-list {
    list-style: none;
}

.project-list li {
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.project-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 1rem;
    min-width: 150px;
}

.project-desc {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 8rem 1.5rem;
    background: var(--background-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--heading-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--background-color);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(100, 255, 218, 0.05);
    /* very light tint */
    padding: 1rem;
    border-radius: 4px;
}

.captcha-group label {
    margin-bottom: 0;
    font-weight: bold;
    color: var(--secondary-color);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Footer */
footer {
    background: var(--background-color);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--light-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--accent-blue);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .project-list li {
        flex-direction: column;
    }

    .project-title {
        margin-bottom: 0.3rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background: var(--card-bg);
        /* Sidebar matches card color */
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 5rem;
        z-index: 999;
        box-shadow: -10px 0 30px -10px rgba(2, 12, 27, 0.7);
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .burger {
        display: block;
        cursor: pointer;
        z-index: 1001;
        /* Above mobile menu */
    }

    .burger div {
        background-color: var(--secondary-color);
    }
}

/* Animations */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    color: var(--secondary-color);
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
    z-index: 2000;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    visibility: visible;
}