/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3b239b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__image {
  max-width: 200px;
  max-height: 200px;
}

/* ============================================
   CSS Reset & Custom Properties
   ============================================ */
:root {
  --purple-deep: #4834d4;
  --purple-light: #5a47e0;
  --purple-dark: #3a2ab8;
  --purple-overlay: rgba(72, 52, 212, 0.85);
  --gold: #f5a623;
  --gold-light: #ffc44d;
  --gold-dark: #d48d0f;
  --white: #ffffff;
  --gray-light: #f8f8f8;
  --gray-medium: #e0e0e0;
  --gray-dark: #4a4a4a;
  --footer-bg: #3d3d3d;
  --font-heading: 'Bahnschrift', 'DIN Alternate', 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --nav-height: 80px;
  --section-padding: 80px;
  --container-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #3b239b;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-dark);
  background: url('../images/global/background.png') center top no-repeat fixed;
  background-size: cover;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

.section--gray {
  background-color: var(--gray-light);
}

.section--purple {
  background-color: var(--purple-deep);
  color: var(--white);
}

.section--dark {
  background-color: var(--footer-bg);
  color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--purple-deep);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--gold); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(72, 52, 212, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header.header--solid {
  background-color: rgba(72, 52, 212, 1);
}

.header.header--hidden {
  transform: translateY(-100%);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-medium);
}

.logo:hover {
  transform: scale(1.02);
}

.logo__image {
  height: 65px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition-medium);
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__social {
  width: 36px;
  height: 36px;
  border: 2px solid var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
}

.nav__social:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--purple-deep);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: calc(60vh + var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 0;
  padding-top: var(--nav-height);
  background: transparent;
  overflow: hidden;
}

.hero--homepage {
  background: url('../images/home/hero.jpg') center center no-repeat;
  background-size: cover;
}

.hero--homepage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 35, 155, 0.7);
  z-index: 0;
}

.hero--homepage .hero__content {
  position: relative;
  z-index: 1;
}

.hero--homepage .hero__scroll {
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
}

.hero__title {
  color: var(--white);
  margin-bottom: 85px;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
  z-index: 1;
}

.hero__scroll svg {
  width: 40px;
  height: 40px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  text-align: center;
}

.services__intro {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  text-align: center;
  padding: 30px 20px;
}

.service-card__icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  color: var(--gray-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card__title {
  color: var(--purple-deep);
  margin-bottom: 15px;
}

.service-card__text {
  color: var(--purple-deep);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   WORK / PORTFOLIO SECTION
   ============================================ */
.work {
  text-align: center;
}

.work__title {
  margin-bottom: 40px;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.work-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.work-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.work-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--purple-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.work-item:hover .work-item__image {
  transform: scale(1.1);
}

.work-item:hover .work-item__overlay {
  opacity: 1;
}

.work-item__title {
  color: var(--white);
  margin-bottom: 10px;
}

.work-item__category {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: var(--gold);
  padding: 50px 40px;
}

.stats-strip__item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(59, 35, 155, 0.2);
}

.stats-strip__item:last-child {
  border-right: none;
}

.stats-strip__number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #3b239b;
  line-height: 1;
  margin-bottom: 10px;
}

.stats-suffix {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3b239b;
}

.stats-strip__label {
  color: rgba(59, 35, 155, 0.75);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .stats-strip {
    flex-wrap: wrap;
    gap: 30px;
  }
  .stats-strip__item {
    flex: 0 0 45%;
    border-right: none;
  }
  .stats-strip__number {
    font-size: 2.5rem;
  }
}

/* ============================================
   AI SECTION
   ============================================ */
.ai-section {
  background: #3b239b;
  padding: 80px 0;
}

.ai-section__header {
  text-align: center;
  margin-bottom: 50px;
}

.ai-section__label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.ai-section__title {
  color: white;
  font-size: 2.2rem;
  margin: 0 0 16px;
}

.ai-section__intro {
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1rem;
}

.ai-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ai-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 32px 24px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.ai-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.ai-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.ai-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-card__name {
  color: var(--gold);
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.ai-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-card__list li {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  padding: 6px 0 6px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  line-height: 1.4;
  position: relative;
}

.ai-card__list li:last-child {
  border-bottom: none;
}

.ai-card__list li::before {
  content: '→';
  color: var(--gold);
  font-size: 0.8rem;
  position: absolute;
  left: 0;
}

@media (max-width: 900px) {
  .ai-section__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .ai-section__grid { grid-template-columns: 1fr; }
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn--primary {
  background-color: var(--gold);
  color: var(--purple-deep);
}

.btn--primary:hover {
  background-color: var(--gold-light);
  color: var(--purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn--outline:hover {
  background-color: var(--gold);
  color: var(--purple-deep);
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.testimonial {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.testimonial__quote {
  position: relative;
  padding: 0 100px;
}

.testimonial__quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70' fill='%23f5a623'%3E%3Cpath d='M20 70C20 70 20 45 20 35C20 20 30 10 45 0L45 15C35 20 30 30 30 40L50 40L50 70L20 70Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.testimonial__quote::after {
  content: '';
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 60px;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70' fill='%23f5a623'%3E%3Cpath d='M30 0C30 0 30 25 30 35C30 50 20 60 5 70L5 55C15 50 20 40 20 30L0 30L0 0L30 0Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.testimonial__text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--white);
  font-style: normal;
  margin-bottom: 30px;
}

.testimonial__author {
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.testimonial__role {
  color: var(--gold);
  font-style: italic;
  text-align: right;
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--footer-bg);
  padding: 20px 0 30px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer__logo {
  height: 100px;
  width: auto;
}

.footer__logo img {
  height: 100%;
  width: auto;
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.footer__bottom {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  flex-wrap: wrap;
  gap: 60px;
}

.footer__contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.9rem;
}

.footer__contact a:hover {
  color: var(--gold-light);
}

.footer__contact svg {
  width: 20px;
  height: 20px;
}

.footer__portfolio h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer__portfolio-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
}

.footer__portfolio-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer__portfolio-links a:hover {
  color: var(--gold);
}

.footer__copyright {
  text-align: center;
  width: 100%;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
    --section-padding: 60px;
  }
  
  .nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--purple-deep);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }
  
  .nav--active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__link {
    padding: 15px;
    width: 100%;
    text-align: center;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer__portfolio-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .work__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CAPABILITIES SECTION
   ============================================ */
.capabilities-section {
  background: transparent;
  padding: 100px 0;
}

.capabilities {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.capabilities-item {
  flex: 1 1 0;
  max-width: 280px;
}

.capabilities-item__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.capabilities-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.capabilities-item__title {
  color: #f5a623;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin-bottom: 10px;
}

.capabilities-item__text {
  color: #f5a623;
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
/* About Hero */
.hero--about {
  background: linear-gradient(135deg, rgba(72, 52, 212, 0.85) 0%, rgba(108, 92, 231, 0.85) 100%), url('../images/home/hero.jpg');
  background-size: cover;
  background-position: center;
}

/* About Content Layout */
.about-wrapper {
  position: relative;
  overflow: hidden;
}
.about-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #f0f0f0;
}
.about-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: white;
}
.about-section {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  min-height: 400px;
  position: relative;
  z-index: 1;
}
.about__text-panel {
  flex: 1;
  background: #f0f0f0;
  padding: 60px 50px;
  display: flex;
  align-items: center;
}
.about__text p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about__text p:last-child {
  margin-bottom: 0;
}
.about__image-panel {
  width: 300px;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.about__image-panel img {
  width: 200px;
  height: auto;
}

/* Skills Grid */
.skills-section {
  background: white;
  padding: 60px 0;
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.skill-item__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
.skill-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.skill-item__title {
  color: #4834d4;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.skill-item__text {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Award Section */
.award-section {
  background: #f5f5f5;
  padding: 60px 0;
}
.award {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}
.award__certificate {
  width: 200px;
  flex-shrink: 0;
}
.award__certificate img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.award__content p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* ============================================
   CASE STUDY SECTION
   ============================================ */
.case-study {
  background: #3b239b;
  padding: 70px 0;
}

.case-study__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.case-study__item {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid rgba(255,255,255,0.15);
}

.case-study__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 12px;
}

.case-study__heading {
  color: var(--gold);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.case-study__item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .case-study__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* iDesignX Speaker Section */
.idesignx-banner {
  background: var(--gold);
  text-align: center;
  padding: 60px 40px 20px;
}

.idesignx-banner__label {
  color: #3b239b;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.idesignx-banner__title {
  color: #3b239b;
  font-size: 2rem;
  margin: 0 0 20px;
}

.idesignx-banner__text {
  color: #3b239b;
  max-width: 700px;
  margin: 0 auto 12px;
  font-size: 1rem;
  line-height: 1.7;
}

.idesignx-section .masonry-gallery {
  background: var(--gold);
  padding-top: 4px;
}

.idesignx-section .masonry-item__overlay {
  background: rgba(59, 35, 155, 0.6);
}

/* Applications Section - Purple */
.apps-section {
  background: transparent;
  padding: 60px 0;
}
.apps__title {
  text-align: center;
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 50px;
}
.apps__grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.app-item {
  text-align: center;
  width: 80px;
}
.app-item__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  background: white;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.app-item__name {
  display: block;
  font-size: 0.85rem;
  color: white;
  line-height: 1.2;
}

/* People Section */
.people-section {
  background: #f0f0f0;
  padding: 60px 0;
}
.people__title {
  text-align: center;
  color: #ccc;
  font-size: 1.8rem;
  margin-bottom: 50px;
}
.people__grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}
.person-item {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}
.person-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   WORK PAGE STYLES
   ============================================ */
/* Work Hero */
.hero--work {
  background: linear-gradient(135deg, rgba(72, 52, 212, 0.85) 0%, rgba(108, 92, 231, 0.85) 100%), url('../images/work/hero.jpg');
  background-size: cover;
  background-position: center;
}

/* Filter buttons */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
  padding: 0 20px;
}
.filter-btn {
  background: white;
  border: 2px solid #4834d4;
  padding: 10px 25px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: .9rem;
  color: #4834d4;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover,
.filter-btn--active {
  background: #4834d4;
  border-color: #4834d4;
  color: white;
}

/* Project grid */
.work-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 350px);
  gap: 30px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

/* Project cards */
.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(72, 52, 212, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}
.project-card:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 15px 50px rgba(0,0,0,0.25) !important;
  z-index: 10;
}
.project-card__image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__content {
  padding: 25px;
}
.project-card__category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.topic-pill {
  display: inline-block;
  background: #4834d4;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease;
}

#homepage-projects .work-item:hover .topic-pill {
  background: #f5a623;
  color: #4834d4;
}
.project-card__title {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.project-card__desc {
  color: #666;
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}
.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5a623;
  font-weight: 600;
  font-size: .9rem;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-hero {
  min-height: calc(60vh + var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 0;
  padding-top: var(--nav-height);
  background: url('../images/contact/hero.jpg') center center no-repeat;
  background-size: cover;
}
.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 35, 155, 0.7);
  z-index: 1;
}
.contact-hero .hero__content,
.contact-hero .hero__scroll {
  position: relative;
  z-index: 2;
}
.contact-section {
  padding: 80px 0;
  background: transparent;
}
.contact-form-full {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.contact-form-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.contact-form-icon img {
  width: 80px;
  height: auto;
}
.contact-form-fields {
  flex: 1;
}
.contact-form-fields .form-label {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-form-fields .form-input,
.contact-form-fields .form-textarea {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 25px;
}
.contact-form-fields .form-textarea {
  min-height: 200px;
  resize: vertical;
}
.form-status {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: none;
}
.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-overlay.active {
  display: flex;
}
.popup-modal {
  background: white;
  border-radius: 12px;
  padding: 50px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.popup-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4834d4, #6c5ce7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}
.popup-icon svg {
  width: 50px;
  height: 50px;
  stroke: white;
}
.popup-title {
  color: #4834d4;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}
.popup-message {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}
.popup-close {
  background: linear-gradient(135deg, #f5a623, #d48d0f);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================
   PROJECT PAGE STYLES
   ============================================ */
.hero--project {
  background: linear-gradient(135deg, rgba(72, 52, 212, 0.85) 0%, rgba(108, 92, 231, 0.85) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

@media (max-width: 768px) {
  .hero--project {
    background-attachment: scroll;
  }
}
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
  z-index: 2;
}
.hero__nav:hover {
  color: white;
}
.hero__nav--prev {
  left: 30px;
}
.hero__nav--next {
  right: 30px;
}
.hero--project .hero__content {
  padding-left: 100px;
  padding-right: 100px;
}
@media (max-width: 768px) {
  .hero--project .hero__content {
    padding-left: 70px;
    padding-right: 70px;
  }
}
.project-content {
  background: white;
  padding: 60px 0;
}
.project-content .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 100%;
  padding-left: 80px;
  padding-right: 80px;
}
.project__description h2 {
  color: #2d1f8a;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}
.project__description p {
  color: #2d1f8a;
  line-height: 1.8;
  margin-bottom: 20px;
}
.project__details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.project__detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.project__detail-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}
.project__detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project__detail-content h3 {
  color: #2d1f8a;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.project__detail-content p {
  color: #2d1f8a;
  font-size: 0.95rem;
  line-height: 1.6;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.project-gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE - PAGE SPECIFIC
   ============================================ */
@media (max-width: 1150px) {
  .work-page__grid {
    grid-template-columns: repeat(2, 350px);
  }
}

@media (max-width: 768px) {
  /* About page */
  .about-section {
    flex-direction: column-reverse;
  }
  .about__image-panel {
    width: 100%;
    padding: 40px;
  }
  .about__text-panel {
    padding: 40px 20px;
  }
  .skills__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  .award {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }
  .apps__grid {
    gap: 30px;
    padding: 0 20px;
  }
  
  /* Work page */
  .work-page__grid {
    grid-template-columns: 350px;
  }
  
  /* Contact page */
  .contact-form-layout {
    flex-direction: column;
    align-items: center;
  }
  
  /* Project page */
  .project-content .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .project-gallery {
    grid-template-columns: 1fr;
  }
  .hero__nav {
    display: none;
  }
}

@media (max-width: 400px) {
  .work-page__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */
.testimonial-carousel {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.testimonial-carousel__container {
  overflow: hidden;
  position: relative;
}

.testimonial-carousel__track {
  position: relative;
  min-height: 300px;
}

.testimonial-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(50px);
}

.testimonial-carousel__slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.testimonial-carousel__slide.prev {
  transform: translateX(-50px);
}

.testimonial-carousel__slide.next {
  transform: translateX(50px);
}

.testimonial-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.testimonial-carousel__btn {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.testimonial-carousel__btn:hover {
  background: var(--gold);
  color: var(--purple-deep);
}

.testimonial-carousel__btn svg {
  width: 20px;
  height: 20px;
}

.testimonial-carousel__dots {
  display: flex;
  gap: 10px;
}

.testimonial-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.testimonial-carousel__dot:hover,
.testimonial-carousel__dot.active {
  background: var(--gold);
}

/* Adjust testimonial styling within carousel */
.testimonial-carousel .testimonial {
  padding: 20px;
}

.testimonial-carousel .testimonial__quote {
  padding: 0 100px;
}

@media (max-width: 768px) {
  .testimonial-carousel__track {
    min-height: 400px;
  }
  
  .testimonial-carousel .testimonial__quote {
    padding: 0 80px;
  }
  
  .testimonial-carousel__btn {
    width: 36px;
    height: 36px;
  }
  
  .testimonial-carousel__btn svg {
    width: 16px;
    height: 16px;
  }
}
