:root {
    --teal: #2B7A9A;
    --teal-dark: #1E5C75;
    --teal-light: #4A9BBC;
    --teal-xlight: #EAF4F8;
    --teal-muted: rgba(43, 122, 154, 0.07);

    --ink: #0D1B2A;
    --ink-60: #2D4159;
    --ink-40: #506070;
    --ink-20: #94A8B8;

    --bg: #FAFAF8;
    --bg-card: #FFFFFF;
    --bg-alt: #F2EFEA;
    --border: #E4E0DA;
    --border-light: #F0EDE8;

    --shadow-xs: 0 1px 3px rgba(13,27,42,0.05);
    --shadow-sm: 0 2px 8px rgba(13,27,42,0.06);
    --shadow-md: 0 4px 20px rgba(13,27,42,0.09), 0 1px 4px rgba(13,27,42,0.04);
    --shadow-lg: 0 8px 40px rgba(13,27,42,0.11), 0 3px 10px rgba(13,27,42,0.05);
    --shadow-xl: 0 24px 64px rgba(13,27,42,0.13), 0 6px 20px rgba(13,27,42,0.06);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root { color-scheme: light; }
    body, html { background-color: #FAFAF8 !important; color: #0D1B2A !important; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: light only;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ========================
   NAV
======================== */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2.5rem;
    background: rgba(250,250,248,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}

/* ========================
   BUTTONS
======================== */
.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal);
    color: white;
    box-shadow: 0 3px 12px rgba(43,122,154,0.28);
}

.btn-primary:hover {
    background: var(--teal-dark);
    box-shadow: 0 6px 24px rgba(43,122,154,0.36);
    transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: transparent;
    color: var(--ink-60);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

/* ========================
   HERO
======================== */
.hero {
    padding: 5.5rem 0 6.5rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(43,122,154,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--teal) 40%, var(--teal) 60%, transparent 95%);
    opacity: 0.3;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 2.5rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: var(--teal);
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1.06;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin-bottom: 1.75rem;
}

.hero-title em {
    font-style: italic;
    color: var(--teal);
}

.hero-subtitle {
    font-size: 1.075rem;
    color: var(--ink-40);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
}

/* Hero Image Column */
.hero-image-wrap {
    position: relative;
}

.hero-photo-frame {
    position: relative;
    border-radius: 42% / 30%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 380px;
    margin: 0 auto;
}

.hero-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* ========================
   SECTION SHARED
======================== */
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    text-align: center;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.875rem;
}


.section-subtitle {
    text-align: center;
    font-size: 1.025rem;
    color: var(--ink-40);
    margin: 0 auto 3.5rem;
    max-width: 540px;
    line-height: 1.8;
    font-weight: 300;
}

/* ========================
   ABOUT
======================== */
.about {
    padding: 6rem 0;
    background: var(--bg-card);
}

.about-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-description {
    font-size: 1.075rem;
    color: var(--ink-40);
    line-height: 1.95;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

/* ========================
   PROJECTS / FEATURES
======================== */
.features {
    padding: 6rem 0;
    background: var(--bg);
}

.project-selector {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.proj-tab {
    padding: 0.6rem 1.125rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-40);
    transition: all 0.2s ease;
    text-align: left;
}

.proj-tab:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.proj-tab.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    box-shadow: 0 3px 14px rgba(43,122,154,0.28);
}

.tab-panel { display: none; }
.tab-panel.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

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

.proj-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--ink-60);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-align: center;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.metrics-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.metric-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    flex: 1;
    min-width: 120px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.metric-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
}

.metric-label {
    font-size: 0.68rem;
    color: var(--ink-20);
    font-weight: 500;
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}

.proj-screenshot {
    margin-bottom: 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.proj-screenshot--sm {
    width: 25%;
}

.proj-img {
    display: block;
    width: 100%;
    height: auto;
}

.proj-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.proj-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.proj-block:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.proj-block-label {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.proj-block h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.proj-block p {
    font-size: 0.9rem;
    color: var(--ink-40);
    line-height: 1.85;
    font-weight: 300;
}

/* ========================
   PROCESS
======================== */
.app-preview {
    padding: 6rem 0;
    background: var(--bg-card);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3.5rem;
}

.process-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.step-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--teal);
    opacity: 0.45;
    line-height: 1;
    margin-bottom: 0.875rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--ink-40);
    line-height: 1.8;
    font-weight: 300;
}

/* ========================
   CONTACT
======================== */
.cta-section {
    padding: 7rem 0;
    background: var(--bg);
}

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

.cta-description {
    font-size: 1.075rem;
    color: var(--ink-40);
    margin-bottom: 2.5rem;
    line-height: 1.85;
    font-weight: 300;
}

.contact-links {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    border: 1.5px solid;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.contact-link-email   { color: var(--teal); border-color: var(--teal); }
.contact-link-email:hover { background: var(--teal); color: white; box-shadow: 0 4px 16px rgba(43,122,154,0.32); transform: translateY(-2px); }

.contact-link-linkedin { color: #0077B5; border-color: #0077B5; }
.contact-link-linkedin:hover { background: #0077B5; color: white; transform: translateY(-2px); }

.contact-link-whatsapp { color: #25D366; border-color: #25D366; }
.contact-link-whatsapp:hover { background: #25D366; color: white; transform: translateY(-2px); }

/* ========================
   FOOTER
======================== */
.footer {
    background: var(--ink);
    padding: 1.75rem 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.06em;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 960px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .hero-image-wrap {
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-title { font-size: 3.25rem; }
    .hero-subtitle { max-width: 100%; }

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

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }

    .nav-bar { padding: 1rem 1.25rem; }

    .hero { padding: 3rem 0 4rem; }
    .hero-title { font-size: 2.6rem; }

    .section-title { font-size: 2.4rem; }
    .section-subtitle { margin-bottom: 2.5rem; }

    .proj-details { grid-template-columns: 1fr; }

    .about,
    .features,
    .app-preview,
    .cta-section { padding: 4rem 0; }

}

@media (max-width: 480px) {
    .hero-title { font-size: 2.1rem; }
    .section-title { font-size: 2rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
    .proj-tagline { font-size: 1.2rem; }
}
