:root {
  --bg: #0a1d2e;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 8%;
  box-shadow: 0 0 20px rgba(34,211,238,0.4);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

/* THEME SWITCHER */
.theme-switcher {
  display: flex;
  gap: 0.5rem;
}

.theme-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 12px;
  opacity: 0.8;
}

.theme-switcher button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.theme-switcher button:nth-child(1) { background: #22d3ee; }
.theme-switcher button:nth-child(2) { background: #a855f7; }
.theme-switcher button:nth-child(3) { background: #ef4444; }

/* HERO */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 3rem 8%;
}

.hero-text h4 {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text h1 span {
  color: var(--accent);
  
  text-shadow: 0 0 10px rgba(34,211,238,0.4);
  
}

.hero-text h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
   text-shadow: 0 0 20px rgba(34,211,238,0.4);
}

.hero-text p {
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  
}

.btn {
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px rgba(34,211,238,0.4);
}

.btn.outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(34,211,238,0.4);
}

/* SOCIALS */
.socials a {
  margin-right: 1rem;
  font-size: 1.3rem;
  color: var(--muted);
}

.socials a:hover {
  color: var(--accent);
}

/* IMAGE */
.hero-image img {
  width: 320px;
  border-radius: 16px;
  box-shadow: 0 0 40px var(--accent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image img {
    margin-top: 2rem;
  }
}

.page {
  padding: 4rem 8%;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.projects-grid {
 display: grid;
  grid-auto-flow: column;              
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;                    /* horizontal scroll */
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;       
}




.project-card {
   min-width: 320px;
  max-width: 320px;
  background: var(--card);
  padding: 10px;
  border-radius: 18px;
  scroll-snap-align: start;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(34,211,238,0.15);
}

.project-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(34,211,238,0.4);
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.projects-section {
  padding: 0px 20px;
}

.projects-section h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.scroll-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.projects-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 25px;
  scroll-snap-type: x mandatory;
}

.projects-scroll::-webkit-scrollbar {
  height: 8px;
}

.projects-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,#74ee22,var(--accent));
  border-radius: 10px;
}




.tech {
  margin-top: 1rem;
}

.tech span {
  display: inline-block;
  font-size: 0.75rem;
  background: #0f172a;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-right: 0.4rem;
  color: var(--accent);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 8%;
}

.contact-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--accent);
  margin-right: 0.5rem;
}

/* FORM */
.contact-form {
  background: var(--card);
  padding: 2rem;
  border-radius: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0f172a;
  border: none;
  padding: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text);
  border-radius: 6px;
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-form button {
  width: 100%;
  padding: 0.9rem;
  border: none;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(34,211,238,0.4);
}

.contact-form button:hover {
  opacity: 0.9;
}

/* MOBILE */
@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

/*about*/
/* ABOUT PAGE */

.about-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 4rem 8%;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-card {
  background: var(--card);
  padding: 1.8rem;
  border-radius: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(34,211,238,0.15);
}

.about-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.about-card h3 {
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
  }
}

/* pop up*/
.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;
  z-index: 9999;
}

.success-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: #111827;
  padding: 35px;
  border-radius: 18px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  transform: scale(0.85);
  animation: popup 0.4s ease forwards;
}

@keyframes popup {
  to {
    transform: scale(1);
  }
}

.popup-box i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.popup-box h3 {
  margin-bottom: 10px;
}

.popup-box p {
  font-size: 0.95rem;
  color: #9ca3af;
}

.popup-box button {
  margin-top: 20px;
  background: var(--accent);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}




