:root {
    --navy: #0a1628;
    --navy-light: #142338;
    --cyan: #00d4ff;
    --cyan-dim: #00a8cc;
    --white: #ffffff;
    --gray-100: #f4f7fa;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: 
        linear-gradient(var(--cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyan) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
}

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

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--white);
}

.logo-text span {
    font-weight: 400;
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--white);
}

.nav-cta {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--cyan);
    color: var(--navy) !important;
}

/* Page content */
.page-content {
    padding-top: 120px;
    min-height: calc(100vh - 100px);
}

/* Hero (home page) */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding: 40px 0 80px;
}

.hero-content {
    max-width: 700px;
}

.hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 28px;
    color: var(--white);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.75;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cyan);
    color: var(--navy);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* Section styling */
section {
    padding: 80px 0;
}

.page-header {
    padding: 60px 0 40px;
}

.page-header h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--gray-400);
    font-size: 1.15rem;
    max-width: 600px;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--gray-400);
    font-size: 1.05rem;
    max-width: 600px;
}

/* About page */
.about-content {
    max-width: 700px;
}

.about-content p {
    color: var(--gray-400);
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p strong {
    color: var(--white);
    font-weight: 500;
}

.about-photo {
    margin-bottom: 40px;
    max-width: 250px;
}

.about-photo-placeholder {
    aspect-ratio: 1;
    background: var(--navy-light);
    border: 2px dashed var(--gray-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* How I Work page */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.work-card {
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 32px 28px;
}

.work-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--cyan);
}

.work-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.step {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Portfolio page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.portfolio-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.portfolio-card .tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    margin-bottom: 16px;
    font-weight: 500;
}

.portfolio-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Method page */
.jaco-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.jaco-card {
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.jaco-card:hover {
    border-color: var(--cyan);
}

.jaco-letter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 8px;
    line-height: 1;
}

.jaco-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.jaco-card p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact CTA */
.cta {
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--cyan);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--cyan);
    font-size: 1.2rem;
    line-height: 1;
}

/* Mobile */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    nav {
        gap: 0;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--navy-light);
        flex-direction: column;
        padding: 80px 32px 32px;
        transition: right 0.3s ease;
        z-index: 200;
        border-left: 1px solid rgba(255,255,255,0.05);
    }

    nav.open {
        right: 0;
    }

    nav a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    nav a:not(.nav-cta) {
        display: block;
    }

    nav .nav-cta {
        margin-top: 16px;
        text-align: center;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 150;
    }

    .menu-overlay.open {
        display: block;
    }

    .work-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .jaco-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .jaco-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline,
.hero h1,
.hero-description,
.hero .btn-primary {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.hero h1 { animation-delay: 0.1s; }
.hero-description { animation-delay: 0.2s; }
.hero .btn-primary { animation-delay: 0.3s; }

/* Contact form */
.contact-form-container {
    max-width: 560px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--white);
}

.form-group .optional {
    color: var(--gray-600);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

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

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

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

.form-success {
    padding: 60px 0;
}

.form-success h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-400);
    font-size: 1.05rem;
}

.contact-alt {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-alt p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-alt a {
    color: var(--cyan);
    text-decoration: none;
}

.contact-alt a:hover {
    color: var(--white);
}
