/* ============================================
   ENWOU — Sophisticated Tech / Quiet Luxury
   Design DNA: Depth & Precision
   ============================================ */

:root {
    /* Strict Color Palette — Do not deviate */
    --bg-deep: #302F4D;
    --bg-card: rgba(48, 47, 77, 0.7);
    --text-platinum: #E3E4E8;
    --text-muted: #9FA0B5;
    --accent-amber: #DEA568;
    /* Derived */
    --accent-amber-50: rgba(222, 165, 104, 0.5);
    --accent-amber-10: rgba(222, 165, 104, 0.1);
    --text-platinum-10: rgba(227, 228, 232, 0.1);
    --border-form: #5a5a7a;
    /* Motion */
    --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition: 0.4s var(--ease-smooth);
}

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

html {
    scroll-behavior: smooth;
}

/* —— A. Subtle Engineering Grid (technical graph paper, 5% opacity) —— */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-platinum);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(227, 228, 232, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 228, 232, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* —— D. Typography Hierarchy —— */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-platinum);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Labels / Meta: uppercase, wide letter-spacing, 12px, muted */
.section-header .section-title,
.service-tag,
.step-number,
.contact-subtitle,
.footer-text {
    /* Override where we want label style */
}
.label-style {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--text-platinum-10);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(48, 47, 77, 0.92);
    border-bottom-color: rgba(227, 228, 232, 0.12);
}

.navbar .logo,
.navbar .nav-link {
    color: var(--text-platinum);
}

.navbar .hamburger span {
    background: var(--text-platinum);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--text-platinum);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-amber);
    transition: var(--transition);
}

.navbar .nav-link:hover {
    color: var(--accent-amber);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 1px;
    background: var(--text-platinum);
    transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 4rem 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(48, 47, 77, 0.4);
}

.hero-shape-1 {
    width: 480px;
    height: 480px;
    top: 50%;
    right: 0;
    transform: translate(45%, -50%);
    background: radial-gradient(circle, rgba(48, 47, 77, 0.5) 0%, transparent 70%);
}

.hero-shape-2 {
    width: 340px;
    height: 340px;
    bottom: 15%;
    left: 0;
    transform: translate(-50%, 0);
    background: radial-gradient(circle, rgba(48, 47, 77, 0.35) 0%, transparent 70%);
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 20%;
    background: rgba(222, 165, 104, 0.08);
}

.hero-shape-4 {
    width: 380px;
    height: 380px;
    bottom: -10%;
    left: 50%;
    transform: translate(-50%, 0);
    background: radial-gradient(circle, rgba(48, 47, 77, 0.4) 0%, transparent 65%);
    border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
}

.liquid-animation {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(222, 165, 104, 0.06) 0%,
        transparent 50%
    );
    animation: liquidFlow 20s ease-in-out infinite;
    transform-origin: center;
}

@keyframes liquidFlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, -5%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    animation: fadeInUp 1.2s var(--ease-smooth);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero: massive, expensive headline + subtle text-shadow */
.hero-title {
    font-size: clamp(3.25rem, 8.5vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--text-platinum);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.8;
}

/* —— Primary CTA: solid amber, bg-deep text, shine on hover —— */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-amber);
    border: none;
    color: var(--bg-deep);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.6s var(--ease-smooth);
}

.cta-button:hover {
    color: var(--bg-deep);
    box-shadow: 0 0 24px var(--accent-amber-50), 0 0 48px rgba(222, 165, 104, 0.2);
}

.cta-button:hover::after {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-amber), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ========== Section Styles ========== */
section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-underline {
    width: 80px;
    height: 1px;
    background: var(--accent-amber);
    margin: 0 auto;
    opacity: 0.6;
}

/* —— Fade-in-up for major sections —— */
.animate-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== About Section ========== */
.about {
    background: var(--bg-deep);
    border-top: 1px solid var(--text-platinum-10);
    position: relative;
    overflow: hidden;
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.about::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(48, 47, 77, 0.6) 0%, transparent 70%);
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.about::after {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(222, 165, 104, 0.06) 0%, transparent 70%);
    bottom: 10%;
    right: 0;
    transform: translate(40%, 0);
}

.about .container { position: relative; z-index: 1; }

.about-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-weight: 300;
    text-align: center;
}

.about-subtitle {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

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

.about-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-platinum);
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-text strong {
    color: var(--accent-amber);
    font-weight: 500;
}

/* ========== Services — Bento / Glassmorphism 2.0 ========== */
.services {
    background: var(--bg-deep);
    border-top: 1px solid var(--text-platinum-10);
    position: relative;
    overflow: hidden;
}

.services::before,
.services::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.services::before {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(48, 47, 77, 0.5) 0%, transparent 70%);
    top: 30%;
    right: 0;
    transform: translate(45%, -50%);
}

.services::after {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(48, 47, 77, 0.35) 0%, transparent 70%);
    bottom: 15%;
    left: 0;
    transform: translate(-45%, 0);
}

.services .container { position: relative; z-index: 1; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Bento cards: darker navy, 1px border 5%; hover → amber border 50%, translateY(-5px), amber glow */
.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--text-platinum-10);
    padding: 3rem;
    padding-bottom: 5rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--accent-amber-50);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 24px rgba(222, 165, 104, 0.15);
}

.service-card.featured {
    border-color: rgba(222, 165, 104, 0.35);
    box-shadow: 0 0 20px rgba(222, 165, 104, 0.08);
}

.service-card.featured:hover {
    border-color: var(--accent-amber-50);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 28px rgba(222, 165, 104, 0.2);
}

.service-card .service-title,
.service-card .service-description {
    color: var(--text-platinum);
}

.service-card .service-description { opacity: 0.95; }

.service-tag {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-top: 1px solid var(--text-platinum-10);
    padding-top: 1rem;
    margin-top: auto;
    position: absolute;
    bottom: 1.5rem;
    left: 3rem;
    right: 3rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    color: var(--accent-amber);
    opacity: 0.95;
}

.service-icon svg { width: 100%; height: 100%; }

.service-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.service-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
    flex-grow: 1;
}

/* ========== Process Section ========== */
.process {
    background: var(--bg-deep);
    border-top: 1px solid var(--text-platinum-10);
    position: relative;
    overflow: hidden;
}

.process::before,
.process::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.process::before {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(48, 47, 77, 0.5) 0%, transparent 70%);
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.process::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(222, 165, 104, 0.05) 0%, transparent 70%);
    bottom: 20%;
    right: 0;
    transform: translate(45%, 0);
}

.process .container { position: relative; z-index: 1; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--accent-amber);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    color: var(--accent-amber);
}

.step-icon svg { width: 100%; height: 100%; }

.step-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.step-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}

/* ========== Contact Section ========== */
.contact {
    background: var(--bg-deep);
    padding: 10rem 0;
    border-top: 1px solid var(--text-platinum-10);
    position: relative;
    overflow: hidden;
}

.contact::before,
.contact::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.contact::before {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(48, 47, 77, 0.5) 0%, transparent 70%);
    top: 0;
    right: 15%;
    transform: translate(0, -50%);
}

.contact::after {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(48, 47, 77, 0.35) 0%, transparent 70%);
    bottom: 0;
    left: 0;
    transform: translate(-40%, 50%);
}

.contact .container { position: relative; z-index: 1; }

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-weight: 300;
}

.contact-form { margin-bottom: 4rem; }

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

/* Forms: bottom border only; focus → border expands + amber */
.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-form);
    padding: 1rem 0 0.75rem;
    color: var(--text-platinum);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 0;
    transition: var(--transition);
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-width: 2px;
    border-bottom-color: var(--accent-amber);
    box-shadow: 0 2px 0 0 var(--accent-amber);
}

/* Primary submit = same as CTA (solid amber, shine) */
.submit-button {
    width: 100%;
    padding: 1.2rem 3rem;
    background: var(--accent-amber);
    border: none;
    color: var(--bg-deep);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.6s var(--ease-smooth);
}

.submit-button:hover {
    color: var(--bg-deep);
    box-shadow: 0 0 24px var(--accent-amber-50), 0 0 48px rgba(222, 165, 104, 0.2);
}

.submit-button:hover::after { left: 100%; }

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--text-platinum-10);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-platinum);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-amber);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-platinum);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-amber);
}

/* Secondary-style link (transparent, 1px amber border; hover fill 10%) */
.social-links { display: flex; gap: 1.5rem; }

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--accent-amber);
    color: var(--accent-amber);
    border-radius: 4px;
    transition: var(--transition);
}

.social-link svg { width: 20px; height: 20px; }

.social-link:hover {
    background: var(--accent-amber-10);
    box-shadow: 0 0 16px rgba(222, 165, 104, 0.2);
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-deep);
    padding: 3rem 0;
    border-top: 1px solid var(--text-platinum-10);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .nav-container,
    .container { padding: 0 2rem; }
    .hero { padding: 0 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-deep);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 0;
        gap: 0;
        border-bottom: 1px solid var(--text-platinum-10);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--text-platinum-10);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1.25rem 2rem;
    }

    .nav-menu.active { left: 0; }

    .hamburger { display: flex; }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .process-steps { grid-template-columns: 1fr; gap: 3rem; }
    .contact-info { flex-direction: column; text-align: center; }
    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .nav-container,
    .container { padding: 0 1.5rem; }
    .hero { padding: 0 1.5rem; }
    section { padding: 4rem 0; }
    .service-card { padding: 2rem; padding-bottom: 4rem; }
    .service-tag { left: 2rem; right: 2rem; bottom: 1rem; }
}
