* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    
    background: linear-gradient(to bottom, #f0f8ff, #e6e6fa);
}

/* ===== NAVBAR BASE ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


#about{
    background-color: rgb(200, 208, 218);
    color: rgb(12, 12, 9);
    text-align: center;
    padding: 8rem 4rem;
}

#services{
    background-color: rgb(200, 208, 218);
    color: rgb(9, 9, 8);
    text-align: center;
    padding: 8rem 4rem;
}

#projects{
    background-color: rgb(200, 208, 218);
    color: rgb(13, 14, 12);
    text-align: center;
    padding: 8rem 4rem;

}

#contact{
    background-color: rgb(200, 208, 218);
    color: rgb(11, 11, 10);
    text-align: center;
    padding: 8rem 4rem;

}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  transition: color 0.3s ease;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ===== MENU ===== */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 1.1rem;
  color: #333;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect */
.nav-link:hover {
  transform: translateY(-3px);
  color: dodgerblue;
}

/* Underline animation */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: dodgerblue;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* ===== SCROLLED STATE ===== */
.navbar.scrolled {
  background: linear-gradient(90deg, #1e90ff, #6a5acd);
  padding: 0.7rem 0;
}

.navbar.scrolled .logo-text,
.navbar.scrolled .nav-link {
  color: white;
}

.navbar.scrolled .nav-link::after {
  background: white;
}



/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.navbar.scrolled .hamburger span {
  background: white;
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .navbar.scrolled .nav-menu {
    background: linear-gradient(180deg, #1e90ff, #6a5acd);
  }

  .navbar.scrolled .nav-menu .nav-link {
    color: white;
  }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
    padding: 0 2rem;
    background-color: rgb(200, 208, 218);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
}

.hero-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
}

/* BUTTONS */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background: dodgerblue;
    color: white;
}

.btn.secondary {
    border: 2px solid dodgerblue;
    color: dodgerblue;
}

/* 2D BUTTON ANIMATION */
.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.person {
    width: 350px;
    animation: float3d 4s ease-in-out infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3));
}

/* 3D FLOAT ANIMATION */
@keyframes float3d {
    0% {
        transform: translateY(0) rotateY(-10deg);
    }
    50% {
        transform: translateY(-25px) rotateY(10deg);
    }
    100% {
        transform: translateY(0) rotateY(-10deg);
    }

}
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .person {
        width: 280px;
    }
}

/* ================= CONTACT SECTION ================= */

.section {
  padding: 5rem 2rem;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.underline {
  width: 80px;
  height: 4px;
  background: dodgerblue;
  margin: 0.8rem auto 1.2rem;
  border-radius: 5px;
}

.contact-container {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-info {
  display: contents;
}

.contact-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-item i {
  font-size: 2rem;
  color: dodgerblue;
}

.contact-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.contact-item p {
  color: #555;
  font-size: 1rem;
}

/* ================= ANIMATION CLASSES ================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICES SECTION ===== */
.section {
  padding: 100px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.section-header p {
  color: #555;
  font-size: 1.1rem;
}

/* underline */
.underline {
  width: 70px;
  height: 4px;
  background: #1e90ff;
  margin: 10px auto 20px;
  border-radius: 10px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* ===== SERVICE CARD ===== */
.service-card {
  background: #fff;
  padding: 35px 25px;
  text-align: center;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* hover animation */
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* icon */
.service-icon {
  font-size: 45px;
  color: #1e90ff;
  margin-bottom: 20px;
  transition: 0.4s;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== CLICK COLOR ANIMATION ===== */
.service-card.active {
  background: linear-gradient(135deg, #1e90ff, #6a5acd);
  color: #fff;
}

.service-card.active p {
  color: #f1f1f1;
}

.service-card.active .service-icon {
  color: #fff;
  transform: rotate(360deg) scale(1.2);
}

/* ===== PROJECTS SECTION ===== */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Project Card */
.projects-item {
  position: relative;
  height: 260px;
  background: #f5f5f5;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover lift */
.projects-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.2);
}

/* Project Icon Area */
.projects-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #1e90ff;
  transition: 0.4s ease;
}

/* Overlay */
.projects-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,144,255,0.95), rgba(106,90,205,0.95));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: 0.4s ease;
  text-align: center;
  padding: 20px;
}

/* Hover Effects */
.projects-item:hover .projects-overlay {
  opacity: 1;
  transform: scale(1);
}

.projects-item:hover .projects-img {
  transform: scale(1.2);
  opacity: 0.2;
}

.projects-overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.projects-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

.projects-item.active {
  outline: 3px solid #1e90ff;
}

/* ===== ABOUT SECTION ===== */

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

/* About Text */
.about-text p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.7;
}

/* ===== SKILLS ===== */
.skills {
  margin-top: 30px;
}

.skill-bar {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e6e6e6;
  border-radius: 20px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1e90ff, #6a5acd);
  border-radius: 20px;
  animation: progressFill 2s ease forwards;
}

/* Progress animation */
@keyframes progressFill {
  from {
    width: 0;
  }
}

/* ===== STATS ===== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.stat-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  animation: fadeUp 1.2s ease both;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stat-card i {
  font-size: 35px;
  color: #1e90ff;
  margin-bottom: 10px;
}

.stat-card h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.stat-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== FADE ANIMATION ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
}

/* ================= MOBILE RESPONSIVENESS ================= */

@media (max-width: 768px) {

  /* Navbar */
  .nav-container {
    padding: 0 1rem;
  }

  .logo h3 {
    font-size: 1.2rem;
  }

  .logo img {
    width: 32px;
    height: 32px;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
    height: auto;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .person {
    width: 240px;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-container {
    grid-template-columns: 1fr;
  }

}
