/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================
   2. NAVIGATION
   ========================================== */

.navbar {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #3498db !important;
  text-decoration: none;
}

.nav-link {
  color: #2c3e50 !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #3498db !important;
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: #3498db;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* ==========================================
   3. HERO SECTION
   ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="%233498db" opacity="0.3"/><circle cx="800" cy="300" r="2" fill="%233498db" opacity="0.3"/><circle cx="400" cy="600" r="2" fill="%233498db" opacity="0.3"/><circle cx="700" cy="800" r="2" fill="%233498db" opacity="0.3"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #3498db;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 2.5rem;
  animation: slideInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  animation: slideInUp 1s ease-out 0.6s both;
}

.hero-image {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(52, 152, 219, 0.3);
  animation: slideInUp 1s ease-out 0.3s both;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ==========================================
   4. BUTTONS & LINKS
   ========================================== */

.btn-primary-custom {
  background: #3498db;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  color: white;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  color: white;
}

.btn-outline-custom {
  border: 2px solid #3498db;
  color: #3498db;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  display: inline-block;
}

.btn-outline-custom:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
}

.social-links {
  margin-top: 2rem;
  animation: slideInUp 1s ease-out 0.8s both;
}

.social-link {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  background: white;
  color: #3498db;
  margin: 0 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
  color: #3498db;
}

/* ==========================================
   5. SECTIONS LAYOUT
   ========================================== */

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: #2c3e50;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #3498db;
  border-radius: 2px;
}

/* ==========================================
   6. ABOUT SECTION
   ========================================== */

.about {
  background: white;
}

.about .row {
  display: flex;
  align-items: stretch;
}

.about .col-lg-6 {
  display: flex;
}

.about-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.status-badge {
  color: #27ae60;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ==========================================
   7. SKILLS SECTION
   ========================================== */

.skills {
  background: #f8f9fa;
}

.skill-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-item:hover {
  background: #e9ecef;
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.skill-progress {
  flex: 1;
}

.progress-custom {
  height: 8px;
  border-radius: 10px;
  background: #e9ecef;
  overflow: hidden;
}

.progress-bar-custom {
  height: 100%;
  background: #3498db;
  border-radius: 10px;
  transition: width 2s ease-in-out;
}

/* ==========================================
   8. PORTFOLIO SECTION - CAROUSEL
   ========================================== */

.portfolio {
  background: white;
}

.portfolio-carousel-container {
  position: relative;
  margin-top: 3rem;
  padding: 0 80px;
  background: white;
}

.portfolio-carousel {
  overflow-x: hidden;
  overflow-y: visible;
  background: white;
}

.portfolio-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 300%; /* 3 slides × 100% */
  padding: 15px 0;
  background: white;
}

.portfolio-slide {
  width: 33.333%;
  flex-shrink: 0;
  display: flex;
  gap: 2rem;
  padding: 8px 1rem 0 1rem;
}

.portfolio-card {
  flex: 1;
  min-width: 0;
}

.portfolio-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: solid 1px #e9ecef;
  transition: all 0.3s ease;
  height: 100%;
}

.portfolio-item:hover {
  transform: translateY(-5px) scale(1.01);
}

.portfolio-image {
  height: 200px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #3498db;
  border-bottom: 1px solid #f8f9fa;
}

.portfolio-content {
  padding: 1.5rem;
  background: white;
}

.portfolio-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.portfolio-description {
  color: #7f8c8d;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.portfolio-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  color: #2980b9;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #3498db;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: #2980b9;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.carousel-prev {
  left: 20px;
}
.carousel-next {
  right: 20px;
}

/* Carousel Dots */
.carousel-dots {
  text-align: center;
  margin-top: 2rem;
  background: white;
  padding: 1rem 0;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 8px;
  background-color: #bdc3c7;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #3498db;
  transform: scale(1.2);
}

/* ==========================================
   9. MODALS
   ========================================== */

.modal-project {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-project-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-project-header {
  background: #3498db;
  color: white;
  padding: 2rem;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.modal-project-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.modal-project-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-project-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #3498db #f1f1f1;
}

.modal-project-body::-webkit-scrollbar {
  width: 8px;
}

.modal-project-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-project-body::-webkit-scrollbar-thumb {
  background: #3498db;
  border-radius: 4px;
}

.modal-project-body::-webkit-scrollbar-thumb:hover {
  background: #2980b9;
}

.project-tech-icons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tech-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tech-icon img {
  width: 40px;
  height: 40px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.project-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-objectives {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 15px;
  margin: 1.5rem 0;
}

.project-objectives ul {
  margin: 0;
  padding-left: 1.5rem;
}

.project-objectives li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ==========================================
   10. LIGHTBOX
   ========================================== */

.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   11. FOOTER
   ========================================== */

.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* ==========================================
   12. ANIMATIONS
   ========================================== */

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

@keyframes slideInUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   13. RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1200px) {
  .portfolio-carousel-container {
    padding: 0 60px;
  }
}

@media (max-width: 992px) {
  .portfolio-slide {
    flex-direction: column;
    gap: 1.5rem;
  }

  .portfolio-carousel-container {
    padding: 0 50px;
  }

  .carousel-prev {
    left: 10px;
  }
  .carousel-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }

  .portfolio-slide {
    flex-direction: column;
    gap: 1rem;
  }

  .portfolio-carousel-container {
    padding: 0 40px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-prev {
    left: 5px;
  }
  .carousel-next {
    right: 5px;
  }

  .dot {
    height: 10px;
    width: 10px;
    margin: 0 6px;
  }

  .modal-project-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-project-header {
    padding: 1.5rem;
  }

  .modal-project-body {
    padding: 1.5rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .portfolio-carousel-container {
    padding: 0 30px;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}
