/* Global Styles & Variables */
:root {
  /* Dark Mode (Default) */
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --primary-color: #38bdf8;
  --primary-hover: #0ea5e9;
  --secondary-color: #818cf8;

  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(15, 23, 42, 0.8);

  --section-padding: 5rem 1.5rem;
  --transition-speed: 0.3s;
}

[data-theme="light"] {
  --bg-color: #f0f4f8;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --primary-color: #0ea5e9;
  --primary-hover: #0284c7;
  --secondary-color: #6366f1;

  --card-bg: #ffffff;
  --card-border: rgba(148, 163, 184, 0.2);
  --nav-bg: rgba(240, 244, 248, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

.typing-wrap{
  display: inline-block;
  min-width: 0.1ch;          /* ajusta conforme sua maior frase */
}

#typing{
  display: inline;
}

.cursor{
  display: inline-block;
  width: 1ch;
  margin-left: 2px;
  color: var(--primary-color);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink{
  50% { opacity: 0; }
}


body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.1px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px !important;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  position: relative;
  scroll-margin-top: 90px;
  /* evita "sumir" sob a navbar fixa */
}

.section-padding {
  padding: var(--section-padding);
}

/* =========================
   REVEAL (com fallback)
   ========================= */
/* Fallback: se JS não rodar, não esconda tudo */
.reveal {
  opacity: 1;
  transform: none;
}

/* Só esconde se JS marcar .js no <html> */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

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

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* =========================
   TITLES / BUTTONS
   ========================= */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.section-footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  width: 100%;
}

.btn-load-more {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.8rem 2.2rem;
  font-size: 0.95rem;
  box-shadow: none;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.theme-btn:hover {
  color: var(--primary-color);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
  /* offset navbar */
  overflow: hidden;
  background: radial-gradient(circle at 70% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.hero-text h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .hero-text h1 {
  background: linear-gradient(to right, #0f172a, #334155);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text .role {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  width: fit-content;
}

.hero-text .role,
#typing {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}


.typing-text {
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--primary-color);
  }
}

.hero-text .description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.cloud-svg {
  width: 350px;
  height: auto;
  opacity: 0.8;
  filter: drop-shadow(0 10px 15px rgba(56, 189, 248, 0.2));
  animation: cloudColorShift 8s ease-in-out infinite;
}

@keyframes cloudColorShift {

  0%,
  100% {
    filter: drop-shadow(0 10px 15px rgba(56, 189, 248, 0.2)) hue-rotate(0deg);
  }

  50% {
    filter: drop-shadow(0 10px 20px rgba(14, 165, 233, 0.3)) hue-rotate(15deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Sidebars */
.hero-side-left,
.hero-side-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  z-index: 20;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-side-left.hidden-sidebar,
.hero-side-right.hidden-sidebar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero-side-left {
  left: calc(50% - 560px - 80px);
}

.hero-side-right {
  right: calc(50% - 560px - 80px);
  cursor: pointer;
}

@media (max-width: 1300px) {
  .hero-side-left {
    left: 20px;
  }

  .hero-side-right {
    right: 20px;
  }
}

@media (max-width: 768px) {

  .hero-side-left,
  .hero-side-right {
    display: none;
  }
}

.side-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--primary-color);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.side-line {
  width: 2px;
  height: 80px;
  background-color: var(--primary-color);
  opacity: 0.5;
}

.social-icons-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-side-left .social-icon {
  background: transparent !important;
  color: var(--text-muted);
  font-size: 1.6rem;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.hero-side-left .social-icon:hover {
  color: var(--primary-color);
  transform: rotate(15deg);
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.hero-side-right:hover .side-text {
  opacity: 1;
  letter-spacing: 4px;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Scroll Down icon */
.mouse-icon {
  width: 24px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.mouse-wheel {
  width: 4px;
  height: 6px;
  background-color: currentColor;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% {
    top: 6px;
    opacity: 1;
  }

  100% {
    top: 18px;
    opacity: 0;
  }
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-visual {
    margin-bottom: 2rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }
}

/* =========================
   PROJECTS
   ========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.project-card-gallery {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
}

.project-card-gallery:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(56, 189, 248, 0.35);
}

.project-card-gallery .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-gallery .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card-gallery:hover .card-image img {
  transform: scale(1.08);
}

.project-card-gallery .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card-gallery:hover .card-image::after {
  opacity: 1;
}

.project-card-gallery .card-image i {
  font-size: 3rem;
  color: #64748b;
  z-index: 1;
}

.project-card-gallery .card-info {
  padding: 1.25rem;
}

.project-card-gallery .card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card-gallery .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
}

/* Modal */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  background: var(--card-bg);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.project-modal-overlay.active .project-modal {
  transform: scale(1) translateY(0);
}

[data-theme="light"] .project-modal {
  background: #ffffff;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

.modal-content {
  padding: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.modal-tech .tag {
  font-size: 0.75rem;
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
}

.modal-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.modal-github:hover {
  color: var(--primary-color);
}

.modal-github i {
  font-size: 1.3rem;
}

/* =========================
   SKILLS
   ========================= */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.tech-skill-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tech-skill-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.tech-skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.skill-card-header i {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.skill-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.skill-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.skill-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-color);
}

.skill-check-item i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.skill-check-item span {
  font-weight: 500;
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tech-skill-card {
    padding: 1.5rem;
  }
}

/* =========================
   CERTIFICATES
   ========================= */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.cert-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

.cert-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.cert-school {
  color: var(--text-muted);
  font-weight: 500;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.9rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cert-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
}

.status-completed {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-ongoing {
  background-color: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

/* Hide credential link if status is ongoing (nota: :has pode falhar em alguns browsers antigos) */
.cert-card:has(.status-ongoing) .btn-link {
  display: none;
}

/* =========================
   CONTACT
   ========================= */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-group-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  max-width: 320px;
}

.contact-info-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.whatsapp-cta {
  border-color: rgba(34, 197, 94, 0.3);
}

.whatsapp-cta .contact-icon-box {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.whatsapp-cta:hover {
  border-color: #22c55e;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-text h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-text p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.contact-social-row {
  display: flex;
  gap: 1rem;
}

.contact-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-size: 1rem;
}

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

.contact-form-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .contact-form-card {
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(148, 163, 184, 0.15);
}

.contact-form-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-form-header p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: transparent;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.contact-form button {
  width: 100%;
  height: 48px;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   BOTTOM NAV
   ========================= */
.bottom-nav-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

.bottom-nav-container.hidden-by-footer {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.bottom-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.nav-item:hover {
  color: var(--primary-color);
}

.nav-item.active {
  color: var(--primary-color);
  background: rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .nav-item.active {
  background: rgba(14, 165, 233, 0.15);
}

.nav-toggle-chevron {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.nav-toggle-chevron:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.nav-toggle-chevron i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.bottom-nav-container.closed .nav-toggle-chevron i {
  transform: rotate(180deg);
}

.bottom-nav-container.closed .bottom-nav {
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  pointer-events: none;
  width: 0;
  padding: 0;
  overflow: hidden;
}

/* Scroll Up Button */
.scroll-up-btn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.scroll-up-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-up-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0;
  padding-bottom: 100px;
  background: var(--bg-color);
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
}

.footer p {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .bottom-nav {
    padding: 0.5rem 0.8rem;
    gap: 0.3rem;
  }

  .nav-item {
    width: 40px;
    height: 40px;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .scroll-up-btn {
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}