:root {
    --bg-primary: #0A020E;
    --bg-secondary: #311440;
    --accent-purple: #572671;
    --text-light: #F1EDF3;
    --accent-teal: #A3D1CC;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', sans-serif;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg-primary);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 300;
    overflow-x: hidden;
    cursor: default;
  }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg-primary); }
  ::-webkit-scrollbar-thumb { background: var(--accent-purple); }

  /* ── HEADER ── */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 60px;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(241,237,243,0.06);
    transition: padding 0.4s ease;
  }

  header.scrolled { padding: 18px 60px; }

  .logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .logo span { color: var(--accent-teal); }

  /* NAV */
  nav {
    display: flex;
    align-items: center;
    gap: 48px;
  }

  nav a {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(241,237,243,0.55);
    text-decoration: none;
    transition: color 0.3s;
  }

  nav a:hover { color: var(--text-light); }

  /* LANG SELECTOR */
  .lang-selector {
    position: relative;
    margin-left: 32px;
  }

  .lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(241,237,243,0.15);
    color: rgba(241,237,243,0.55);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
  }

  .lang-btn:hover { border-color: rgba(241,237,243,0.35); color: var(--text-light); }

  .lang-btn svg { opacity: 0.6; }

  .lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a0a22;
    border: 1px solid rgba(241,237,243,0.1);
    min-width: 130px;
    display: none;
    flex-direction: column;
  }

  .lang-dropdown.open { display: flex; }

  .lang-dropdown button {
    background: none;
    border: none;
    color: rgba(241,237,243,0.6);
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 18px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }

  .lang-dropdown button:hover { background: rgba(87,38,113,0.3); color: var(--text-light); }

  /* HAMBURGER */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text-light);
    transition: 0.3s;
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 60px 100px;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
  }

  .hero-bg-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--bg-secondary);
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(120px);
    pointer-events: none;
  }

  .hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .hero-eyebrow {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.9s 0.2s forwards;
  }

  .hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: 0.01em;
    color: var(--text-light);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.9s 0.4s forwards;
  }

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

  .hero-sub {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(241,237,243,0.55);
    max-width: 580px;
    margin: 0 auto 56px;
    opacity: 0;
    animation: fadeUp 0.9s 0.6s forwards;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    animation: fadeUp 0.9s 0.8s forwards;
  }

  .btn-primary {
    background: var(--accent-teal);
    color: var(--bg-primary);
    border: none;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 18px 42px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
  }

  .btn-primary:hover { opacity: 0.82; }

  .btn-ghost {
    background: none;
    color: rgba(241,237,243,0.5);
    border: 1px solid rgba(241,237,243,0.18);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 18px 42px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.3s, color 0.3s;
  }

  .btn-ghost:hover { border-color: rgba(241,237,243,0.45); color: var(--text-light); }

  .hero-line {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 0.9s 1.2s forwards;
  }

  .hero-line span {
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(241,237,243,0.3);
  }

  .scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(241,237,243,0.15);
    position: relative;
    overflow: hidden;
  }

  .scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-teal);
    animation: scrollDown 1.8s 1.5s infinite;
  }

  /* ── STATS BAR ── */
  .stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(163,209,204,0.12);
    border-bottom: 1px solid rgba(163,209,204,0.12);
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
  }

  .stat-item { text-align: center; }

  .stat-number {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 300;
    color: var(--accent-teal);
    display: block;
  }

  .stat-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(241,237,243,0.4);
    margin-top: 6px;
    display: block;
  }

  .stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(241,237,243,0.1);
  }

  /* ── SECTIONS COMMON ── */
  section { padding: 120px 60px; }

  .section-tag {
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: 20px;
    display: block;
  }

  .section-title {
    font-family: var(--font-serif);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-light);
  }

  .section-title em { font-style: italic; }

  /* ── SOBRE ── */
  .about { background: var(--bg-primary); }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
  }

  .about-left { position: sticky; top: 120px; }

  .about-left .section-title { margin-bottom: 40px; }

  .about-left p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(241,237,243,0.5);
    margin-bottom: 20px;
  }

  .about-left p strong { color: var(--text-light); font-weight: 400; }

  .about-right { display: flex; flex-direction: column; gap: 48px; padding-top: 12px; }

  .about-block {
    border-left: 1px solid rgba(163,209,204,0.25);
    padding-left: 32px;
  }

  .about-block h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 14px;
  }

  .about-block p {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(241,237,243,0.5);
  }

  /* ── SERVICES ── */
  .services { background: var(--bg-secondary); }

  .services-inner { max-width: 1200px; margin: 0 auto; }

  .services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
  }

  .services-header p {
    font-size: 14px;
    color: rgba(241,237,243,0.4);
    max-width: 300px;
    line-height: 1.8;
    text-align: right;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .service-card {
    background: var(--bg-primary);
    padding: 60px 52px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s;
  }

  .service-card:hover { background: #120320; }

  .service-number {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 300;
    color: rgba(87,38,113,0.25);
    line-height: 1;
    margin-bottom: 32px;
    display: block;
  }

  .service-card h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 20px;
  }

  .service-card p {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(241,237,243,0.45);
    margin-bottom: 36px;
  }

  .service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .service-features li {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(241,237,243,0.4);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .service-features li::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent-teal);
    flex-shrink: 0;
  }

  /* ── PORTFOLIO ── */
  .portfolio { background: var(--bg-primary); overflow: hidden; }

  .portfolio-inner { max-width: 1200px; margin: 0 auto; }

  .portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
  }

  .carousel-nav {
    display: flex;
    gap: 12px;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid rgba(241,237,243,0.15);
    color: rgba(241,237,243,0.5);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, color 0.3s;
  }

  .carousel-btn:hover { border-color: var(--accent-teal); color: var(--accent-teal); }

  .carousel-track-wrap {
    overflow: hidden;
    position: relative;
  }

  .carousel-track {
    display: flex;
    gap: 28px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .project-card {
    flex: 0 0 calc(50% - 14px);
    min-width: 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
  }

  .project-img {
    width: 100%;
    height: 300px;
    background: #1f0a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  .project-img-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
  }

  /* Decorative browser mockup in project cards */
  .browser-mock {
    width: 85%;
    background: #0d0014;
    border: 1px solid rgba(241,237,243,0.08);
    padding: 0;
    position: relative;
  }

  .browser-bar {
    background: #180425;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    border-bottom: 1px solid rgba(241,237,243,0.05);
  }

  .browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .browser-content {
    height: 140px;
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 8px;
    overflow: hidden;
  }

  .bc-line {
    height: 8px;
    background: rgba(241,237,243,0.06);
  }

  .bc-line.teal { background: rgba(163,209,204,0.2); width: 40%; }
  .bc-line.wide { width: 80%; }
  .bc-line.mid { width: 60%; }
  .bc-line.short { width: 35%; }

  .project-label {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-teal);
    background: rgba(10,2,14,0.8);
    padding: 6px 12px;
    border: 1px solid rgba(163,209,204,0.2);
  }

  .project-info {
    padding: 32px 36px;
  }

  .project-tag {
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(163,209,204,0.6);
    margin-bottom: 10px;
    display: block;
  }

  .project-info h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 10px;
  }

  .project-info p {
    font-size: 13px;
    color: rgba(241,237,243,0.4);
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .project-link {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-teal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
  }

  .project-link:hover { gap: 18px; }

  .project-link::after {
    content: '→';
    font-size: 14px;
  }

  /* ── CONTACT ── */
  .contact { background: var(--bg-secondary); }

  .contact-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
  }

  .contact-left .section-title { margin-bottom: 28px; }

  .contact-left .lead {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(241,237,243,0.45);
    margin-bottom: 40px;
  }

  .urgency-note {
    background: var(--bg-primary);
    border-left: 2px solid var(--accent-teal);
    padding: 20px 24px;
    font-size: 13px;
    color: rgba(241,237,243,0.55);
    line-height: 1.7;
  }

  .urgency-note strong { color: var(--accent-teal); font-weight: 400; }

  .contact-form { display: flex; flex-direction: column; gap: 18px; }

  .form-group { position: relative; }

  .form-group label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(241,237,243,0.35);
    display: block;
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid rgba(241,237,243,0.1);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    padding: 14px 18px;
    outline: none;
    transition: border-color 0.3s;
    resize: none;
  }

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

  .form-group textarea { height: 110px; }

  .form-submit {
    background: var(--accent-teal);
    color: var(--bg-primary);
    border: none;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 18px;
    cursor: pointer;
    transition: opacity 0.3s;
    width: 100%;
    margin-top: 6px;
  }

  .form-submit:hover { opacity: 0.82; }

  /* ── FOOTER ── */
  footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(241,237,243,0.06);
    padding: 72px 60px 40px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 60px;
  }

  .footer-brand .logo { font-size: 24px; margin-bottom: 20px; display: inline-block; }

  .footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(241,237,243,0.35);
    max-width: 280px;
  }

  .footer-col h4 {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(241,237,243,0.3);
    margin-bottom: 24px;
  }

  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

  .footer-col ul li a,
  .footer-col ul li {
    font-size: 13px;
    color: rgba(241,237,243,0.5);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-col ul li a:hover { color: var(--text-light); }

  .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(241,237,243,0.06);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom p {
    font-size: 11px;
    color: rgba(241,237,243,0.25);
    letter-spacing: 0.08em;
  }

  .footer-socials { display: flex; gap: 20px; }

  .footer-socials a {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(241,237,243,0.3);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-socials a:hover { color: var(--accent-teal); }

  /* ── WHATSAPP FLOAT ── */
  .whatsapp-float {
    position: fixed;
    bottom: 36px;
    right: 36px;
    z-index: 200;
    width: 54px;
    height: 54px;
    background: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(163,209,204,0.2);
    transition: opacity 0.3s, transform 0.3s;
  }

  .whatsapp-float:hover { opacity: 0.85; transform: scale(1.06); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes scrollDown {
    0%   { top: -100%; }
    100% { top: 200%; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── MOBILE NAV ── */
  .mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  }

  .mobile-nav.open { transform: translateX(0); }

  .mobile-nav a {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 0.08em;
  }

  .close-nav {
    position: absolute;
    top: 28px; right: 36px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    header { padding: 22px 30px; }
    header.scrolled { padding: 16px 30px; }

    nav { display: none; }
    .hamburger { display: flex; }

    .hero { padding: 120px 30px 80px; }
    .hero-actions { flex-direction: column; gap: 14px; }
    .btn-primary, .btn-ghost { width: 100%; text-align: center; }

    .hero-line {
  display: none;
}

    .stats-bar { flex-wrap: wrap; gap: 32px 48px; padding: 40px 30px; }
    .stat-divider { display: none; }

    section { padding: 80px 30px; }

    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-left { position: static; }

    .services-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .services-header p { text-align: left; }
    .services-grid { grid-template-columns: 1fr; }

    .portfolio-header { flex-direction: column; align-items: flex-start; gap: 24px; }
    .project-card { flex: 0 0 85%; }

    .contact-inner { grid-template-columns: 1fr; gap: 60px; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .whatsapp-float { bottom: 24px; right: 24px; }
  }