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

html, body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
}

/* Section spacing */
section {
  padding: 80px 0;
}

h2.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

p.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

/* -----------------------------
   Navbar
----------------------------- */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  transition: all 0.3s ease;
  padding: 20px 40px;
}

.header.transparent {
  background: transparent;
}

.header.scrolled {
  background: #000;
}

.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  background: #000;
  border-radius: 50%;
  padding: 10px 15px;
}

.navmenu ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navmenu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.header.scrolled .navmenu a {
  color: #fff;
}

.navmenu a:hover {
  color: #00c3ff;
}

/* -----------------------------
   Hero Section
----------------------------- */
.hero {
  position: relative;
  height: 100vh;
  background: url('../img/hero-img.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 400;
}

/* Floating gradient text chips */
.floating-chips {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 80%;
}

.chip {
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(45deg, #00c3ff, #7d2ae8);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: float 6s ease-in-out infinite;
}

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

/* -----------------------------
   About Section
----------------------------- */
.about {
  background: #f9f9f9;
}

.about img {
  border-radius: 10px;
  max-width: 90%;
}

.about h3 {
  font-family: "Raleway", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* -----------------------------
   Skills Section (Carousel)
----------------------------- */
.skills {
  background: #fff;
}

.skills-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px;
}

.skills-carousel::-webkit-scrollbar {
  display: none;
}

.skill-card {
  flex: 0 0 calc(33.333% - 20px);
  background: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
}

.skill-card img {
  height: 60px;
  margin-bottom: 15px;
}

.skill-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* -----------------------------
   Work Samples
----------------------------- */
.portfolio {
  background: #f9f9f9;
}

.portfolio .portfolio-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  position: relative;
}

.portfolio .portfolio-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portfolio .portfolio-item:hover {
  transform: translateY(-8px);
}

.portfolio-main-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-main-link:hover {
  text-decoration: none;
  color: inherit;
}

.portfolio-info {
  padding: 15px;
}

.portfolio-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.95rem;
  color: #555;
}

.details-link {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.details-link:hover {
  background: rgba(255, 255, 255, 1);
  color: #007bff;
  text-decoration: none;
  transform: scale(1.1);
}

/* -----------------------------
   Contact
----------------------------- */
.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact .btn {
  display: inline-block;
  margin: 10px;
  padding: 12px 25px;
  border-radius: 30px;
  background: linear-gradient(45deg, #00c3ff, #7d2ae8);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.contact .btn:hover {
  background: linear-gradient(45deg, #7d2ae8, #00c3ff);
}

/* -----------------------------
   Footer
----------------------------- */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.footer .social-links a {
  margin: 0 10px;
  color: #fff;
  font-size: 1.2rem;
}

.footer .social-links a:hover {
  color: #00c3ff;
}

/* -----------------------------
   Project Detail Pages
----------------------------- */
.project-detail {
  background: #fff;
  min-height: 100vh;
}

.project-detail .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-detail .back-nav {
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 40px;
}

.project-detail .back-nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.project-detail .back-nav a:hover {
  color: #333;
}

.project-detail .hero-section {
  text-align: center;
  margin-bottom: 60px;
}

.project-detail .hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.project-detail .hero-section .subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.project-detail .hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.project-detail .content-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

.project-detail .content-section:last-child {
  border-bottom: none;
}

.project-detail .content-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.project-detail .content-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

.project-detail .content-section ul {
  list-style: none;
  padding: 0;
}

.project-detail .content-section ul li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.project-detail .content-section ul li:before {
  content: "•";
  color: #007bff;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.project-detail .gallery {
  margin: 40px 0;
}

.project-detail .gallery .row {
  margin: 0 -10px;
}

.project-detail .gallery .col-md-6,
.project-detail .gallery .col-md-4 {
  padding: 0 10px;
  margin-bottom: 20px;
}

.project-detail .gallery-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-detail .gallery-image:hover {
  transform: scale(1.02);
}

.project-detail .gallery-caption {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.project-detail .primary-action {
  text-align: center;
  margin: 50px 0;
}

.project-detail .btn-primary-action {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.project-detail .btn-primary-action:hover {
  background: linear-gradient(45deg, #0056b3, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.4);
  color: white;
  text-decoration: none;
}

/* Responsive design for project details */
@media (max-width: 768px) {
  .project-detail .hero-section h1 {
    font-size: 2rem;
  }
  
  .project-detail .hero-section .subtitle {
    font-size: 1rem;
  }
  
  .project-detail .content-section h2 {
    font-size: 1.5rem;
  }
  
  .project-detail .content-section p,
  .project-detail .content-section ul li {
    font-size: 1rem;
  }
}

/* --- Tech Stack (About) --- */
.about .tech-stack { 
  margin-top: 2.25rem;
}

.about .section-subtitle {
  font-size: clamp(1.1rem, 1.2vw + .6rem, 1.35rem);
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 1rem;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-stack-list .chip {
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.04);
  color: #111;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  animation: none;
  box-shadow: none;
}

.tech-stack-list .chip:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.18);
}
