/* Base CSS */


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
  --bg-primary: #1e272e;
  --bg-secondary: #2d3436;
  --bg-header: #141b1f;
  --text-primary: #ecf0f1;
  --text-secondary: #b2bec3;
  --accent: #B33771;
  --border-color: #3d4f5c;
}

/* Light mode when toggle is checked */
#themeToggle:checked ~ body,
body:has(#themeToggle:checked) {
  --bg-primary: #f5f5f5;
  --bg-secondary: #e8e8e8;
  --bg-header: #ffffff;
  --text-primary: #1e272e;
  --text-secondary: #555555;
  --accent: #B33771;
  --border-color: #cccccc;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
}

.section-heading {
  text-align: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 40px;
  letter-spacing: 2px;
}


section {
  padding: 80px 40px;
}

section:nth-child(even) {
  background-color: var(--bg-secondary);
}

section:nth-child(odd) {
  background-color: var(--bg-primary);
}


@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}


@media (max-width: 768px) {
  .home-content h1 {
    font-size: 2rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .about-image img {
    margin: 0 auto;
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  section {
    padding: 60px 20px;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .home-content h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  .home-content p {
    font-size: 0.95rem;
  }

  .profile-img-home {
    width: 140px;
    height: 140px;
  }

  .cert-card,
  .service-card {
    width: 100%;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-resume {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}
