/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
/* Default: Dark Theme */
:root {
  --color-bg: #0b0c10;
  --color-surface: #111218;
  --color-primary: #5ad2f4;
  --color-primary-rgb: 90, 210, 244;
  --color-text-muted: #ccc;
  --color-text: #fff;
}

/* Light Theme */
[data-theme="light"] {
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
  --color-primary: #5ad2f4;
  --color-primary-rgb: 90, 210, 244;
  --color-text-muted: #666;
  --color-text: #111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Sora", sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  width: 100%;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
  border-bottom: 2px solid rgba(200, 200, 200, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.logo img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 600;
  transition: color 0.3s ease;
  padding-bottom: 5px;
}

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

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

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

.nav-links a.active::after {
  background: var(--color-primary);
}

.menu-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.theme-btn {
  display: block;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Navbar Responsive */
@media (max-width: 768px) {
.nav-links {
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface);
  gap: 20px;
  padding: 0; /* we’ll animate height so start with 0 */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease;
}

/* when active */
.nav-links.active {
  padding: 20px 0;
  max-height: 300px; /* adjust based on number of links */
  opacity: 1;
}

.nav-links {
  transform: translateY(-10px);
}
.nav-links.active {
  transform: translateY(0);
}

  .menu-btn {
    display: block;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  background: var(--color-surface);
  color: var(--color-text);
  flex-wrap: wrap;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

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

.hero-content h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #aaa;
  margin-bottom: 22px;
}

.hero-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn.primary {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.3);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
}

.btn.secondary {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn.secondary:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.hero-image {
  display: flex;
  border-radius: 20px;
  padding: 0.25rem;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 1s ease forwards;
  width: fit-content;
  height: fit-content;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-image img {
  width: clamp(260px, 35vw, 380px);
  border-radius: 18px;
  z-index: 2;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  background: conic-gradient(#5ad2f4, #1f2f98, #4adede, #377af5, #5AD2F4) ;
  animation: rotate 4s linear infinite;
}

.hero-image::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 6px;
  top: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  background: var(--color-bg);
  border-radius: inherit;
}

.hero-buttons .btn i {
  font-size: 1.1rem;
  vertical-align: middle;
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-buttons .btn.primary i:first-child {
  margin-right: 6px;
}

.hero-buttons .btn.primary i:last-child {
  margin-left: 6px;
}

.hero-buttons .btn.secondary i {
  margin-right: 6px;
}

.hero-buttons .btn.primary:hover i:last-child {
  transform: translateX(4px);
}

.hero-buttons .btn.secondary:hover i {
  transform: translateY(-2px);
  color: var(--color-bg);
}

.hero-buttons .btn.primary i:last-child {
  animation: arrowMove 1.5s ease-in-out infinite;
}

.scroll-down-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin: 10px auto 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(var(--color-primary-rgb), 0.35);
  animation: bounce 1.5s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-down-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.45);
}

/* Hero Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rotate {
  100% { transform: rotate(1turn); }
}

@keyframes arrowMove {
  0% { transform: translateX(0); }
  50% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero Responsive */
@media (max-width: 950px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 70px 6%;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-bottom: 45px;
  }
}

@media (max-width: 420px) {
  .btn {
    padding: 11px 22px;
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  width: 100%;
  padding: 100px 10%;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.about-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.8s ease forwards;
}

.about-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  margin: 8px auto 0;
  background: var(--color-primary);
  border-radius: 2px;
}

.about-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 750px;
  margin: 20px auto 50px;
  animation: fadeInUp 1s ease forwards;
}

.highlight {
  color: var(--color-primary);
  font-weight: 600;
}

.about-cards {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 25px;
  border: 2px solid rgba(200, 200, 200, 0.2);
  width: 300px;
  max-width: 100%;
  transition: transform 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.about-cards .card:nth-child(1) { animation-delay: 0.2s; }
.about-cards .card:nth-child(2) { animation-delay: 0.4s; }
.about-cards .card:nth-child(3) { animation-delay: 0.6s; }

/* About Responsive */
@media (max-width: 950px) {
  .about-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills {
  width: 100%;
  padding: 100px 10%;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.skills-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.8s ease forwards;
}

.skills-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  margin: 8px auto 0;
  background: var(--color-primary);
  border-radius: 2px;
}

.skills-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 750px;
  margin: 0 auto 50px;
  animation: fadeInUp 1s ease forwards;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.skill-name {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.skill-bar {
  width: 100%;
  height: 14px;
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  width: 0;
  height: 100%;
  border-radius: 8px;
  transition: width 1.2s ease;
  background: var(--color-primary);
}

.skill:hover .skill-fill {
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.6);
  transform: scaleY(1.1);
}

.skills-container .skill:nth-child(1) .skill-fill { animation-delay: 0.2s; }
.skills-container .skill:nth-child(2) .skill-fill { animation-delay: 0.4s; }
.skills-container .skill:nth-child(3) .skill-fill { animation-delay: 0.6s; }
.skills-container .skill:nth-child(4) .skill-fill { animation-delay: 0.8s; }
.skills-container .skill:nth-child(5) .skill-fill { animation-delay: 1s; }
.skills-container .skill:nth-child(6) .skill-fill { animation-delay: 1.2s; }

/* Skills Responsive */
@media (max-width: 950px) {
  .skills {
    padding: 80px 6%;
  }
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects {
  width: 100%;
  padding: 100px 6%;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  margin: 8px auto 0;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-description {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 750px;
  margin: 0 auto 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 0 auto;
  max-width: 1200px;
  justify-items: center;
}

.project-card {
  border: 2px solid rgba(200,200,200,0.2);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  width: 100%;
  max-width: 700px;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--color-primary-rgb), 0.5);
}

.project-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  flex: 1;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-info p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
}

/* Projects Responsive */
@media (max-width: 950px) {
  .project-image {
    height: 180px;
  }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  padding: 100px 5%;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
  position: relative;
}

.contact .section-title {
  color: var(--color-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-bg);
  padding: 20px 30px;
  border-radius: 18px;
  border: 2px solid rgba(var(--color-primary-rgb), 0.15);
  box-shadow: 0 0 35px rgba(var(--color-primary-rgb), 0.05);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.contact-form input,
.contact-form textarea {
  background: var(--color-surface);
  border: 2px solid rgba(200, 200, 200, 0.15);
  border-radius: 10px;
  color: var(--color-text);
  padding: 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

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

.send-btn {
  background: var(--color-primary);
  border: none;
  color: var(--color-bg);
  font-weight: 700;
  padding: 14px 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
}

.social-links {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 25px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.social-links a {
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  position: relative;
}

.social-links a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}

/* ========================================
   COLLABORATION SECTION
   ======================================== */
.collab {
  padding: 60px 3%;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.collab .section-title {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.collab .section-description {
  color: #cfcfcf;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.collab-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-bg);
  padding: 50px 40px;
  border-radius: 18px;
  border: 2px solid rgba(var(--color-primary-rgb), 0.15);
  box-shadow: 0 0 35px rgba(var(--color-primary-rgb), 0.05);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.tag-list label {
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.tag-list input {
  display: none;
}

.tag-list label:hover,
.tag-list input:checked+label {
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 600;
  border: none;
}

.collab-form input,
.collab-form textarea {
  background: var(--color-bg);
  border: 2px solid rgba(200, 200, 200, 0.2);
  border-radius: 10px;
  color: var(--color-text);
  padding: 16px 18px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.collab-form input:focus,
.collab-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}

.collab-btn {
  background: var(--color-primary);
  border: none;
  color: var(--color-bg);
  font-weight: 700;
  padding: 16px 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.4);
}

/* Collab Responsive */
@media (max-width: 600px) {
  .collab-form {
    padding: 35px 25px;
  }

  .tag-list {
    gap: 10px;
  }

  .tag-list label {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2.5rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

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

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: #d1d5db;
  font-size: 1.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }
}