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

:root {
  --bg: #0a0a0a;
  --text: #e0e0e0;
  --accent: #00ff88;
  --accent-pink: #ff5da2;
  --accent-cyan: #00d4ff;
  --secondary: #1a1a1a;
  --border: #2a2a2a;
}

body {
  font-family: "Space Mono", monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

  /* Disable hover effects on touch devices */
  .service-card:hover,
  .project-card:hover,
  .contact-item:hover,
  .stat:hover {
    transform: none;
  }

  /* Improve tap targets */
  a,
  button,
  .nav-links a,
  .slider-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Remove cursor follower on touch devices */
  .cursor-follower {
    display: none;
  }
}

/* Grain texture overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-follower {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.0rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  opacity: 0;
}

nav.scrolled {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.95);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: "Bebas Neue", sans-serif;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links li {
  opacity: 0;
  transform: translateY(-20px);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

section {
  min-height: 100vh;
  padding: 8rem 5%;
  position: relative;
}

/* ============= ZOOM TRANSITION WRAPPER ============= */
.zoom-wrapper {
  position: relative;
  height: 200vh;
}

.zoom-content {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============= HERO SECTION ============= */
.hero {
  min-height: 100vh;
  padding: 3rem 5% 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.hero-side-text {
  writing-mode: vertical-rl;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 4px;
  color: var(--border);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
}

.hero-side-text.left {
  transform-origin: left;
}

.hero-side-text.right {
  transform-origin: right;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.hero-image-container {
  position: relative;
  width: 400px;
  height: 500px;
  z-index: 2;
  opacity: 0;
  transform: scale(0.9);
}

.image-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid var(--text);
  position: relative;
  z-index: 2;
  background: var(--secondary);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(30%) contrast(1.1);
  transition: all 0.5s ease;
}

.image-frame:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

.image-border-accent {
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 3px solid var(--accent);
  z-index: 1;
  transition: all 0.3s ease;
}

.hero-image-container:hover .image-border-accent {
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
}

.hero-title-overlay {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  max-width: 100%;
}

.hero-title-overlay h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--accent);
  text-align: left;
  opacity: 0;
  transform: scale(0.8);
}

.letter-row {
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

.letter-offset {
  margin-left: 2rem;
}

.name-block {
  display: block;
}

.letter-group {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
}

.hero-name-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 2px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.hero-name .name-char {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.hero-name:hover .name-char {
  animation: rollText 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-name .name-char:nth-child(1) {
  animation-delay: 0s;
}

.hero-name .name-char:nth-child(2) {
  animation-delay: 0.03s;
}

.hero-name .name-char:nth-child(3) {
  animation-delay: 0.06s;
}

.hero-name .name-char:nth-child(4) {
  animation-delay: 0.09s;
}

.hero-name .name-char:nth-child(5) {
  animation-delay: 0.12s;
}

.hero-name .name-char:nth-child(6) {
  animation-delay: 0.15s;
}

.hero-name .name-char:nth-child(7) {
  animation-delay: 0.18s;
}

.hero-name .name-char:nth-child(8) {
  animation-delay: 0.21s;
}

.hero-name .name-char:nth-child(9) {
  animation-delay: 0.24s;
}

.hero-name .name-char:nth-child(10) {
  animation-delay: 0.27s;
}

.hero-name .name-char:nth-child(11) {
  animation-delay: 0.3s;
}

.hero-name .name-char:nth-child(12) {
  animation-delay: 0.33s;
}

.hero-name .name-char:nth-child(13) {
  animation-delay: 0.36s;
}

@keyframes rollText {
  0% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-100%) rotateX(-180deg);
    color: var(--accent);
  }

  100% {
    transform: translateY(0) rotateX(-360deg);
  }
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  margin: 0 auto;
}

.hero-subtitle .subtitle-char {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.hero-subtitle:hover .subtitle-char {
  animation: rollText 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-subtitle .subtitle-char:nth-child(1) {
  animation-delay: 0s;
}

.hero-subtitle .subtitle-char:nth-child(2) {
  animation-delay: 0.03s;
}

.hero-subtitle .subtitle-char:nth-child(3) {
  animation-delay: 0.06s;
}

.hero-subtitle .subtitle-char:nth-child(4) {
  animation-delay: 0.09s;
}

.hero-subtitle .subtitle-char:nth-child(5) {
  animation-delay: 0.12s;
}

.hero-subtitle .subtitle-char:nth-child(6) {
  animation-delay: 0.15s;
}

.hero-subtitle .subtitle-char:nth-child(7) {
  animation-delay: 0.18s;
}

.hero-subtitle .subtitle-char:nth-child(8) {
  animation-delay: 0.21s;
}

.hero-subtitle .subtitle-char:nth-child(9) {
  animation-delay: 0.24s;
}

.hero-subtitle .subtitle-char:nth-child(10) {
  animation-delay: 0.27s;
}

.hero-subtitle .subtitle-char:nth-child(11) {
  animation-delay: 0.3s;
}

.hero-subtitle .subtitle-char:nth-child(12) {
  animation-delay: 0.33s;
}

.hero-subtitle .subtitle-char:nth-child(13) {
  animation-delay: 0.36s;
}

.scrambling .name-char,
.scrambling .subtitle-char {
  display: inline-block;
  animation: none;
}

/* ============= SERVICES SECTION ============= */
#services {
  opacity: 1;
  position: relative;
  z-index: 10;
  background: var(--bg);
  margin-top: -100vh;
  padding-top: 8rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 4rem;
  letter-spacing: -2px;
  font-family: "Bebas Neue", sans-serif;
}

.section-number {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 3rem;
  margin-top: 5rem;
  align-items: start;
}

.service-card {
  padding: 3rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  transition: all 0.3s;
  opacity: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
}

.service-number {
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

.service-card p {
  color: #888;
  margin-bottom: 2rem;
  line-height: 1.8;
  flex-grow: 1;
}

.tech-list {
  list-style: none;
  font-size: 0.8rem;
  color: #666;
}

.tech-list li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.tech-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============= NEW INFINITE CARD SLIDER STYLES ============= */
.skills-section {
  background: var(--bg);
  overflow: visible;
  padding: 8rem 5%;
  min-height: 100vh;
}

.skills-section .section-title,
.skills-section .section-number {
  position: relative;
  z-index: 20;
  opacity: 1;
  visibility: visible;
}

.slider-wrapper {
  margin-top: 5rem;
  position: relative;
  width: 100%;
  overflow: hidden;
  perspective: 1200px;
  display: flex;
  align-items: center;
  min-height: 550px;
}

/* Fade overlays */
.slider-wrapper::before,
.slider-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  z-index: 10;
  pointer-events: none;
  height: 100%;
}

.slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.cards-container {
  display: flex;
  gap: 2rem;
  width: fit-content;
  will-change: transform;
  padding: 2rem 0;
  align-items: center;
  /* ← ADD THIS LINE */
}

.skill-card {
  width: 340px;
  height: 440px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  /* ← ADD THIS LINE */
  cursor: grab;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  opacity: 0.3;
  filter: blur(2px);
}

.skill-card {
  vertical-align: middle;
}

.skill-card:active {
  cursor: grabbing;
}

/* Center card is highlighted */
.skill-card.center {
  opacity: 1;
  filter: blur(0);
  transform: scale(1.1) translateZ(0);
}

/* Cards near center are slightly faded */
.skill-card.near-center {
  opacity: 0.6;
  filter: blur(1px);
}

/* Card border colors - using website's accent colors */
.skill-card:nth-child(3n + 1) {
  border-color: var(--accent);
}

.skill-card:nth-child(3n + 2) {
  border-color: var(--accent-pink);
}

.skill-card:nth-child(3n + 3) {
  border-color: var(--accent-cyan);
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}

.skill-card:nth-child(3n + 1)::before {
  background: radial-gradient(circle at center,
      rgba(0, 255, 136, 0.15),
      transparent 70%);
}

.skill-card:nth-child(3n + 2)::before {
  background: radial-gradient(circle at center,
      rgba(255, 93, 162, 0.15),
      transparent 70%);
}

.skill-card:nth-child(3n + 3)::before {
  background: radial-gradient(circle at center,
      rgba(0, 212, 255, 0.15),
      transparent 70%);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.skill-card-number {
  font-size: 6rem;
  font-weight: 700;
  font-family: "Bebas Neue", sans-serif;
  line-height: 1;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-card:nth-child(3n + 1) .skill-card-number {
  color: var(--accent);
}

.skill-card:nth-child(3n + 2) .skill-card-number {
  color: var(--accent-pink);
}

.skill-card:nth-child(3n + 3) .skill-card-number {
  color: var(--accent-cyan);
}

.skill-card:hover .skill-card-number {
  transform: scale(1.1) rotateY(10deg);
  text-shadow: 0 0 30px currentColor;
}

.skill-card-icon {
  font-size: 5rem;
  opacity: 0.2;
  position: absolute;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  line-height: 1;
  /* ← ADD THIS LINE */
}

.skill-card:nth-child(3n + 1) .skill-card-icon {
  color: var(--accent);
  top: 10%;
  left: 10%;
}

.skill-card:nth-child(3n + 2) .skill-card-icon {
  color: var(--accent-pink);
  bottom: 10%;
  right: 10%;
}

.skill-card:nth-child(3n + 3) .skill-card-icon {
  color: var(--accent-cyan);
  top: 15%;
  right: 15%;
}

.skill-card:hover .skill-card-icon {
  opacity: 0.4;
  transform: scale(1.2) rotate(15deg);
}

.skill-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-card:hover .skill-card-title {
  transform: translateY(-5px);
  letter-spacing: 3px;
}

.skill-card:nth-child(3n + 1):hover .skill-card-title {
  color: var(--accent);
}

.skill-card:nth-child(3n + 2):hover .skill-card-title {
  color: var(--accent-pink);
}

.skill-card:nth-child(3n + 3):hover .skill-card-title {
  color: var(--accent-cyan);
}

.skill-card-subtitle {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* Navigation buttons */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 5%;
  width: 100%;
}

.slider-btn {
  padding: 1rem 3rem;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 50px;
}

.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

/* ============= PROJECTS SECTION ============= */
#projects {
  position: relative;
  overflow: hidden;
}

.projects-grid {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: 2rem 5%;
  padding-right: calc(5% + 120px);
}

.project-card {
  width: 80vw;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  transition: border-color 0.3s;
  opacity: 1;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  transition: width 0.3s;
}

.project-card:hover::before {
  width: 100%;
}

.project-card:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.project-card:nth-child(even) .project-info {
  order: 2;
}

.project-card:nth-child(even) .project-image {
  order: 1;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

.project-type {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.project-info p {
  color: #888;
  line-height: 1.8;
}

.project-image {
  width: 100%;
  height: 300px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: "VIEW PROJECT →";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

/* ============= ABOUT SECTION ============= */
#about {
  min-height: 100vh;
  padding: 8rem 5%;
  overflow: visible;
  position: relative;
}

/* About Introduction */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  margin-top: 5rem;
  align-items: start;
}

.about-intro-text {
  opacity: 0;
  transform: translateX(-50px);
}

.intro-label {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.intro-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: "Bebas Neue", sans-serif;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  line-height: 1.2;
}

.highlight-text {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.intro-heading:hover .highlight-text::after {
  transform: scaleX(1);
  transform-origin: left;
}

.intro-description {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Stats Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(50px);
}

.stat-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.6s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.stat-card:hover .stat-icon {
  filter: grayscale(0);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "Bebas Neue", sans-serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Subsection Headers */
.subsection-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 6rem 0 3rem;
}

.subsection-number {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  background: rgba(0, 255, 136, 0.05);
}

.subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: "Bebas Neue", sans-serif;
  color: var(--text);
  letter-spacing: 1px;
}

/* Professional Experience Timeline */
.experience-section {
  margin-top: 5rem;
}

.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateX(-30px);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -3.45rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 3px solid var(--accent);
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 2;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
  box-shadow: 0 0 20px var(--accent);
}

.timeline-content {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 1.5rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 10px 8px 0;
  border-color: transparent var(--border) transparent transparent;
  transition: border-color 0.3s;
}

.timeline-item:hover .timeline-content {
  border-color: var(--accent);
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover .timeline-content::before {
  border-color: transparent var(--accent) transparent transparent;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.timeline-title {
  font-size: 1.4rem;
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.timeline-company {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.timeline-description {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid var(--border);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.tag:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Certificates Section */
.certificates-section {
  margin-top: 6rem;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.certificate-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
  overflow: hidden;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-pink), var(--accent-cyan));
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.certificate-card:hover::before {
  transform: translateX(0);
}

.certificate-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.certificate-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: grayscale(1);
  transition: all 0.4s;
}

.certificate-card:hover .certificate-icon {
  filter: grayscale(0);
  transform: scale(1.2) rotate(5deg);
}

.certificate-title {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.certificate-issuer {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.certificate-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.certificate-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Quick Info Section */
.about-quick-info {
  margin-top: 6rem;
  padding: 3rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  position: relative;
  overflow: hidden;
}

.about-quick-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-pink), var(--accent-cyan));
}

.quick-info-title {
  font-size: 1.5rem;
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent);
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.info-item:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.info-item:hover .info-icon {
  filter: grayscale(0);
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

/* ============= CONTACT SECTION ============= */
#contact {
  background: var(--bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 4rem;
  align-items: start;
}

/* Left Side - Contact Info */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-intro h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: var(--accent);
}

.contact-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.9;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.contact-detail-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent);
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-detail-item:hover .contact-icon {
  background: var(--accent);
  color: var(--bg);
}

.contact-detail-content h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-detail-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.contact-detail-content a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-detail-content a:hover {
  color: var(--accent);
}

/* Social Links Section */
.social-links-section {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 2rem;
}

.social-links-section h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  text-align: center;
}

.social-link:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.social-link i {
  font-size: 1.8rem;
  color: var(--accent);
}

.social-link span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Right Side - Contact Form */
.contact-form-section {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 3rem;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-header h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-header p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.required {
  color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--border);
  opacity: 0.6;
}

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

.form-group select {
  cursor: pointer;
}

.submit-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 1.2rem 2.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  background: #00ff99;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn i {
  font-size: 1.2rem;
}

.form-status {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  border-radius: 4px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.form-status.error {
  display: block;
  background: rgba(255, 93, 162, 0.1);
  border: 1px solid var(--accent-pink);
  color: var(--accent-pink);
}

/* ============= FOOTER ============= */
footer {
  background: var(--secondary);
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ============= SCROLL INDICATOR ============= */
.scroll-indicator {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 1.2rem;
  color: var(--text);
}

.scroll-indicator:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.scroll-indicator.visible {
  opacity: 1;
}

/* ============= RESPONSIVE DESIGN ============= */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  section {
    padding: 6rem 4%;
  }

  .section-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .service-card {
    padding: 2.5rem;
  }

  .project-card {
    max-width: 800px;
    padding: 2.5rem;
    gap: 2rem;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  nav {
    padding: 1.5rem 4%;
  }

  .nav-links {
    gap: 2rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  section {
    padding: 5rem 4%;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-side-text {
    display: none;
  }

  .hero-image-container {
    width: 350px;
    height: 450px;
  }

  .hero-title-overlay {
    left: 55%;
  }

  .hero-title-overlay h1 {
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card h3 {
    font-size: 1.6rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-facts-box {
    position: static;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .skill-card {
    width: 300px;
    height: 400px;
  }

  .skill-card-number {
    font-size: 5rem;
  }

  .skill-card-icon {
    font-size: 4rem;
  }

  .project-card {
    min-width: 85vw;
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-info h3 {
    font-size: 1.8rem;
  }

  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile tablets */
@media (max-width: 768px) {
  nav {
    padding: 1.5rem 5%;
  }

  .logo {
    font-size: 1.3rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  section {
    padding: 4rem 5%;
    min-height: auto;
    overflow-x: hidden;
  }

  #services,
  #skills,
  #projects,
  #about,
  #contact {
    padding: 4rem 5%;
  }

  .hero {
    overflow-x: hidden;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 2.5rem;
  }

  .section-number {
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
  }

  .hero {
    padding: 2rem 5% 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .hero-main {
    gap: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual-wrapper {
    min-height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .hero-image-container {
    width: min(280px, 80vw);
    height: 380px;
    margin: 0 auto;
    position: relative;
  }

  .hero-title-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
  }

  .hero-title-overlay h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    text-align: center;
    letter-spacing: 0;
  }

  .hero-name-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .letter-offset {
    margin-left: 0.5rem;
  }

  .hero-name {
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }

  .service-card {
    padding: 2rem;
  }

  .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .service-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .tech-list {
    font-size: 0.75rem;
  }

  .skill-card {
    width: 260px;
    height: 360px;
  }

  .skill-card-number {
    font-size: 4.5rem;
  }

  .skill-card-icon {
    font-size: 3.5rem;
  }

  .skill-card-title {
    font-size: 1.1rem;
  }

  .skill-card-subtitle {
    font-size: 0.75rem;
  }

  .slider-wrapper {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    min-height: 500px;
  }

  .cards-container {
    align-items: center;
  }

  .slider-btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .project-card {
    min-width: 90vw;
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .project-card:nth-child(even) .project-info {
    order: 1;
  }

  .project-card:nth-child(even) .project-image {
    order: 2;
  }

  .project-info h3 {
    font-size: 1.6rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }

  .project-image {
    height: 250px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-title {
    font-size: 1.2rem;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .certificate-card {
    padding: 2rem 1.5rem;
  }

  .about-quick-info {
    padding: 2rem;
    margin-top: 4rem;
  }

  .quick-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-item {
    padding: 1.2rem;
  }

  .subsection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin: 4rem 0 2rem;
  }

  .contact-content {
    margin-top: 3rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .contact-item h4 {
    font-size: 0.75rem;
  }

  .contact-item p {
    font-size: 0.85rem;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .social-links a {
    font-size: 0.8rem;
  }

  .image-border-accent {
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
  }

  .hero-image-container:hover .image-border-accent {
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
  }

  .scroll-indicator {
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  footer {
    padding: 2.5rem 5%;
    font-size: 0.8rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  section {
    padding: 3rem 5%;
  }

  #services,
  #skills,
  #projects,
  #about,
  #contact {
    padding: 3rem 5%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
    margin-bottom: 2rem;
    letter-spacing: -1px;
  }

  .section-number {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }

  .hero {
    padding: 1.5rem 5% 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-visual-wrapper {
    min-height: 350px;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-image-container {
    width: min(240px, 75vw);
    height: 320px;
    margin: 0 auto;
  }

  .image-frame {
    border: 2px solid var(--text);
  }

  .image-border-accent {
    top: -8px;
    left: -8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid var(--accent);
  }

  .hero-image-container:hover .image-border-accent {
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
  }

  .hero-title-overlay {
    width: 85%;
    max-width: 320px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-title-overlay h1 {
    font-size: clamp(1.6rem, 11vw, 2.5rem);
    text-align: center;
    letter-spacing: 0;
  }

  .letter-offset {
    margin-left: 0.3rem;
  }

  .hero-name {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    letter-spacing: 1px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-align: center;
  }

  .services-grid {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .tech-list {
    font-size: 0.7rem;
  }

  .tech-list li {
    margin-bottom: 0.4rem;
  }

  .skill-card {
    width: 220px;
    height: 320px;
    padding: 1.5rem;
  }

  .skill-card-number {
    font-size: 3.5rem;
  }

  .skill-card-icon {
    font-size: 2.5rem;
  }

  .skill-card-title {
    font-size: 0.95rem;
  }

  .skill-card-subtitle {
    font-size: 0.7rem;
  }

  .slider-wrapper {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    min-height: 450px;
  }

  .slider-nav {
    gap: 1rem;
    margin-top: 2rem;
  }

  .slider-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }

  .project-card {
    min-width: 95vw;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.4rem;
  }

  .project-type {
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
  }

  .project-info p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .project-image {
    height: 200px;
  }

  .project-image::after {
    font-size: 0.8rem;
  }

  .about-content {
    gap: 2rem;
    margin-top: 2rem;
  }

  .about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .about-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
  }

  .stat {
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .about-facts-box {
    padding: 1.5rem;
  }

  .about-facts-box h4 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .fact-item {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .fact-item strong {
    min-width: 90px;
    display: block;
    margin-bottom: 0.2rem;
  }

  .contact-content {
    margin-top: 2rem;
  }

  .contact-info {
    gap: 1.2rem;
    margin-bottom: 2.5rem;
  }

  .contact-item {
    padding: 1.2rem;
  }

  .contact-item h4 {
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
  }

  .contact-item p {
    font-size: 0.8rem;
  }

  .social-links {
    gap: 1.2rem;
    margin-top: 2rem;
  }

  .social-links a {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .scroll-indicator {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  footer {
    padding: 2rem 5%;
    font-size: 0.75rem;
  }

  /* Ensure zoom transition works on mobile */
  .zoom-wrapper {
    height: 150vh;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-visual-wrapper {
    min-height: 300px;
  }

  .hero-image-container {
    width: min(200px, 70vw);
    height: 280px;
  }

  .hero-title-overlay {
    width: 90%;
    max-width: 280px;
  }

  .hero-title-overlay h1 {
    font-size: clamp(1.4rem, 13vw, 2.2rem);
    letter-spacing: 0;
  }

  .letter-offset {
    margin-left: 0.2rem;
  }

  .skill-card {
    width: 200px;
    height: 300px;
  }

  .skill-card-number {
    font-size: 3rem;
  }

  .skill-card-icon {
    font-size: 2rem;
  }

  .service-card,
  .project-card,
  .contact-item,
  .stat,
  .about-facts-box {
    padding: 1.2rem;
  }

  .section-title {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 2rem 5%;
  }

  .hero-visual-wrapper {
    min-height: 300px;
  }

  .hero-image-container {
    width: 250px;
    height: 320px;
  }

  section {
    min-height: auto;
    padding: 4rem 5%;
  }

  .zoom-wrapper {
    height: 100vh;
  }
}