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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #2d2d2d;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Lora", serif;
}

/* ====================== LOADER ====================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #ff6f61;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ====================== HEADER ====================== */
.header {
  background: #2d2d2d;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.logo h2 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.menu-toggle {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.desktop-nav .nav-list {
  display: flex;
  gap: 35px;
  list-style: none;
}

.desktop-nav a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff6f61;
}

/* ====================== HERO SECTION (UPDATED) ====================== */
.hero {
  padding: 80px 20px 100px;
  background: linear-gradient(135deg, #f8f7fd 0%, #f0efff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 550px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 42px;
  color: #4a3c8b;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 20px;
  color: #444;
  max-width: 480px;
  margin: 0 auto;
}

/* Profile Image - Clear & Bold */
.profile-img-container {
  position: relative;
  z-index: 2;
}

.profile-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #ffffff;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 12px rgba(74, 60, 139, 0.1);
  transition: all 0.4s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.2),
    0 0 0 15px rgba(74, 60, 139, 0.15);
}

/* ====================== ABOUT SECTION ====================== */
.about {
  padding: 70px 20px;
  text-align: center;
  background: #ffffff;
}

.about h2 {
  font-size: 32px;
  color: #4a3c8b;
  margin-bottom: 25px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  color: #666;
  margin-bottom: 18px;
  font-size: 17px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ff6f61, #ff8a80);
  color: #ffffff;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 111, 97, 0.3);
}

/* ====================== CALL TO ACTION ====================== */
.call-to-action {
  padding: 50px 20px;
  background: #f8f7fd;
  text-align: center;
}

.call-box {
  background: #ffffff;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.contact-info ion-icon {
  font-size: 38px;
  color: #ff6f61;
}

.contact-info a {
  color: #4a3c8b;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

/* ====================== SERVICES ====================== */
.services {
  padding: 70px 20px;
  text-align: center;
}

.services h2 {
  font-size: 32px;
  color: #4a3c8b;
  margin-bottom: 15px;
}

.services > p {
  max-width: 600px;
  margin: 0 auto 50px;
  color: #666;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 400px;
  margin: 0 auto;
}

.service-card {
  background: #f8f7fd;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

.service-card h3 {
  color: #4a3c8b;
  margin-bottom: 10px;
}

/* ====================== PORTFOLIO ====================== */
.portfolio {
  padding: 70px 20px;
  background: #f8f7fd;
  text-align: center;
}

.portfolio h2 {
  font-size: 32px;
  color: #4a3c8b;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 420px;
  margin: 0 auto;
}

.project-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-12px);
}

.project-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-card h3 {
  font-size: 21px;
  color: #4a3c8b;
  margin-bottom: 8px;
}

.project-card p {
  color: #555;
  margin-bottom: 18px;
  font-size: 15.5px;
}

.view-details-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff6f61, #ff8a80);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}

/* ====================== PROJECT MODAL ====================== */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.project-modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  max-width: 1100px;
  width: 100%;
  max-height: 95vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 42px;
  color: #333;
  cursor: pointer;
  background: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-image-container {
  background: #f8f7fd;
  padding: 30px;
  text-align: center;
}

.modal-image {
  max-width: 100%;
  max-height: 68vh;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modal-body {
  padding: 45px 35px;
}

.modal-body h3 {
  font-size: 29px;
  color: #4a3c8b;
  margin-bottom: 20px;
}

.modal-body p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.modal-links {
  margin-top: 35px;
}

.modal-links a {
  background: linear-gradient(135deg, #ff6f61, #ff8a80);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

/* ====================== FOOTER ====================== */
footer {
  background: #2d2d2d;
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
}

.footer-content p {
  margin-bottom: 10px;
}

.social-links {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-links a {
  color: #ff6f61;
  font-size: 32px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ffffff;
}

/* ====================== DESKTOP HERO (Image on Right) ====================== */
@media screen and (min-width: 992px) {
  .hero {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 80px;
    padding: 100px 60px 120px;
    align-items: center;
    min-height: 100vh;
  }

  .hero-content {
    max-width: 520px;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 52px;
  }

  .hero-content p {
    font-size: 22px;
    margin: 0;
  }

  .profile-img {
    width: 340px;
    height: 340px;
    border: 10px solid #ffffff;
  }
}

/* Extra Large Screens */
@media screen and (min-width: 1200px) {
  .profile-img {
    width: 380px;
    height: 380px;
  }
}
