@import url('fonts.css');


:root {
    /* Colors */
    --raisin-black: hsla(231, 10%, 14%, 1);
    --roman-silver: hsla(229, 10%, 57%, 1);
    --eerie-black: hsla(228, 9%, 10%, 1);
    --black: hsla(0, 0%, 0%, 1);
    --white: hsla(0, 0%, 100%, 1);
    --white_a10: hsla(0, 0%, 100%, 0.1);
    --white_a5: hsla(0, 0%, 100%, 0.05);
  
    /* Typography */
    --ff-syne: 'Syne', sans-serif;
  
    --fs-1: 4.8rem;
    --fs-2: 4.5rem;
    --fs-3: 4rem;
    --fs-4: 2.4rem;
    --fs-5: 2rem;
    --fs-6: 1.8rem;
    --fs-7: 1.4rem;
    --fs-8: 1.2rem;
  
    --fw-800: 800;
    --fw-700: 700;
  
    /* Spacing */
    --section-padding: 100px;
  
    /* Border Radius */
    --radius-pill: 100px;
    --radius-circle: 50%;
    --blob-radius: 52% 48% 59% 41% / 53% 40% 60% 47%;
  
    /* Transition */
    --transition-1: 0.25s ease;
    --transition-2: 0.5s ease;
    --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
    --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
    --cubic-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --cubic-ease-out: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
  }
  
  
  /*-----------------------------------*\
    #RESET
  \*-----------------------------------*/
  
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  li { list-style: none; }
  
  a,
  img,
  span,
  button,
  ion-icon { display: block; }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img { height: auto; }
  
  button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
  }
  
  ion-icon { pointer-events: none; }
  
  html {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 10px;
    scroll-behavior: smooth;
  }
  
  body {
    background-color: var(--eerie-black);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1.5;
    white-space: normal;
  }
  
  /* Global text fix */
  p, h1, h2, h3, h4, h5, h6, span, a {
    white-space: normal !important;
    display: inline-block;
    width: auto;
    min-width: fit-content;
    letter-spacing: normal;
  }
  
    
  .container {
    padding-inline: 16px;
    max-width: 1200px;
    margin-inline: auto;
  }
  
  .section { padding-block: var(--section-padding); }
  
  .h1, .h2, .h3 {
    font-weight: var(--fw-800);
    text-transform: uppercase;
    display: block;
    white-space: normal;
  }
  
  .h1 {
    color: var(--white);
    font-size: var(--fs-1);
    line-height: 1;
    font-family: 'Oswald', Arial, sans-serif;
  }
  
  .h2 { 
    font-size: var(--fs-2); 
    display: block;
    white-space: normal;
  }
  
  .h3 {
    font-size: var(--fs-4);
    line-height: 1.3;
    display: block;
    white-space: normal;
  }
  
  .section-title { 
    text-align: center; 
    display: block;
    white-space: normal;
    margin-bottom: 15px;
  }
  
  .section-subtitle {
    color: var(--roman-silver);
    font-size: var(--fs-7);
    font-weight: var(--fw-700);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    margin-block: 15px 60px;
    display: block;
    white-space: normal;
  }
  
  .section-text {
    font-size: var(--fs-6);
    margin-block-end: 50px;
    display: block;
    white-space: normal;
    max-width: 800px;
    margin-inline: auto;
    line-height: 1.8;
    text-align: center;
  }
  
  .btn {
    position: relative;
    color: var(--white);
    font-weight: var(--fw-700);
    text-transform: uppercase;
    padding: 20px 45px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    white-space: normal;
  }
  
  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--white_a10);
    border-radius: inherit;
    z-index: -1;
    transform: translateY(100%);
    transition: var(--transition-2);
  }
  
  .btn:hover::after { transform: translateY(0); }
  
  .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--gradient);
    border-radius: inherit;
    z-index: -1;
  }
  
  
  /*-----------------------------------*\
    #PRELOADER
  \*-----------------------------------*/
  
  .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--eerie-black);
    display: grid;
    place-items: center;
    z-index: 6;
    transition: var(--transition-1);
  }
  
  .preloader.loaded { visibility: hidden; opacity: 0; }
  
  .preloader .circle {
    width: 50px;
    height: 50px;
    border: 4px solid var(--white);
    border-radius: var(--radius-circle);
    border-block-start-color: transparent;
    animation: loading 1s linear infinite;
  }
  
  @keyframes loading {
    0% { transform: rotate(0); }
    100% { transform: rotate(1turn); }
  }
  
  
  /*-----------------------------------*\
    #HEADER
  \*-----------------------------------*/
  
  .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 30px;
    z-index: 4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.76);
  }
  
  .header.active {
    position: fixed;
    background-color: var(--eerie-black);
    animation: headerActive 0.5s ease forwards;
  }
  
  @keyframes headerActive {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
  }
  
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  .nav-toggle-btn .line {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition-1);
  }
  
  .nav-toggle-btn .line:not(:last-child) { margin-block-end: 8px; }
  
  .nav-toggle-btn.active .line-1 { transform: translateY(10px) rotate(45deg); }
  
  .nav-toggle-btn.active .line-2 { transform: translateX(-100%); opacity: 0; }
  
  .nav-toggle-btn.active .line-3 { transform: translateY(-10px) rotate(-45deg); }
  
  .navbar {
    position: absolute;
    top: 100%;
    right: 16px;
    background-color: var(--eerie-black);
    padding-inline: 30px;
    overflow: hidden;
    max-height: 0;
    transition: 0.25s var(--cubic-in);
    visibility: hidden;
  }
  
  .navbar.active {
    max-height: 200px;
    visibility: visible;
    transition-timing-function: var(--cubic-out);
  }
  
  .navbar-link {
    font-weight: var(--fw-700);
    padding-block: 8px;
    text-transform: uppercase;
    display: block;
    white-space: normal;
  }
  
  /* Overlay for mobile menu */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: hsla(0, 0%, 0%, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-1);
    z-index: 3;
  }
  
  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  
  
  /*-----------------------------------*\
    #HERO
  \*-----------------------------------*/
  
  .hero {
    padding-block-start: 120px;
    padding-block-end: 0;
    position: relative;
    overflow: hidden;
    background: none;
  }

  .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -60px;
    width: 450px;
    height: 540px;
    background: url('../images/misc/hero-bg.png') no-repeat right bottom;
    background-size: contain;
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 1;
  }
  
  .hero-content { 
    margin-block-end: 80px; 
    display: block;
    width: 100%;
  }
  
  .hero-title { 
    margin-block-end: 20px; 
    white-space: normal;
    display: block;
    letter-spacing: normal;
  }
  
  .hero-subtitle {
    font-size: var(--fs-6);
    font-weight: var(--fw-700);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-block-end: 30px;
    white-space: normal;
    display: block;
  }
  
  .hero-text {
    white-space: normal;
    display: block;
    letter-spacing: normal; 
    width: 100%;
  }
  
  
  /*-----------------------------------*\
    GROUP PROJECTS
  \*-----------------------------------*/
  
  .service { 
    background-color: var(--raisin-black); 
    padding-top: 60px; 
  }  
  .service-list {
    display: grid;
    gap: 40px;
    margin-block-end: 60px;
    padding-bottom: 120px; 
  }
  
  .service-item {
    position: relative;
    background-color: var(--white_a5);
    padding: 50px 30px;
    border-radius: 8px;
    z-index: 1;
    overflow: hidden;
    backdrop-filter: blur(15px);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .service-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white_a10);
    opacity: 0;
    transition: var(--transition-2);
    z-index: -1;
  }
  
  .service-item:hover::after {
    height: 100%;
    opacity: 1;
  }
  
  .service-icon {
    margin-inline: auto;
    margin-block-end: 30px;
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
  }
  
  .service-title { 
    margin-block-end: 15px;
    display: block;
    white-space: normal;
    text-align: center;
  }
  
  .service-text { 
    font-size: var(--fs-7);
    display: block;
    white-space: normal;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .service-number {
    font-size: var(--fs-2);
    font-weight: var(--fw-800);
    opacity: 0.1;
    position: absolute;
    bottom: 5px;
    right: 20px;
    transform: translateY(0);
    z-index: 0;
  }
  
  .service-link {
    position: absolute;
    inset: 0;
  }
  
  
  /*-----------------------------------*\
    #PORTFOLIO (LEARNING OUTCOMES)
  \*-----------------------------------*/
  
  .portfolio { 
    background-color: var(--raisin-black); 
    padding-top: 60px; /* Existing top padding */
    padding-bottom: 80px; /* Add padding to the bottom of the section */
  }
    
  .portfolio-list {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 60px; /* Add margin to create space between the list and section bottom */
    padding-bottom: 10px; /* Extra padding to push boxes away from the bottom */
  }
  
  .portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white_a5);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    padding-left: 60px;
    text-align: left;
    z-index: 1;
  }
  
  .outcome-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}
  
  .outcome-icon ion-icon {
  font-size: 30px;
  color: var(--white);
}

  
  /* Add the same hover effect as service items */
  .portfolio-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white_a10);
    opacity: 0;
    transition: var(--transition-2);
    z-index: -1;
  }
  
  .portfolio-item:hover::after {
    height: 100%;
    opacity: 1;
  }
  
  .portfolio-content {
    position: relative;
    text-align: left;
    width: 100%;
    z-index: 2;
    padding: 20px 0;
    padding-left: 10px;
    pointer-events: none;
  }
  
  .portfolio-title { 
    font-size: var(--fs-4);
    margin-block-end: 20px;
    display: block;
    white-space: normal;
    text-align: left;
  }
  
  .portfolio-category {
    font-size: var(--fs-7);
    color: var(--roman-silver);
    display: block;
    white-space: normal;
    line-height: 1.6;
    text-align: left;
  }
  
  .portfolio-link {
  position: absolute;
  inset: 0;
  z-index: 5; /* Higher z-index to be above other elements */
  cursor: pointer; /* Change cursor to indicate it's clickable */
}

  .portfolio-title, .portfolio-category, .outcome-icon {
  pointer-events: auto;
}


  /*-----------------------------------*\
    #FOOTER
  \*-----------------------------------*/
  
  .footer { 
    padding-block: 60px;
    box-shadow: 0 5px 15px rgba(223, 223, 223, 0.473);
  }
  
  .footer-content {
    display: grid;
    gap: 30px;
    margin-block-end: 70px;
  }
  
  .contact-info {
    display: grid;
    gap: 15px;
  }
  
  .contact-link { 
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-6);
    color: var(--white);
    white-space: normal;
  }
  
  .location {
    display: grid;
    gap: 15px;
  }
  
  .footer-title {
    font-size: var(--fs-4);
    margin-block-end: 15px;
    display: block;
    white-space: normal;
  }
  
  .address {
    font-style: normal;
    font-size: var(--fs-6);
    color: var(--roman-silver);
    line-height: 1.8;
    display: block;
    white-space: normal;
  }
  
  .social-list {
    display: flex;
    gap: 20px;
  }
  
  .social-link {
    font-size: 24px;
    transition: var(--transition-1);
  }
  
  .social-link:is(:hover, :focus) { color: var(--roman-silver); }
  
  
  /*-----------------------------------*\
    #ANIMATION REVEAL
  \*-----------------------------------*/
  [data-reveal] {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s ease;
  }
  
  [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  /*-----------------------------------*\
    #MEDIA QUERIES
  \*-----------------------------------*/
  
  /* For larger mobile devices */
  @media (min-width: 575px) {
    .container {
      max-width: 540px;
      margin-inline: auto;
    }
  
    .service-list {
      grid-template-columns: 1fr 1fr;
    }
  
    .portfolio-list {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  /* For tablets */
  @media (min-width: 768px) {
    .container { max-width: 720px; }
  
    .section-subtitle { --fs-7: 1.6rem; }
  
    .service-list { 
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
    }
  
    .portfolio-list {
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
    }
  
    .footer-content {
      grid-template-columns: repeat(3, 1fr);
    }
    
    /* Fix for mobile display */
    .hero-title, .hero-subtitle, .section-title, .section-subtitle {
      white-space: normal !important;
      display: block;
      width: 100%;
    }
  }
  
  /* For laptops */
  @media (min-width: 992px) {
    :root {
      --section-padding: 120px;
    }
  
    .container { max-width: 960px; }
  
    .nav-toggle-btn { display: none; }
  
    .navbar {
      position: static;
      visibility: visible;
      max-height: none;
      background: none;
      padding-inline: 0;
    }
  
    .navbar-list {
      display: flex;
      gap: 30px;
    }
  
    .navbar-link { 
      position: relative; 
      padding-block: 0;
      white-space: normal;
      display: block;
    }
  
    .navbar-link::after {
      content: "";
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--white);
      transition: var(--transition-1);
    }
  
    .navbar-link:is(:hover, :focus)::after { width: 100%; }
  
    .hero {
      display: grid;
      place-items: center;
      min-height: 100vh;
    }
  
    .hero .container {
      display: grid;
      grid-template-columns: 1fr;
      align-items: center;
      gap: 50px;
    }
  
    .hero-content { margin-block-end: 0; }
  
    .portfolio-list {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* For desktops */
  @media (min-width: 1200px) {
    .container { max-width: 1140px; }
  
    .section-text { padding-inline: 120px; }
  
    .navbar-list { gap: 40px; }
  
    .hero .container { gap: 100px; }
  
    .hero-title { margin-block-end: 40px; }
  }
  
  /* For smaller mobile devices */
  @media (max-width: 767px) {
    .service-list {
      grid-template-columns: repeat(1, 1fr);
    }
    
    .portfolio-list {
      grid-template-columns: repeat(1, 1fr);
    }
  }

  .tools-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.tool-image {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
}

.tool-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.76);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.979);
}

.tool-image p {
  margin-top: 15px;
  font-size: var(--fs-7);
  color: var(--roman-silver);
  font-weight: var(--fw-700);
}

/* GALLERY SECTION STYLES */

.design-gallery {
  background-color: var(--raisin-black);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.gallery-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white_a5);
  backdrop-filter: blur(10px);
  padding: 30px;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.555);
}

.gallery-title {
  font-size: var(--fs-2);
  text-align: center;
  margin-bottom: 40px;
  color: var(--white);
  text-transform: uppercase;
}

.gallery-subtitle {
  color: var(--roman-silver);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 60px;
}

.gallery-slides {
  position: relative;
  margin-bottom: 30px;
  min-height: 450px;
}

.slide {
  display: flex;
  flex-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.image-container {
  flex: 1;
  min-width: 300px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.767);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.979);
}

.text-container {
  flex: 1;
  min-width: 300px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-container h3 {
  font-size: var(--fs-4);
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 15px;
}

.text-container h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

.text-container p {
  font-size: var(--fs-6);
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--roman-silver);
}

.slide-number {
  margin-top: 20px;
  font-size: var(--fs-7);
  color: var(--roman-silver);
  font-style: italic;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #707288;
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition-2);
}

.prev-btn:hover, .next-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn:active, .next-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn {
  left: -25px;
}

.next-btn {
  right: -25px;
}

.dots-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 12px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--roman-silver);
  cursor: pointer;
  transition: var(--transition-2);
  border: 2px solid transparent;
}

.dot:hover {
  border-color: var(--white);
}

.dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Responsive styles */
@media (max-width: 900px) {
  .gallery-container {
    padding: 20px;
  }
  
  .gallery-slides {
    min-height: auto;
  }
  
  .prev-btn {
    left: -15px;
  }
  
  .next-btn {
    right: -15px;
  }
}

@media (max-width: 768px) {
  .design-gallery {
    padding: 60px 0;
  }
  
  .gallery-container {
    padding: 15px;
  }
  
  .slide {
    flex-direction: column;
  }
  
  .image-container, .text-container {
    min-width: 100%;
  }
  
  .image-container {
    padding: 10px;
  }
  
  .text-container {
    padding: 20px 10px;
  }
  
  .prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .prev-btn {
    left: -10px;
  }
  
  .next-btn {
    right: -10px;
  }
}

@media (max-width: 480px) {
  .design-gallery {
    padding: 50px 0;
  }
  
  .gallery-container {
    padding: 10px;
  }
  
  .text-container h3 {
    font-size: var(--fs-5);
  }
  
  .text-container p {
    font-size: var(--fs-7);
  }
  
  .prev-btn, .next-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* LIGHTBOX STYLES */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  cursor: default;
}

#lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.719);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}