/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(to bottom right, #f0f4ff, #e3e7ff);
  color: #0a0a0a;
  line-height: 1.6;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 20px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

.logo {
  font-weight: 800;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #0a0a0a;
  font-weight: 600;
}

.btn {
  padding: 10px 20px;
  background: #3366ff;
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #254edb;
}

/* Hamburger icon - hidden by default */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 10px;
}

/* Layout containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.hero-text {
  max-width: 600px;
  padding-left: 20px;
}

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

.hero-text p {
  margin-bottom: 20px;
}

.hero img {
  max-width: 400px;
}

/* Sections */
section {
  padding: 60px 0;
}

.projects,
.resources {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 20px;
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  max-width: 100px;
  margin-bottom: 15px;
}

.about,
.email,
.hosting {
  margin-top: 40px;
  text-align: center;
}

.about-box,
.hosting-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  max-width: 700px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.email-bubble {
  background: #ffffff;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);
}

.email-bubble h2 {
  text-align: center;
  margin-bottom: 10px;
}

.email-bubble p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #444;
}

.email-bubble form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1f2937;
}

.email-bubble form input,
.email-bubble form textarea,
.email-bubble form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 1rem;
}

.email-bubble form input:focus,
.email-bubble form textarea:focus,
.email-bubble form select:focus {
  outline: none;
  border-color: #3366ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.1);
}

.email-bubble form .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #3366ff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.email-bubble form .btn:hover {
  background: #254edb;
}

.resources .card p {
  margin-bottom: 20px;
}

/* ---------------------
   Responsive (Mobile)
---------------------- */
@media (max-width: 767px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
  }

  .hamburger {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
  }

  nav {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 998;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 10px 20px;
  }

  .btn {
    margin: 10px 20px;
    width: calc(100% - 40px);
    text-align: center;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .hero-text {
    padding-left: 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero img {
    max-width: 100%;
    margin-top: 20px;
  }

  .projects,
  .resources {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 90%;
  }

  .about-box,
  .hosting-box,
  .email-bubble {
    padding: 20px;
    margin: 0 10px;
  }

  form input,
  form textarea,
  form select {
    font-size: 1rem;
  }
}

.webhosting .card img {
  width: 120px !important;
  height: auto;
  max-width: none !important;
  display: block;
  margin: 0 auto 15px;
}

.btn-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.modal {
  display: none; /* hidden by default */
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}



.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.sample-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.sample-card {
  cursor: pointer;
  width: 200px;
  text-align: center;
}

.sample-card img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sample-card img:hover {
  transform: scale(1.05);
}
