/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a img#logo {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

nav a img#logo:hover {
  transform: scale(1.05);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.hamburger .line {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 45px;
  align-items: center;
}

.nav-links li {
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 5px;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #fff9c4);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links li a:hover {
  color: #ffd700;
}

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

#language-selector {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

#language-selector:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffd700;
  color: #ffd700;
}

#language-selector option {
  background: #1e293b;
  color: white;
}

/* ===== PROJECT PAGES WITH HERO BANNER ===== */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 140px 40px 80px;
  text-align: center;
  color: white;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.projects-page-section {
  padding: 80px 40px;
  background: #f9fafb;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 15px;
  color: #1a1a1a;
  font-weight: 900;
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.project-info .project-type {
  color: #764ba2;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.project-desc {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-badge {
  background: #f0f0f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.project-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.project-link {
  color: #764ba2;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-link:hover {
  color: #dc2626;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 35px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: #ffd700;
  color: #1e293b;
}

.project-card.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px dashed #ccc;
  opacity: 0.7;
}

.project-card.coming-soon .project-info {
  text-align: center;
}

.project-card.coming-soon i {
  font-size: 3rem;
  color: #764ba2;
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
footer {
  background: #1e293b;
  color: white;
  padding: 60px 40px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #ffd700;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ffd700;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-item i {
  font-size: 1.2rem;
  color: #ffd700;
  width: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: #ffd700;
  color: #1e293b;
  transform: translateY(-5px);
  border-color: #ffd700;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.quick-links a i {
  font-size: 0.8rem;
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.feature-badge {
  display: inline-block;
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  nav {
    padding: 15px 25px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 30px;
    gap: 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links li a {
    font-size: 1.2rem;
    padding: 12px 0;
    display: block;
  }
  
  #language-selector {
    margin-top: 20px;
  }
  
  .hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  
  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .page-hero h1 {
    font-size: 2.5rem;
  }
  
  footer {
    padding: 40px 25px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  nav a img#logo {
    width: 45px;
    height: 45px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
}