/* ============================================
   HEADER & NAVIGATION STYLES
   ============================================ */

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #000000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  color: #000;
  letter-spacing: -0.5px;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

/* Social Icons */
.social-icons {
  display: none;
  gap: 12px;
  align-items: center;
}

.social-icon {
  width: 48px;
  height: 48px;
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px;
  position: relative;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-icon:active {
  transform: translateY(0);
  border-bottom-width: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 0;
}

.menu-toggle:hover {
  background-color: var(--color-lavender);
  transform: translateY(-2px);
}

.menu-toggle:active {
  transform: translateY(0);
  border-bottom-width: 2px;
}

.menu-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background-color: #000;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #000;
  transition: all 0.3s ease;
  border-radius: 2px;
  left: 0;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  bottom: -7px;
}

/* Mobile Menu Toggle Active State */
.menu-toggle.active .menu-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: var(--color-white);
  padding: 24px;
  animation: slideDown 0.3s ease;
}

.mobile-menu.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.nav-mobile .nav-link {
  font-size: 20px;
  padding: 8px 0;
}

.social-icons-mobile {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */

@media (min-width: 768px) {
  /* Show desktop navigation */
  .nav-desktop {
    display: flex;
  }
  
  /* Show desktop social icons */
  .social-icons {
    display: flex;
  }
  
  /* Hide mobile menu toggle */
  .menu-toggle {
    display: none;
  }
  
  /* Ensure mobile menu is hidden on desktop */
  .mobile-menu {
    display: none !important;
  }
  
  /* Adjust header height for desktop */
  .header-content {
    height: 80px;
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  min-height: calc(100vh - 70px);
}

@media (min-width: 768px) {
  main {
    min-height: calc(100vh - 80px);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 60px 0;
  background-color: #E3E3FF;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  text-align: center;
}

/* Hello Badge */
.hello-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-blue);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 20px;
  margin-bottom: 24px;
  width: fit-content;
}

.hello-badge svg {
  width: 16px;
  height: 16px;
}

.hello-badge span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 42px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: #000;
  margin-bottom: 24px;
}

.hero-title .name {
  display: inline;
}

.hero-title .highlight {
  color: #000;
  display: inline;
}

.hero-description {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: #333;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  border-bottom-width: 2px;
}

.btn-primary {
  background-color: #000;
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary {
  background-color: var(--color-white);
  color: #000;
}

.btn-secondary:hover {
  background-color: var(--color-lavender);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.hero-profile-img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 3px solid #000;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

/* Decorations */
.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.decoration-badge {
  position: absolute;
  top: 10%;
  left: -10%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.decoration-badge svg {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
}

.sparkle {
  position: absolute;
  font-size: 24px;
  color: #000;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
  top: 5%;
  right: 10%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 15%;
  right: 5%;
  font-size: 18px;
  animation-delay: 0.5s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Mobile Hero Layout */
@media (max-width: 767px) {
  .hero-image {
    display: none;
  }
}

/* Desktop Hero Layout */
@media (min-width: 768px) {
  .hero {
    padding: 80px 0 100px;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  
  .hero-text {
    text-align: left;
  }
  
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-buttons {
    justify-content: flex-start;
  }
  
  .hero-title {
    font-size: 56px;
  }
  
  .hero-image-container {
    max-width: 500px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 64px;
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  padding: 80px 0;
  background-color: #FFFEF5;
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

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

.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 20px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.services-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.services-badge svg {
  width: 16px;
  height: 16px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.services-badge span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
}

.services-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: #000;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

/* Service Card */
.service-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: flex-start;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  will-change: transform; /* Optimize for parallax animations */
}

/* Staggered animation delays for each card */
.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-bottom-width: 6px;
}

.service-card:active {
  transform: translateY(-2px) scale(1.01);
  border-bottom-width: 3px;
}

/* Card Color Variants */
.card-lavender {
  background-color: var(--color-lavender);
}

.card-lime {
  background-color: var(--color-lime);
}

.card-pink {
  background-color: var(--color-pink);
}

.card-blue {
  background-color: var(--color-blue);
}

/* Service Icon */
.service-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-radius: 12px;
  padding: 12px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(5deg) scale(1.1);
  border-color: var(--color-primary);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: #000;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon svg {
  transform: scale(1.1);
}

/* Service Content */
.service-content {
  flex: 1;
}

.service-name {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: 8px;
}

.service-description {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: #333;
}

/* Services Footer */
.services-footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  transform: translateY(20px);
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .services {
    padding: 100px 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .services-title {
    font-size: 36px;
  }
  
  .service-card {
    padding: 28px;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .services-title {
    font-size: 42px;
    max-width: 700px;
  }
  
  .services-grid {
    gap: 28px;
  }
  
  .service-card {
    padding: 32px;
  }
  
  .service-name {
    font-size: 22px;
  }
  
  .service-description {
    font-size: 17px;
  }
}

/* ============================================
   ROOT & RESET
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--color-lavender);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}

/* Left Side - Image */
.about-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.about-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-sparkle {
  position: absolute;
  font-size: 24px;
  color: #000;
  animation: sparkle 2s ease-in-out infinite;
  top: 10%;
  right: 10%;
}

.about-clock svg {
  width: 24px;
  height: 24px;
  color: #000;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 3px solid #000;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

/* Experience Box */
.about-experience {
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  margin: 0 auto;
}

.experience-title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: 16px;
}

.experience-description {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: #333;
  margin-bottom: 24px;
}

/* Right Side - Content */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-header {
  margin-bottom: 8px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 20px;
}

.about-badge svg {
  width: 16px;
  height: 16px;
}

.about-badge span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
}

.about-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: #000;
  margin-bottom: 16px;
}

.about-description {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: #333;
  margin-bottom: 32px;
}

/* Timeline */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
  border-left: 2px solid #000;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
}

.timeline-date {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  color: #666;
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: 8px;
}

.timeline-description {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: #333;
}

/* Responsive - Tablet and Desktop */
@media (min-width: 768px) {
  .about {
    padding: 100px 0;
  }
  
  .about-content {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
  }
  
  .about-title {
    font-size: 36px;
  }
  
  .about-description {
    font-size: 17px;
  }
  
  .timeline-title {
    font-size: 22px;
  }
}

@media (min-width: 1024px) {
  .about-title {
    font-size: 42px;
  }
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio {
  padding: 80px 0;
  background-color: var(--color-white);
  position: relative;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 20px;
  margin-bottom: 24px;
}

.portfolio-badge svg {
  width: 16px;
  height: 16px;
}

.portfolio-badge span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
}

.portfolio-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: #000;
  max-width: 600px;
  margin: 0 auto;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

/* Portfolio Item */
.portfolio-item {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  will-change: transform; /* Optimize for parallax animations */
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #f5f5f5;
  border-bottom: 2px solid #000;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-name {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: #000;
}

.portfolio-location {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #666;
  margin-bottom: 8px;
}

.portfolio-description {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

.portfolio-tech {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-normal);
  color: #999;
  margin-bottom: 12px;
  font-style: italic;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.portfolio-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.portfolio-link:hover {
  color: var(--color-primary);
}

.portfolio-link:hover svg {
  transform: translate(4px, -4px);
}

.portfolio-footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.portfolio-hidden {
  display: none;
}

.portfolio-image {
  cursor: pointer;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.modal-close:hover {
  color: #ccc;
}

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

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Tech Stack Modal */
.tech-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.tech-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.tech-modal-content {
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 16px;
  padding: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  position: relative;
  margin: 20px 0;
}

.tech-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #000;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 10;
}

.tech-modal-close:hover {
  color: var(--color-primary);
}

.tech-modal-title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: 24px;
  text-align: center;
  padding-right: 40px;
}

.tech-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tech-category {
  background-color: var(--color-lavender);
  border: 2px solid #000;
  border-radius: 12px;
  padding: 20px;
}

.tech-category-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: 12px;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: #000;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-radius: 8px;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .tech-modal.active {
    align-items: center;
    padding: 40px 20px;
  }
  
  .tech-modal-content {
    padding: 40px;
  }
  
  .tech-modal-title {
    font-size: 32px;
    margin-bottom: 32px;
  }
  
  .tech-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .tech-category {
    padding: 24px;
  }
  
  .tech-category-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .tech-stack-list {
    gap: 12px;
  }
  
  .tech-badge {
    font-size: 14px;
    padding: 8px 16px;
  }
  
  .tech-modal-close {
    top: 20px;
    right: 30px;
    font-size: 36px;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right-portfolio {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right-portfolio.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animation delays */
.scale-in:nth-child(1) { transition-delay: 0.1s; }
.scale-in:nth-child(2) { transition-delay: 0.2s; }
.scale-in:nth-child(3) { transition-delay: 0.3s; }
.scale-in:nth-child(4) { transition-delay: 0.4s; }
.scale-in:nth-child(5) { transition-delay: 0.5s; }
.scale-in:nth-child(6) { transition-delay: 0.6s; }

/* Parallax Effect */
.parallax-section {
  position: relative;
  overflow: hidden;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .portfolio {
    padding: 100px 0;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .portfolio-title {
    font-size: 36px;
  }
  
  .portfolio-image {
    height: 320px;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .portfolio-title {
    font-size: 42px;
    max-width: 700px;
  }
  
  .portfolio-name {
    font-size: 24px;
  }
  
  .portfolio-description {
    font-size: 17px;
  }
}

/* ============================================
   STATS SECTION (OVERLAPPING)
   ============================================ */

.stats-wrapper {
  position: relative;
  z-index: 1000;
  margin-top: 80px;
  margin-bottom: -120px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 16px;
  padding: 48px 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: 8px;
  line-height: 1;
  animation: counterAnimation 2s ease-out forwards;
}

@keyframes counterAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Counter number animation */
@keyframes countUp {
  0% { content: "0"; }
  10% { content: "1"; }
  20% { content: "2"; }
  30% { content: "3"; }
  40% { content: "4"; }
  50% { content: "5"; }
  60% { content: "6"; }
  70% { content: "7"; }
  80% { content: "8"; }
  90% { content: "9"; }
  100% { content: "0"; }
}

/* Specific counter animations for each stat */
.stat-item:nth-child(1) .stat-number {
  animation: count98 3s ease-out forwards;
}

.stat-item:nth-child(2) .stat-number {
  animation: count3 3s ease-out forwards;
}

.stat-item:nth-child(3) .stat-number {
  animation: count85 3s ease-out forwards;
}

.stat-item:nth-child(4) .stat-number {
  animation: count5 3s ease-out forwards;
}

@keyframes count98 {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
    content: "0%";
  }
  20% { content: "10%"; }
  30% { content: "25%"; }
  40% { content: "40%"; }
  50% { content: "55%"; }
  60% { content: "70%"; }
  70% { content: "85%"; }
  80% { content: "90%"; }
  90% { content: "95%"; }
  100% { content: "98%"; }
}

@keyframes count3 {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
    content: "0";
  }
  40% { content: "1"; }
  60% { content: "2"; }
  80% { content: "2.5"; }
  100% { content: "3"; }
}

@keyframes count85 {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
    content: "0+";
  }
  20% { content: "15+"; }
  30% { content: "30+"; }
  40% { content: "45+"; }
  50% { content: "60+"; }
  60% { content: "70+"; }
  70% { content: "75+"; }
  80% { content: "80+"; }
  90% { content: "83+"; }
  100% { content: "85+"; }
}

@keyframes count5 {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
    content: "0+";
  }
  40% { content: "1+"; }
  50% { content: "2+"; }
  60% { content: "3+"; }
  70% { content: "4+"; }
  80% { content: "4.5+"; }
  100% { content: "5+"; }
}

/* Stats Background Section */
.stats-background {
  padding: 180px 0 80px;
  position: relative;
  z-index: 5;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .stats-wrapper {
    margin-top: 100px;
    margin-bottom: -140px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    padding: 56px 48px;
  }
  
  .stat-number {
    font-size: 56px;
  }
  
  .stat-label {
    font-size: 17px;
  }
  
  .stats-background {
    padding: 200px 0 100px;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .stats-wrapper {
    margin-top: 120px;
    margin-bottom: -160px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 64px 56px;
  }
  
  .stat-number {
    font-size: 64px;
  }
  
  .stats-background {
    padding: 220px 0 120px;
  }
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.process-header {
  text-align: center;
  margin-bottom: 60px;
}

.process-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 20px;
  margin-bottom: 24px;
}

.process-badge svg {
  width: 16px;
  height: 16px;
}

.process-badge span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
}

.process-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: #000;
  max-width: 600px;
  margin: 0 auto;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

/* Process Card */
.process-card {
  padding: 32px;
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  will-change: transform; /* Optimize for parallax animations */
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.process-number {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-weight-extrabold);
  color: #666;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.process-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 12px;
}

.process-icon svg {
  width: 32px;
  height: 32px;
  color: #000;
}

.process-name {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: 12px;
}

.process-description {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: #333;
}

/* Technologies Section */
.technologies-section {
  text-align: center;
  margin-top: 80px;
  overflow: hidden;
}

.technologies-label {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: #000;
  margin-bottom: 32px;
}

.technologies-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.technologies-track {
  display: flex;
  gap: 64px;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

.technologies-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Duplicate items for seamless loop */
.technologies-track::after {
  content: '';
  display: flex;
  gap: 64px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  min-width: 80px;
}

.tech-item:hover {
  transform: translateY(-4px);
}

.tech-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.tech-item:hover img {
  filter: grayscale(0%) brightness(1.1);
}

.tech-item span {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #000;
  white-space: nowrap;
}

/* Technologies Footer */
.technologies-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #000;
}

.technologies-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 180px;
  margin: 0 auto;
}

.technologies-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .process-title {
    font-size: 36px;
  }
  
  .technologies-list {
    gap: 56px;
  }
  
  .tech-item img {
    width: 56px;
    height: 56px;
  }
  
  .tech-item span {
    font-size: 15px;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  
  .process-title {
    font-size: 42px;
    max-width: 700px;
  }
  
  .process-name {
    font-size: 20px;
  }
  
  .process-description {
    font-size: 15px;
  }
  
  .technologies-list {
    gap: 64px;
  }
  
  .tech-item img {
    width: 64px;
    height: 64px;
  }
  
  .tech-item span {
    font-size: 16px;
  }
}

/* ============================================
   CONTACT & FOOTER COMBINED SECTION
   ============================================ */

.contact-footer {
  position: relative;
}

/* Contact Section (White Background - Top Half) */
.contact-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 20px;
  margin-bottom: 24px;
}

.contact-badge svg {
  width: 16px;
  height: 16px;
}

.contact-badge span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
}

.contact-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: #000;
}

.contact-form-wrapper {
  background-color: var(--color-white);
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 16px;
  padding: 40px;
  will-change: transform; /* Optimize for parallax animations */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  padding: 16px;
  border: 2px solid #000;
  border-radius: 10px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(117, 117, 200, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button - Smaller Size */
.btn-submit {
  max-width: 200px;
  margin: 0 auto;
  display: block;
}

/* Contact Alternative Section */
.contact-alternative {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid #000;
}

.or-divider {
  margin-bottom: 16px;
}

.or-divider span {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: #666;
  text-transform: lowercase;
  position: relative;
}

.or-divider span::before,
.or-divider span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background-color: #ccc;
}

.or-divider span::before {
  left: -50px;
}

.or-divider span::after {
  right: -50px;
}

.alternative-text {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

.call-now-btn {
  background-color: #000000;
  color: #fff;
  border-color: var(--color-red);
  font-size: 18px;
  padding: 16px 32px;
  max-width: 200px;
  margin: 0 auto;
  font-weight: var(--font-weight-bold);
}

.call-now-btn:hover {
  background-color: #000000;
  border-color: var(--color-red);
  transform: translateY(-2px);
}

/* Footer Section (Lavender Background - Bottom Half) */
.footer-section {
  background-color: var(--color-lavender);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: #000;
}

.footer-tagline {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-normal);
  color: #333;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 2px solid #000;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
  color: #000;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .contact-section {
    padding: 100px 0;
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-title {
    font-size: 36px;
  }
  
  .contact-form-wrapper {
    padding: 48px;
  }
  
  .footer-section {
    padding: 64px 0;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer-left {
    align-items: flex-start;
  }
  
  .footer-right {
    align-items: flex-end;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .contact-title {
    font-size: 42px;
  }
}
