/* style.css */

/* Nav Bar Styling */
/* General Reset and Font */
body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: #201e30;
  color: #fff;
}

/* --- NAVBAR WITH ANIMATIONS --- */
.navbar {
  background-color: #201e30;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  animation: slideDown 0.6s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  animation: fadeIn 1s ease-in-out forwards;
}

.logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.95);
  animation: logoPop 1s ease forwards;
  animation-delay: 0.4s;
  font-family: 'Outfit', sans-serif;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  opacity: 0;
  transform: translateY(-10px);
  animation: slideInUp 0.5s ease forwards;
}

.nav-links li:nth-child(1) {
  animation-delay: 0.5s;
}

.nav-links li:nth-child(2) {
  animation-delay: 0.6s;
}

.nav-links li:nth-child(3) {
  animation-delay: 0.7s;
}

.nav-links a {
  text-decoration: none;
  color: #ffd0a7;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #fbfcca;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fbfcca;
  text-shadow: 0 0 10px #ffd0a7aa;
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- NAVBAR ANIMATIONS --- */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Adjust hero top padding to accommodate fixed navbar */
.hero {
  padding-top: 70px;
}


/* --- DROPDOWN MENU --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #2a283b;
  padding: 0.5rem 0;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 160px;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #ffd0a7;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #3a374f;
  color: #fbfcca;
}


/* Hero Section */
.hero {
  background: linear-gradient(to right, #1e1c2c, #2e2c3c);
  padding: 60px 0 100px;
  /* reduced top padding due to fixed navbar */
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0;
}

.hero p {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #ffd0a7;
  color: #201e30;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.btn:hover {
  background-color: #fbfcca;
}

/* Section Styling */
section {
  padding: 60px 20px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* About */
.about p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Portfolio Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Experience Section */
.experience-item {
  margin-bottom: 2rem;
}

.experience-item h3 {
  margin-bottom: 0.5rem;
}

.experience-item p {
  line-height: 1.6;
}

/* Skills */
.skills ul {
  list-style: none;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  font-weight: 600;
}

.skills li {
  background-color: #201e30;
  padding: 0.8rem;
  border-radius: 6px;
  text-align: center;
  color: #fffcfc;
}

/* Contact */
.contact p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  background-color: #1b1a29;
  font-size: 0.9rem;
  color: #aaa;
}


html {
  scroll-behavior: smooth;
}

:root {
  --primary: #0e074b;
  --dark: #1f1f1f;
  --light: #ffffff;
  /* white background */
  --text: #222222;
  /* dark text */
  --accent: var(--primary);
  --font: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 40px 0;
}

header.hero {
  padding-top: 130px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}



.hero h1,
.hero p,
.hero .btn {
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  animation-delay: 0.2s;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 20px;
  animation-delay: 0.5s;
}

.hero .btn {
  animation-delay: 0.8s;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--light);
  color: var(--primary);
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #0e074b;
  color: var(--light);
  box-shadow: 0 0 8px #1d1a62;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeScaleIn 0.8s forwards;
  animation-delay: 1.2s;
}

.tab {
  padding: 10px 20px;
  background: var(--light);
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tab:hover,
.tab.active {
  background: var(--primary);
  color: var(--light);
}

.portfolio-items,
.experience-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.contact {
  text-align: center;
}

footer {
  text-align: center;
  padding: 20px;
  background: var(--dark);
  color: var(--light);
  font-size: 0.9rem;
}


header.hero>.container {
  position: relative;
  z-index: 1;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: #2a283b;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  display: block;
}

.project-card h4 {
  color: #ffd0a7;
  padding: 0.8rem 1rem;
  margin: 0;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.project-detail {
  padding: 80px 20px;
  background-color: #201e30;
}

.project-detail h2 {
  color: #ffd0a7;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-detail p,
.project-detail ul {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
}

.project-banner {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 10px;
}


@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .tabs {
    flex-direction: column;
  }
}