/* ===== CSS Reset & Variables ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2640;
  --accent: #e8a838;
  --accent-hover: #d4952e;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #1a1a2e;
  --border: #e0e0e0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 20px auto 0;
}

section {
  padding: 96px 0;
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.logo svg {
  width: 40px;
  height: 40px;
  fill: var(--accent);
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
  padding: 120px 0 96px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 168, 56, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 168, 56, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 480px;
}

.hero-image-grid img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 180px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.hero-image-grid img:hover {
  transform: scale(1.03);
}

.hero-image-grid img:first-child {
  grid-row: span 2;
  height: 100%;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
  text-align: left;
}

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Services Section ===== */
.services {
  background: var(--bg-alt);
}

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

.service-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== Portfolio Section ===== */
.portfolio {
  background: var(--bg);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 22px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all var(--transition);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 38, 64, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

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

.portfolio-overlay h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.portfolio-overlay span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== About Section ===== */
.about {
  background: var(--bg-alt);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 12px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.about-feature svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.contact-card p,
.contact-card a {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
  background: var(--bg-alt);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  font-size: 1.05rem;
  padding: 16px 40px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== iOS Bottom Tab Bar (hidden on desktop) ===== */
.ios-tab-bar {
  display: none;
}

/* ===== Desktop Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    justify-content: center;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================
   iOS APP-STYLE MOBILE EXPERIENCE
   ========================================================== */
@media (max-width: 768px) {

  /* --- iOS System Font & Base --- */
  body {
    font-family: -apple-system, 'SF Pro Text', 'SF Pro Display', 'Inter', 'Helvetica Neue', sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior-y: auto;
  }

  section {
    padding: 48px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* --- iOS Large Title Header --- */
  .header {
    background: rgba(249, 249, 249, 0.94);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
  }

  .header .container {
    height: 56px;
  }

  .logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  /* Hide desktop nav, show hamburger */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(249, 249, 249, 0.98);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    flex-direction: column;
    padding: 100px 28px 60px;
    gap: 4px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-radius: 14px;
    transition: background 0.2s ease;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:active {
    background: rgba(0, 0, 0, 0.06);
  }

  .nav-cta {
    margin-top: 12px;
    justify-content: center;
    background: var(--accent) !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  /* --- iOS Section Headers (Large Title style) --- */
  .section-header {
    margin-bottom: 28px;
    text-align: left;
  }

  .section-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    display: block;
  }

  .section-header h2::after {
    left: 0;
    transform: none;
  }

  .section-header p {
    font-size: 0.95rem;
    text-align: left;
    margin: 12px 0 0;
    color: #8e8e93;
  }

  /* --- iOS Hero --- */
  .hero {
    min-height: auto;
    padding: 80px 0 48px;
    border-radius: 0 0 28px 28px;
  }

  .hero-content h1 {
    font-size: 1.9rem;
    letter-spacing: -0.5px;
    text-align: left;
  }

  .hero .container {
    text-align: left;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 28px;
    text-align: left;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .btn:active {
    transform: scale(0.97);
    opacity: 0.85;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
  }

  .stat {
    text-align: center;
    position: relative;
  }

  .stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 0.5px;
    background: rgba(255, 255, 255, 0.2);
  }

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

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

  /* --- iOS Service Cards --- */
  .services {
    background: var(--bg);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--bg-alt);
    box-shadow: none;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .service-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.06);
  }

  .service-card:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.04);
  }

  .service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-bottom: 0;
    border-radius: 14px;
  }

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

  .service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
    font-weight: 600;
  }

  .service-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #8e8e93;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- iOS Segmented Control (Portfolio Filters) --- */
  .portfolio-filters {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 10px;
    padding: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .filter-btn.active {
    background: #fff;
    color: var(--primary-dark);
    border-color: transparent;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0.5px 1px rgba(0, 0, 0, 0.06);
  }

  .filter-btn:hover {
    background: transparent;
    border-color: transparent;
    color: var(--text);
  }

  .filter-btn:active {
    opacity: 0.6;
  }

  /* --- iOS Portfolio Grid --- */
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .portfolio-item {
    border-radius: 14px;
    aspect-ratio: 1;
  }

  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
    padding: 14px;
  }

  .portfolio-overlay h4 {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .portfolio-overlay span {
    font-size: 0.7rem;
  }

  /* --- iOS About Section --- */
  .about .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-image img {
    height: 240px;
    border-radius: 20px;
  }

  .about-content h2 {
    font-size: 1.7rem;
    font-weight: 800;
  }

  .about-content p {
    font-size: 0.95rem;
    color: #8e8e93;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .about-feature {
    background: var(--bg);
    padding: 14px 16px;
    border-radius: 14px;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
  }

  /* --- iOS CTA Banner --- */
  .cta-banner {
    padding: 48px 0;
    border-radius: 28px;
    margin: 0 12px;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
    color: #fff;
  }

  .cta-banner p {
    font-size: 0.95rem;
  }

  .cta-banner .btn-primary {
    padding: 16px 32px;
    border-radius: 14px;
  }

  /* --- iOS Contact Cards --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info {
    gap: 8px;
  }

  .contact-card {
    background: var(--bg-alt);
    padding: 18px 20px;
    border-radius: 16px;
    gap: 16px;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease;
  }

  .contact-card:active {
    transform: scale(0.98);
  }

  .contact-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
  }

  .contact-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .contact-card p,
  .contact-card a {
    font-size: 0.88rem;
  }

  .contact-map {
    border-radius: 20px;
    min-height: 280px;
  }

  .contact-map iframe {
    min-height: 280px;
  }

  /* --- iOS Footer --- */
  .footer {
    padding: 48px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
  }

  .footer ul a,
  .footer-contact-item {
    font-size: 0.88rem;
  }

  .footer-bottom {
    padding: 20px 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    font-size: 0.78rem;
  }

  /* --- iOS Bottom Tab Bar --- */
  .ios-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(249, 249, 249, 0.94);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
  }

  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #8e8e93;
    transition: color 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
  }

  .tab-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.2s ease;
  }

  .tab-item.active {
    color: var(--accent);
  }

  .tab-item:active {
    transform: scale(0.88);
  }

  .tab-call {
    color: #34c759;
  }

  .tab-call.active {
    color: #34c759;
  }

  /* --- iOS Lightbox (Sheet Style) --- */
  .lightbox {
    padding: 0;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.5);
  }

  .lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    animation: ios-sheet-up 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .lightbox-close {
    top: auto;
    bottom: calc(80vh + 12px);
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    backdrop-filter: blur(10px);
  }

  @keyframes ios-sheet-up {
    from {
      transform: translateY(100%);
      opacity: 0.5;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* --- iOS Scroll Animations (softer) --- */
  .fade-up {
    transform: translateY(16px);
    transition: opacity 0.45s cubic-bezier(0.32, 0.72, 0, 1),
                transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  }
}

/* ===== Extra small phones ===== */
@media (max-width: 380px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

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

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .ios-tab-bar {
    padding: 4px 0;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .tab-item {
    font-size: 0.6rem;
    padding: 4px 8px;
  }

  .tab-item svg {
    width: 22px;
    height: 22px;
  }
}
