/* ======================
   GENERAL STYLES
====================== */
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #f1f5f9;
}
.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  border: 3px solid #38bdf8;
}

a {
  text-decoration: none;
  color: #38bdf8;
  transition: color 0.3s ease;
}

a:hover {
  color: #0ea5e9;
}

.btn {
  display: inline-block;
  background: #38bdf8;
  color: #0f172a;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #0ea5e9;
  color: #fff;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ======================
   HEADER
====================== */
/* Header base */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #222;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* Desktop nav */
header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

header nav a:hover,
header nav a.active {
  background: #38bdf8;
  color: #fff;
}

/* Hamburger icon hidden on desktop */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  header nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: #333;
    width: 200px;
    flex-direction: column;
    text-align: right;
    padding: 20px;
    display: none;
    border-radius: 0 0 0 10px;
    box-shadow: -2px 4px 8px rgba(0, 0, 0, 0.2);
  }

  header nav a {
    display: block;
    padding: 12px;
    margin: 5px 0;
  }

  .menu-toggle {
    display: block;
  }

  header nav.show {
    display: flex;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo span {
  color: #38bdf8;
}

nav a {
  margin: 0 1rem;
  font-weight: 600;
}

.active {
  color: #38bdf8;
}

/* Hero layout */
section.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 110vh; /* Full screen height */
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 2rem;
}

.hero-content {
  margin-top: auto;
  max-width: 800px;
  height: fit-content;
}

/* Tagline */
.tagline {
  font-size: 1.2rem;
  margin: 1rem auto 2rem;
  color: #cbd5e1;
  max-width: 650px;
  line-height: 1.6;
}

/* Quick Info */
.quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.info-card {
  background: #1e293b;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: #e2e8f0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.info-card i {
  font-size: 1.6rem;
  color: #38bdf8;
}

.info-card:hover {
  transform: translateY(-6px);
  background: #0f172a;
}

/* Buttons (Base Style) */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-width: 160px; /* ensures same width look */
  text-align: center;
}

/* Solid Button */
.btn {
  background: #38bdf8;
  color: #0f172a;
  border: 2px solid #38bdf8;
}

.btn:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: #38bdf8;
  border: 2px solid #38bdf8;
}

.btn-outline:hover {
  background: #38bdf8;
  color: #0f172a;
}

.hero-container {
  display: flex;
  flex-direction: column; /* stack vertically */
}

.hero-buttons {
  order: 1; /* buttons first */
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ======================
   SECTIONS (Global)
====================== */
section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.section-title {
  order: 0; /* by default stays inside hero */
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Mobile: move section-title BELOW hero */
@media (max-width: 768px) {
  .section-title {
    order: 99; /* push to the bottom */
  }
}

.section-subtitle {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ======================
   SKILLS GRID
====================== */
.skills .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

/* ======================
   PROJECTS PAGE
====================== */
.projects {
  padding: 80px 20px;
  background: #0a0f1c;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid #38bdf8;
}

.project-info {
  padding: 20px;
  text-align: left;
}

.project-info h2 {
  font-size: 1.3rem;
  color: #38bdf8;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 15px;
}

/* ======================
   ABOUT PAGE
====================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.about-text p {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ======================
   CONTACT PAGE
====================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form {
  background: #1e293b;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.contact-form label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #0f172a;
  color: #e2e8f0;
}

.contact-form button {
  width: 100%;
}

.contact-info {
  background: #111827;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: #38bdf8;
}

.contact-info p {
  margin: 0.5rem 0;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================
   FOOTER
====================== */
footer {
  background: #1e293b;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #94a3b8;
}
/* ======================
   HERO IMAGE & CV BUTTON
====================== */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 3px solid #38bdf8;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.hero-image img:hover {
  transform: scale(1.05);
}

.cv-btn {
  margin-top: 1rem;
  background: #0077ff;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cv-btn:hover {
  background: #005ec2;
  color: #fff;
}

/* ======================
   IMAGE MODAL (Fullscreen View)
====================== */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #38bdf8;
}
/* Skills Section with Icons */
#skills .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skills .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#skills h3 i {
  color: #38bdf8;
  margin-right: 8px;
}

#skills ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #334155;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

#skills ul li i {
  color: #38bdf8;
  width: 20px;
  text-align: center;
}
.project-detail {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.project-banner {
  width: 100%;
  max-width: 450px; /* smaller fixed limit */
  height: auto; /* keep aspect ratio */
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.screenshot-grid img {
  width: 100%;
  height: auto; /* keep original aspect ratio */
  max-height: 400px; /* optional limit so they don’t get too tall */
  object-fit: contain; /* show the full image without cropping */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #f9f9f9; /* adds a clean background for images with transparent edges */
  padding: 5px; /* small padding for better spacing */
}

.project-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center; /* centers horizontally */
}
