:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #38bdf8;
  --accent-hover: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --whatsapp-color: #25d366;
  --card-bg: rgba(30, 41, 59, 0.5);
  --input-bg: #020617;
  --radius-sm: 6px;
  --radius-md: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.15);
  --card-bg: rgba(241, 245, 249, 0.8);
  --input-bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }

.ambient-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  z-index: -1; pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-subtitle { color: var(--accent-color); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-top: 5px; }

.glassmorphic { background: var(--bg-glass); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius-md); }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--bg-glass); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-brand { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); text-decoration: none; }
.nav-brand span { color: var(--accent-color); }
.nav-list { display: flex; list-style: none; gap: 24px; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--accent-color); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.hamburger-btn { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; }
.hamburger-btn .bar { width: 24px; height: 2px; background-color: var(--text-primary); }

.hero-section { padding: 140px 0 80px; }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-glow); color: var(--accent-color); border: 1px solid var(--accent-color); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 20px; }
.status-dot { width: 8px; height: 8px; background-color: var(--accent-color); border-radius: 50%; }
.hero-title { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.hero-subtitle { font-size: 1.1rem; color: var(--accent-color); font-weight: 600; margin-bottom: 18px; }
.hero-description { color: var(--text-secondary); font-size: 1rem; margin-bottom: 25px; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; text-decoration: none; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--accent-color); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-whatsapp { background: var(--whatsapp-color); color: #fff; }

.hero-socials { display: flex; align-items: center; gap: 10px; }
.social-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; font-size: 0.75rem; font-weight: 700; }

.hero-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }
.floating-graphic-badge { position: absolute; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px); border: 1px solid var(--accent-color); padding: 8px 14px; border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; z-index: 10; animation: floatNode 4s ease-in-out infinite alternate; }
.badge-top-right { top: -10px; right: -10px; border-color: #38bdf8; }
.badge-bottom-left { bottom: 0px; left: -10px; animation-delay: 2s; border-color: #10b981; }

@keyframes floatNode {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.hero-svg-bg { position: absolute; width: 120%; height: 120%; top: -10%; left: -10%; z-index: 0; pointer-events: none; opacity: 0.5; }
.profile-frame { position: relative; z-index: 2; width: 280px; height: 280px; border-radius: 50%; padding: 6px; border: 2px solid var(--accent-color); box-shadow: 0 0 25px var(--accent-glow); }
.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.about-card { padding: 32px; }
.about-text { font-size: 1rem; color: var(--text-secondary); margin-bottom: 20px; }
.platform-showcase-section { margin-top: 25px; padding: 20px; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.platform-showcase-title { font-size: 0.85rem; font-weight: 700; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; text-align: center; }
.platform-badges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.platform-card { background: rgba(30, 41, 59, 0.7); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.platform-logo-img { width: 28px; height: 28px; object-fit: contain; }
.platform-name { font-size: 0.75rem; font-weight: 700; text-align: center; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.skill-card { padding: 20px; border-radius: var(--radius-md); background: var(--card-bg); border: 1px solid var(--border-color); }
.skill-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; }
.skill-bar-bg { width: 100%; height: 6px; background: var(--border-color); border-radius: 4px; }
.skill-bar-fill { height: 100%; background: var(--accent-color); border-radius: 4px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card { padding: 28px; }
.service-icon { font-size: 2rem; margin-bottom: 12px; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.project-card { background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.project-img-wrapper { width: 100%; height: 180px; overflow: hidden; }
.project-img { width: 100%; height: 100%; object-fit: cover; }
.project-content { padding: 20px; }
.project-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.project-desc { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 14px; }
.project-tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tech-tag { background: var(--border-color); color: var(--accent-color); font-size: 0.7rem; padding: 3px 8px; border-radius: 10px; font-weight: 600; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; padding: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-main); font-size: 0.9rem; }
.btn-block { width: 100%; }

.form-feedback { padding: 10px; border-radius: var(--radius-sm); font-size: 0.85rem; text-align: center; }
.form-feedback.success { background: rgba(37, 211, 102, 0.15); color: #25d366; border: 1px solid #25d366; }
.form-feedback.error { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid #ef4444; }
.hidden { display: none; }

.floating-whatsapp { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background: var(--whatsapp-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); text-decoration: none; z-index: 999; }
.whatsapp-icon-symbol { font-size: 1.5rem; }

.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 25px 0; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: var(--text-secondary); }

@media (max-width: 850px) {
  .hero-container, .contact-wrapper { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hamburger-btn { display: flex; }
  .nav-menu { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: var(--bg-secondary); transition: var(--transition); padding: 30px; }
  .nav-menu.active { left: 0; }
  .nav-list { flex-direction: column; gap: 18px; }
}