/**
 * YCG CORE STYLE ARCHITECTURE
 * Systems & Software Engineering // Boutique Standards
 */

:root {
    /* Color Matrix */
    --bg: #050505;
    --panel: #0a0a0a;
    --accent: #00f2ff; /* Electric Cyan */
    --text-primary: #ffffff;
    --text-dim: #cccccc; /* Light silver for legibility */
    --border: 1px solid #1a1a1a;
    --border-glow: 1px solid rgba(0, 242, 255, 0.3);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

/* Global Base */
body {
    background-color: var(--bg);
    background-image: url('../img/bg001.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Overlay for Legibility */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Floating Capsule Header */
.ycg-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.header-capsule {
    background: rgba(45, 55, 72, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    height: 50px;
    min-width: 600px;
    gap: 3rem;
}

.header-side {
    flex: 1;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.header-side.right {
    text-align: right;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a, .nav-brand, .nav-contact {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-contact:hover, .nav-brand:hover {
    color: var(--accent);
}

.nav-brand { color: #fff; }

/* Viewport Positioning */
#view-port {
    padding-top: 100px;
}

/* --- Modules / Content Sections --- */

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.accent-text { color: var(--accent); }

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.module-view {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.content-wrap {
    max-width: 1100px;
    width: 100%;
}

.section-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.grid-item h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
}

.grid-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.tech-stack-bar {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.tech-stack-bar span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    opacity: 0.6;
}

/* About Layout Specifics */
.about-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.about-main-text p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-specs {
    border-left: 1px solid rgba(0, 242, 255, 0.2);
    padding-left: 2rem;
}

.spec-block { margin-bottom: 3rem; }

.spec-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* Footer Logic */
.mono-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.footer-status {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
}

/* --- MOBILE OPTIMIZATION (THE "AUTO-FIT" FIX) --- */

@media (max-width: 768px) {
    /* 1. Reset Body Overlay */
    body::before { background: rgba(0, 0, 0, 0.7); }
    body { background-position: 70% center; }

    /* 2. Rescale Header */
    .ycg-header { top: 10px; padding: 0 10px; }

    .header-capsule {
        min-width: unset;
        width: 100%;
        padding: 0 0.75rem;
        gap: 0.5rem;
        height: 44px;
        justify-content: space-between;
    }

    /* Keep Nav visible but smaller */
    .nav-links {
        display: flex !important; /* Forces visibility back */
        gap: 0.75rem;
    }

    .nav-links a, .nav-brand, .nav-contact {
        font-size: 0.55rem; /* Surgical tiny font */
        letter-spacing: 0;
    }

    .header-side { flex: none; }

    /* 3. Re-stack Content */
    #view-port { padding-top: 70px; }

    .hero-title { font-size: 2.2rem; }

    .grid-container { gap: 1.5rem; margin-top: 2rem; }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-specs {
        border-left: none;
        border-top: 1px solid rgba(0, 242, 255, 0.2);
        padding-top: 2rem;
        padding-left: 0;
    }

    .footer-status {
        justify-content: center;
        gap: 1rem;
    }

    .footer-status span:not(:last-child) { display: none; }
}

/* Extra Small Screens */
@media (max-width: 380px) {
    .header-side.left { display: none; } /* Drop YCG logo to save space */
    .header-capsule { justify-content: space-around; }
}


/* Engage / Contact Styling */
.engage-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    margin-top: 3rem;
}

.engage-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.form-row select {
    cursor: pointer;
    appearance: none; /* Modern surgical look */
}

.engage-form .btn-primary {
    align-self: flex-start;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .engage-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Custom Select Wrapper */
.custom-select {
    position: relative;
    display: block;
    width: 100%;
}

.custom-select select {
    appearance: none; /* Removes the default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

/* Custom Arrow Indicator */
.custom-select::after {
    content: "▼";
    font-size: 0.6rem;
    color: var(--accent);
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Clicks go through to the select */
}

/* The actual dropdown list (options) styling */
/* Note: This is limited by browser OS, but we can fix the background */
.custom-select select option {
    background-color: #111; /* Dark background for the list items */
    color: #fff;
    padding: 1rem;
}

/* Focus State */
.custom-select select:focus {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Module Transition Animation */
@keyframes moduleEntry {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply this class to the wrap inside your modules */
.content-wrap {
    animation: moduleEntry 0.3s ease-out forwards;
}

/* Make sure the main view-port itself transitions smoothly */
#view-port {
    transition: opacity 0.2s ease-in-out;
}

/* Active State Styling */
.nav-links a.active-link {
    color: var(--accent) !important;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    position: relative;
}

/* Optional: Add a tiny "indicator dot" under the active link */
.nav-links a.active-link::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

/* Ensure hover still feels responsive */
.nav-links a:hover {
    color: #fff;
}
