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

:root {
    --obsidian: #111111;
    --obsidian2: #1a1a1a;
    --obsidian3: #222222;
    --gold: #C5A44C;
    --petrol: #173F5F;
    --ivory: #F5F4F0;
    --ivory-dim: rgba(245, 244, 240, 0.6);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--obsidian);
    color: var(--ivory);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 600; }

/* Nav */
nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1.4rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(197, 164, 76, 0.15);
}

.nav-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--ivory);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav ul { list-style: none; display: flex; gap: 2.5rem; }

nav a {
    text-decoration: none;
    color: var(--ivory-dim);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: color 0.3s;
}
nav a:hover { color: var(--gold); }

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(197, 164, 76, 0.3);
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--ivory-dim);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: all 0.25s;
}

.lang-btn.active {
    background: var(--gold);
    color: var(--obsidian);
}

.lang-btn:not(.active):hover {
    color: var(--gold);
}

.lang-sep {
    width: 1px;
    height: 1.2rem;
    background: rgba(197, 164, 76, 0.3);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(197,164,76,0.07) 0%, transparent 65%);
    top: -150px; right: -150px;
    pointer-events: none;
    animation: drift 25s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(23,63,95,0.25) 0%, transparent 70%);
    bottom: 50px; left: 10%;
    pointer-events: none;
    animation: drift 18s ease-in-out infinite reverse;
}

@keyframes drift {
    0%,100% { transform: translate(0,0); }
    33%      { transform: translate(25px,-25px); }
    66%      { transform: translate(-15px,20px); }
}

.hero-content {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
    animation: fadeUp 1s ease-out both;
}

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

/* Profile Photo */
.hero-photo {
    margin-bottom: 2.5rem;
}

.hero-photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(197, 164, 76, 0.3);
    filter: grayscale(20%);
    transition: all 0.4s;
}

.hero-photo img:hover {
    border-color: var(--gold);
    filter: grayscale(0%);
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.05;
    color: var(--ivory);
    margin-bottom: 2rem;
}

.hero h1 span { color: var(--gold); }

.hero-tagline {
    font-size: 1.1rem;
    color: var(--ivory-dim);
    font-weight: 300;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.cta-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--gold);
    color: var(--obsidian);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-small {
    padding: 0.6rem 1.8rem;
    font-size: 0.82rem;
}

.btn-ghost {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1px solid rgba(197,164,76,0.4);
    color: var(--ivory);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    background: none;
    border: none;
    color: var(--ivory-dim);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.btn-linkedin:hover { color: var(--gold); transform: translateY(-2px); }

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(197,164,76,0.3), transparent);
    margin: 0 6%;
}

/* About / What I Do */
.about { padding: 8rem 6%; }

.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.section-label::before { content: "\25A0 "; }

.about h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ivory);
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: rgba(197,164,76,0.12);
    margin-bottom: 4rem;
}

.about-card {
    background: var(--obsidian2);
    padding: 2.5rem 2rem;
    transition: background 0.3s;
}
.about-card:hover { background: var(--obsidian3); }

.about-icon {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--gold);
}

.about-card h3 {
    font-size: 1.3rem;
    color: var(--ivory);
    margin-bottom: 0.8rem;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--ivory-dim);
    font-weight: 300;
    line-height: 1.8;
}

/* Ineditu Banner */
.ineditu-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(197, 164, 76, 0.2);
    background: var(--obsidian2);
}

.ineditu-banner p {
    font-size: 0.95rem;
    color: var(--ivory-dim);
    font-weight: 300;
}

/* Contact */
.contact {
    padding: 8rem 6%;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
    color: var(--ivory);
}

.contact p {
    font-size: 1.05rem;
    color: var(--ivory-dim);
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto 3rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(197,164,76,0.12);
    padding: 2.5rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--ivory);
}

footer p {
    font-size: 0.85rem;
    color: var(--ivory-dim);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--obsidian2);
    border: 1px solid rgba(197,164,76,0.2);
    max-width: 520px;
    width: 100%;
    padding: 3rem 2.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none;
    border: 1px solid rgba(197,164,76,0.3);
    color: var(--ivory-dim);
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { color: var(--gold); border-color: var(--gold); }

.modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--ivory);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--ivory-dim);
    font-weight: 300;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--obsidian);
    border: 1px solid rgba(197,164,76,0.25);
    color: var(--ivory);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ivory-dim);
    opacity: 0.5;
}

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

.btn-submit {
    width: 100%;
    padding: 0.9rem 2.5rem;
    background: var(--gold);
    color: var(--obsidian);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}
.btn-submit:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    min-height: 1.2rem;
}
.form-status.success { color: #5cb85c; }
.form-status.error { color: #d9534f; }

/* Transitions */
[data-en], [data-pt] { transition: opacity 0.2s; }

/* Responsive */
@media (max-width: 768px) {
    nav ul { display: none; }
    .hero { padding: 9rem 6% 5rem; min-height: auto; }
    .about-grid { grid-template-columns: 1fr; }
    .ineditu-banner { flex-direction: column; text-align: center; }
    footer { flex-direction: column; text-align: center; }
    .modal { padding: 2rem 1.5rem; }
}
