/* ==================== FILE 2: style.css ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 10% 20%, #0a0f1e, #020408);
  font-family: 'Inter', sans-serif;
  color: #eef2ff;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 9999;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111827; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 10px; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  position: relative;
  z-index: 2;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem 1.8rem;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(16px);
  border-radius: 80px;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #FFFFFF, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
  cursor: pointer;
}

.logo span {
  background: linear-gradient(135deg, #facc15, #ff8c00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links a {
  color: #cbd5e6;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: 0.2s;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #facc15);
  transition: 0.3s;
}

.nav-links a:hover:after { width: 100%; }
.nav-links a:hover { color: white; }

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 5rem;
  padding: 1rem 0;
}

.hero-content { flex: 1; }

.hero-badge {
  background: rgba(59,130,246,0.25);
  backdrop-filter: blur(8px);
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(96,165,250,0.6);
  margin-bottom: 1.2rem;
  animation: softPulse 3s infinite;
}

@keyframes softPulse {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.2);}
  70% { box-shadow: 0 0 0 8px rgba(59,130,246,0);}
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0);}
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  background: linear-gradient(to right, #ffffff, #a5f3fc, #b3d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: #cbd5f0;
  margin: 1.5rem 0 2rem;
  max-width: 550px;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary, .btn-outline {
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(105deg, #3b82f6, #8b5cf6);
  color: white;
  box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(59,130,246,0.6);
}

.btn-outline {
  border: 1.5px solid #8b5cf6;
  color: #e0e7ff;
  background: rgba(139,92,246,0.08);
}

.btn-outline:hover {
  background: rgba(139,92,246,0.2);
  border-color: #c084fc;
  transform: translateY(-2px);
}

.hero-stats {
  flex: 0.8;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 1.8rem;
  border: 1px solid rgba(139,92,246,0.4);
  text-align: center;
}

.stat-number {
  background: linear-gradient(135deg,#facc15,#ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.section-header { margin-bottom: 2rem; }

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70%;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #facc15, #3b82f6);
  border-radius: 4px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem;
}

.project-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 1.8rem;
  transition: all 0.35s ease;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 2px;
  background: radial-gradient(circle at 30% 20%, #3b82f6, #facc15, #c084fc);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s;
}

.project-card:hover::before { opacity: 1; }
.project-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 30px 40px -15px rgba(59,130,246,0.5);
}

.card-icon { font-size: 2.7rem; color: #a78bfa; margin-bottom: 1rem; }
.project-card h3 { font-size: 1.65rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-card p { color: #cbd5f0; font-size: 0.9rem; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.tech-tags span {
  background: rgba(139,92,246,0.25);
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 0.5px solid rgba(167,139,250,0.5);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  color: #facc15;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.project-link:hover {
  color: #ffb347;
  gap: 10px;
}

.detail-page {
  display: none;
  background: rgba(6, 10, 22, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 2rem;
  border: 1px solid rgba(139,92,246,0.5);
  animation: fadeScale 0.4s ease;
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.97);}
  to { opacity: 1; transform: scale(1);}
}

.detail-page.active { display: block; }
.main-page.hide { display: none; }

.back-button {
  background: rgba(139,92,246,0.2);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: 0.2s;
}

.back-button:hover {
  background: rgba(139,92,246,0.5);
  transform: translateX(-4px);
}

.contact-section {
  margin: 5rem 0 2rem;
  background: linear-gradient(135deg, rgba(15,25,45,0.8), rgba(10,15,35,0.9));
  border-radius: 2rem;
  padding: 2.5rem;
  border: 1px solid rgba(139,92,246,0.4);
  backdrop-filter: blur(4px);
}

.contact-flex { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 1.5rem; }
.contact-info { flex: 1.2; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }

.contact-card {
  background: rgba(255,255,255,0.03);
  border-radius: 1.2rem;
  padding: 1rem 1.2rem;
  transition: all 0.25s;
  border: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-card:hover {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.6);
  transform: translateY(-3px);
}

.contact-icon { font-size: 1.8rem; color: #a78bfa; min-width: 48px; text-align: center; }
.contact-details h4 { font-size: 0.9rem; font-weight: 500; color: #94a3b8; margin-bottom: 0.2rem; }
.contact-details p, .contact-details a { font-size: 1rem; font-weight: 500; color: #f1f5f9; text-decoration: none; }
.contact-details a:hover { color: #c084fc; }

.contact-form {
  flex: 1;
  background: rgba(0,0,0,0.35);
  border-radius: 1.5rem;
  padding: 1.8rem;
  border: 1px solid rgba(139,92,246,0.3);
}

.input-group { margin-bottom: 1rem; }
.input-group input, .input-group textarea {
  width: 100%;
  background: #0f172ad9;
  border: 1px solid #334155;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.input-group input:focus, .input-group textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.3);
  outline: none;
}

.submit-btn {
  background: linear-gradient(95deg, #3b82f6, #8b5cf6);
  border: none;
  padding: 0.85rem;
  border-radius: 1.2rem;
  color: white;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: 0.2s;
}

.submit-btn:hover {
  transform: scale(1.01);
  box-shadow: 0 0 15px rgba(139,92,246,0.5);
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139,92,246,0.3);
  font-size: 0.85rem;
  color: #7e8aa2;
}

@media (max-width: 780px) {
  .container { padding: 1rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .navbar { border-radius: 40px; padding: 0.8rem 1.2rem; }
  .nav-links a { margin-left: 1rem; font-size: 0.9rem; }
  .contact-info { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
}
