/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:  ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #2a003f;
    background-color: white;
}
html {
  scroll-padding-top: 70px; /* adjust based on your header height */
}

/* Header */
/* Base Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1000;
}

/* Logo */
.logo img {
  height: 50px;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #7e3f98;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0daaf1;
}

/* Hamburger Icon (Mobile) */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header {
    padding: 15px 30px;
  }

  nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 30px;
    background: white;
    width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  nav.show {
    display: block;
  }

  .hamburger {
    display: block;
  }
}

/* Hero Section */
#hero {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: 60px;
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    font-size: 48px;
    color: #7e3f98;
    line-height: 1;
    font-weight: 900;
}

.hero-text h1 span {
    display: block;
    margin-top: 10px;
}

.hero-text h2 {
    margin: 20px 0;
    font-size: 20px;
    color: #000;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.hero-image {
    width: 300px;            
    height: 300px;
    margin-left: 30vh;
    border-radius: 50%;       
    overflow: hidden;        
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img {
    width: 90%;               
    /* height: 100%; */
    object-fit: cover;        
}
.hero-image img {
    width: 90%;               
    /* height: 100%; */
    object-fit: cover;        
}
@media (max-width: 1024px) {
    #hero {
        padding: 50px 30px;
    }

    .hero-text {
        width: 50%;
    }

    .hero-image {
        margin: 40px auto 0;
        width: 250px;
        height: 250px;
        border-radius: 50%;
    }

    .hero-text h1 {
        font-size: 6vh;
    }

    .hero-text h2 {
        font-size: 4vh;
    }

    .hero-text p {
        font-size: 3vh;
    }
}

@media (max-width: 600px) {
    #hero {
      text-align: center;
      flex-direction: column;
    }
    .hero-text {
      text-align: left;
      margin-left: -15vh;
      max-width: 100%;
    }

    .hero-text h1 {
        font-size: 4vh;
    }

    .hero-text h2 {
        font-size: 3.5vh;
        width: 200px;
    }

    .hero-text p {
        font-size: 2.5vh;
        width: 200px;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }
}
.storytelling {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
}

.storytelling h2 {
    font-size: 32px;
    font-weight: 800;
    color: #7e3f98; /* Purple */
    margin-bottom: 10px;
}

.storytelling .subtitle {
    color: #67c6f0; /* Light blue */
    font-size: 18px;
    margin-bottom: 25px;
}

.storytelling .description {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 30px 20px;
    width: 28%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border:1px solid #0daaf1;
}

.service-card .icon {
    background-color: #f2eaf9;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .icon img {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.service-card p {
    font-size: 14px;
    color: #444;
}
@media (max-width: 768px) {
    .storytelling {
        padding: 50px 15px;
    }

    .storytelling .description {
        font-size: 15px;
    }
    .service-card {
      width: 45%;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .storytelling {
        padding: 40px 10px;
    }

    .storytelling h2 {
        font-size: 28px;
    }

    .storytelling .subtitle {
        font-size: 16px;
    }
    .service-card {
      width: 100%;
    }
}
/* Ensure Portfolio section lays things out properly */
#Portfolio {
      text-align: center;
      padding: 4rem 2rem;
    }
    #Portfolio h1 {
        color: #7f3e98;
    }

/* Nav wrapper */
.segmented-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem; /* Push navbar above images */
  position: relative;
  z-index: 1;
}

/* Nav menu styles */
.segmented-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Allow scroll, don't force center here */
  list-style: none;
  padding: 0.5rem;
  margin: 0 auto;
  background: #f2f2f2;
  border-radius: 25px;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  width: fit-content;
  max-width: 90vw;
  scroll-behavior: smooth;
}

/* Nav links */
.segmented-nav a {
  text-decoration: none;
  color: #87CEEB;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

/* Active tab */
.segmented-nav a.active {
  background: white;
  color: #000;
}

/* Images */
.container {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  gap: 20px;
  padding: 0 1.5rem 3rem;
}
.container img {
  width: calc(25% - 15px); /* 4 per row with space for gap */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  cursor: pointer;
}
.container img:hover {
  transform: scale(1.05);
}
/* #Portfolio .container img {
  flex: 1 1 calc(25% - 1rem);
  margin: 1vh;
  border-radius: 10px;
  cursor: pointer;
}
.container img {
      width: 22%;
      display: none;
    } */

    /* Only show thumbnail images by default */
    .container img[data-category="thumbnails"] {
      display: inline-block;
    }
    #viewMoreBtn {
      display: none;
      margin-top: 20px;
      padding: 10px 20px;
      font-size: 16px;
      background-color: #007BFF;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    #viewMoreBtn:hover {
      background-color: #0056b3;
    }

/* Tablet & below */
@media (max-width: 768px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: fit-content;
    overflow-x: auto;
  }

  .segmented-nav {
    margin-top: 0.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: -15vh;
    margin-left: 7vh;
    margin-bottom: 6.5rem; /* spacing above images */
  }

  .segmented-nav ul {
    gap: 6px;
    padding: 0.4rem;
  }

   .container img{
      width: 28%;
    }

    #Portfolio p {
        font-size: 15px;
    }

    #Portfolio button[type="submit"] {
        font-size: 14px;
        padding: 0.6rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
  .segmented-nav {
    margin-top: -5rem;
    margin-bottom: 6rem;
  }

  .nav-menu {
    justify-content: center;
    width: fit-content;
    max-width: 90vw;
    overflow-x: auto;
  }

  .segmented-nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  #Portfolio {
        padding: 2rem 1rem;
    }

    #Portfolio h1 {
        font-size: 28px;
    }

    #Portfolio .container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        /* gap: 2px; */
    }
    .container img{
      width: 45%;
    }
}
body.dimmed::before {
      content: "";
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 999;
    }

    #popup-container {
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1000;
      display: none;
    }

    #popup-image {
      max-width: 80vw;
      max-height: 80vh;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0,0,0,0.4);
      cursor: pointer;
    }
/* #contact {
  display: flex;
  padding: 5vh;
  justify-content: space-between;
}
footer{
  color: #8e949c;
  text-align: center;
  margin-bottom: 40px;
} */
 #contact {
      display: flex;
      justify-content: space-between;
      padding: 40px 60px;
      background-color: #fff;
      color: #000;
    }

    .left,
    .right {
      flex: 1;
      min-width: 250px;
    }

    .right h2 {
      font-size: 18px;
      margin-bottom: 15px;
      font-weight: 600;
      text-align: right;
    }

    .social-icons {
      text-align: right;
    }

    .social-icons a {
      margin: 0 6px;
      display: inline-block;
    }

    .social-icons img {
      width: 24px;
      height: 24px;
      filter: brightness(0) saturate(100%) invert(19%) sepia(96%) saturate(2099%) hue-rotate(254deg) brightness(97%) contrast(99%);
    }
    .social-icons i {
      padding: 1vh;
      font-size: 36px;
    color: #7e3f98;
  }

    footer {
      text-align: center;
      padding: 15px 10px;
      font-size: 14px;
      color: #333;
      background-color: #fff;
    }

    @media (max-width: 600px) {
      #contact {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
      }

      .right h2,
      .social-icons {
        text-align: center;
      }
    }