/* --- VARIABLES & SETUP --- */
:root {
  /* 웹폰트 로드 (Poppins + Noto Sans KR) - 폰트가 로드되지 않으면 기본 폰트를 사용합니다 */
  --primary-font: 'Poppins', 'Noto Sans KR', sans-serif;
  --body-font: 'Noto Sans KR', 'Poppins', sans-serif;

  /* === 통일된 컬러 시스템 === */
  /* 배경 색상 */
  --color-bg: #121212;
  --color-bg-secondary: #1a1a1a;
  --color-bg-tertiary: #0a0a0a;
  --color-surface: #242424;
  --color-surface-hover: #2b2b2b;

  /* 텍스트 색상 (가독성 개선) */
  --color-text: #e0e0e0;
  --color-text-secondary: #b0b0b0; /* 개선: #a0a0a0 → #b0b0b0 */
  --color-text-muted: #888888;
  --color-white: #ffffff;
  --color-black: #000000;

  /* 테두리 색상 */
  --color-border: #333333;
  --color-border-light: #404040;

  /* 그라디언트 포인트 컬러 */
  --gradient-start: #FDB813;
  --gradient-end: #FCAF45;
  --gradient-accent: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));

  /* === 통일된 Border Radius 시스템 === */
  --radius-sm: 6px;    /* 작은 요소 (버튼, 입력 필드) */
  --radius-md: 12px;   /* 중간 요소 (카드) */
  --radius-lg: 16px;   /* 큰 요소 (섹션 카드) */
  --radius-xl: 20px;   /* 특대 요소 (히어로 카드) */
  --radius-round: 50px; /* 둥근 버튼/태그 */
  --radius-circle: 50%; /* 원형 */

  /* === 통일된 타이포그래피 스케일 === */
  /* 제목 크기 */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 2rem;     /* 32px */
  --text-4xl: 2.5rem;   /* 40px */
  --text-5xl: 3.5rem;   /* 56px */

  /* 레이아웃 */
  --header-height: 70px;
  --container-padding: 1.5rem;
  --section-padding: 6rem;

  /* 트랜지션 */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* 그림자 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Google Fonts import (fallback if bundler handles fonts separately) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700;900&family=Poppins:wght@400;600;800&display=swap');

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

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

body {
  font-family: var(--body-font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3 {
  font-family: var(--primary-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-xl); }

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--gradient-end);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul { list-style: none; }

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* 카드/표면 스타일 */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

/* 버튼 재정의 */
.btn-primary, .submit-button {
  background: var(--gradient-accent);
  color: var(--color-black);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  border: none;
  transition: transform var(--transition-fast);
}
.btn-primary:focus,
.submit-button:focus {
  outline: 3px solid rgba(253, 184, 19, 0.3);
}
.btn-primary:hover, .submit-button:hover {
  transform: translateY(-3px);
}

.content-section {
  padding: var(--section-padding) 0;
  position: relative;
  background-color: var(--color-bg-secondary);
  z-index: 2;
}

.content-section:nth-of-type(even) {
    background-color: var(--color-bg);
}

/* --- HEADER --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: all var(--transition-fast);
}

#header.scrolled {
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  height: calc(var(--header-height) - 10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* stronger glass effect when scrolled */
#header.scrolled {
  background: linear-gradient(180deg, rgba(11,15,23,0.6), rgba(11,15,23,0.45));
  backdrop-filter: blur(8px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
}

.logo img {
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transition: width var(--transition-fast);
}

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

.nav-link.active {
  color: #fff;
  font-weight: 800;
}

.nav-link { position: relative; }
.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 3px;
  transition: width 0.28s ease;
}
.nav-link:hover::before, .nav-link.active::before { width: 100%; }

.controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.lang-switcher a {
  color: var(--color-text-secondary);
}

.lang-switcher a.active {
  color: #ffffff;
}

#mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  width: 24px;
  height: 24px;
  position: relative;
}

#mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all var(--transition-fast);
  position: absolute;
}

#mobile-menu-toggle span:nth-child(1) { top: 4px; }
#mobile-menu-toggle span:nth-child(2) { top: 11px; }
#mobile-menu-toggle span:nth-child(3) { bottom: 4px; }

#mobile-menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
#mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
#mobile-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* Header hide/show on scroll */
#header.header-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
#header {
  transition: transform 0.35s cubic-bezier(.22,.9,.25,1), opacity 0.25s ease;
}

/* --- HERO SECTION (#home) --- */
#home {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.7);
}

.hero-content {
  z-index: 1;
  padding: 0 var(--container-padding);
}

.hero-content h1 {
  margin-bottom: 1rem;
  height: 4rem; /* For typewriter */
}

/* Hero refinements */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 8vh;
  text-align: center;
}
.hero-content h1 { font-size: 3.6rem; letter-spacing: -0.02em; }
.hero-subline { font-size: 1.125rem; opacity: 0.95; margin-top: 0.5rem; }

/* Hero CTA */
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; }
.hero-cta .btn-primary { padding: 1rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }
.hero-cta .btn-secondary { padding: 0.9rem 1.2rem; border-radius: 12px; }

/* simple fade-in animation utility */
.fade-in { opacity: 0; transform: translateY(8px); animation: fadeInUp 0.7s ease forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* project hover polish */
.project-item:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.project-item img { transition: transform 0.6s ease; }
.project-item:hover img { transform: scale(1.04); }

/* responsive hero and typography */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3.0rem; }
  .hero-subline { font-size: 1rem; }
  .hero-cta { flex-direction: column; gap: 0.75rem; }
}
@media (max-width: 720px) {
  .hero-content h1 { font-size: 2.2rem; line-height: 1.05; }
  .hero-subline { font-size: 0.98rem; opacity: 0.96; }
  .hero-wrapper { padding: 3.2rem 1.2rem; }
  .nav { gap: 0.6rem; }
}

/* stronger contrast CTA shadow */
.btn-primary { box-shadow: 0 8px 30px rgba(19, 22, 50, 0.25); }
.btn-primary:active { transform: translateY(1px) scale(0.997); }

/* Footer spacing when using theme footer */
#footer { padding: 3rem 0; background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.8)); }
.footer-content { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-brand { display:flex; gap:1rem; align-items:center; }
.footer-links-group { display:flex; gap:2.5rem; margin-top:1rem; }

/* Button styles (modern gradient) */
.btn-primary, .submit-button {
  display: inline-block;
  background: linear-gradient(90deg, #00d4ff 0%, #7f5af0 50%, #ff7ab6 100%);
  color: #0b0b0b;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(127,90,240,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-weight: 800;
}
.btn-primary:hover, .submit-button:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(127,90,240,0.14); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--color-text);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

/* Contact form status messages */
.contact-status {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
}
.contact-status.info { background: rgba(255,255,255,0.03); color: var(--color-text-secondary); border: 1px solid rgba(255,255,255,0.02); }
.contact-status.success { background: linear-gradient(90deg, rgba(124, 255, 178, 0.08), rgba(120, 220, 180, 0.06)); color: #c8ffd9; border: 1px solid rgba(88,200,130,0.08); }
.contact-status.error { background: linear-gradient(90deg, rgba(255,100,100,0.06), rgba(255,80,80,0.04)); color: #ffd6d6; border: 1px solid rgba(255,80,80,0.08); }

/* visually hide honeypot while keeping it accessible to assistive tech */
.hidden-hp {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Slightly lighter surface for hero/video overlay */
.video-background::after { background: linear-gradient(180deg, rgba(6,6,6,0.55), rgba(12,12,12,0.75)); }

.typewriter-cursor {
  animation: blink 0.7s infinite;
  color: var(--gradient-end);
}

.hero-subline {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 20px;
}
.scroll-down::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: #fff;
  border-radius: 2px;
  animation: scroll-anim 2s infinite;
}

/* --- ABOUT SECTION (#about) --- */
.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.about-text {
  flex: 1.2;
}

.about-text h3 {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

/* --- VALUES SECTION (#values) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.value-card .value-icon {
  margin: 0 auto 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  transition: transform var(--transition-fast);
}

.value-card .value-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

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

.value-card h3 {
  margin-bottom: 0.5rem;
}

/* --- PROJECT SECTIONS --- */
.project-grid-ai {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "a b"
    "a c";
  gap: 2rem;
}

.project-grid-ai .project-card:nth-child(1) { grid-area: a; }
.project-grid-ai .project-card:nth-child(2) { grid-area: b; }
.project-grid-ai .project-card:nth-child(3) { grid-area: c; }


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

.project-item {
  width: 30%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative; /* Added for .project-overlay positioning */
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

/* --- CONTACT PAGE STYLES --- */
.contact-page .contact-hero {
  padding: 5rem 0 2rem;
  text-align: center;
}
.contact-page .page-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}
.contact-page .page-subtitle {
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-info {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--color-text); }
.contact-item p { color: var(--color-text-secondary); margin-bottom: 0.75rem; }
.contact-quick { margin-top: 1rem; font-size: 0.95rem; color: var(--color-text-secondary); }

.contact-form-section {
  background: transparent;
}
.contact-form {
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
/* Contact form row styles */
.contact-form .form-row {
  margin-bottom: 1.5rem;
}

.contact-form .form-row label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.required { color: #f39c12; margin-left: 0.15rem; }

.form-actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.submit-button, .reset-button, .btn-primary, .btn-secondary { cursor: pointer; padding: 0.65rem 1rem; border-radius: 6px; border: none; font-weight: 700; }
.submit-button { background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); color: #111; }
.reset-button { background: transparent; color: var(--color-text-secondary); border: 1px solid rgba(255,255,255,0.04); }

.location-section { margin-top: 2.5rem; }
.location-wrapper { display: grid; grid-template-columns: 1fr 420px; gap: 1.5rem; align-items: start; }

/* Teaser on main page */
.about-teaser { text-align: center; padding: 3rem 1rem; }
.about-teaser .teaser-text { color: var(--color-text-secondary); max-width: 780px; margin: 0 auto 1rem; }
.teaser-actions { margin-top: 1rem; display: flex; gap: 0.75rem; justify-content: center; }

/* Popup overlay used by scripts */
.popup-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 9999; }
.popup-overlay.show { opacity: 1; pointer-events: auto; }
.popup-content { background: #0f0f0f; padding: 1.25rem 1.5rem; border-radius: 8px; text-align: center; color: var(--color-text); min-width: 280px; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.popup-icon { font-size: 2rem; color: var(--gradient-end); margin-bottom: 0.5rem; }
.popup-close-btn { margin-top: 0.75rem; padding: 0.5rem 0.8rem; border-radius: 6px; border: none; background: rgba(255,255,255,0.03); color: var(--color-text); }

/* Responsive adjustments */
@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; }
  .location-wrapper { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}


.project-card .project-image {
  width: 100%;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  transform: translateY(25%);
  transition: transform var(--transition-fast);
}
.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.project-category {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* --- CONTACT SECTION (#contact) --- */
#contact { 
  text-align: center;
  overflow: hidden; /* To contain the canvas */
}

#contact .container {
  position: relative;
  z-index: 2; /* To keep content above canvas */
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Behind content */
}

#contact p { max-width: 600px; margin: 1.5rem auto 2.5rem; }

.cta-button-wrapper {
  position: relative;
  display: inline-block;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  color: #000;
  font-weight: 700;
  border-radius: 50px;
  transition: all var(--transition-fast);
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  color: #000;
}

.cta-button.success {
  background: var(--gradient-end);
}

/* --- FOOTER --- */
#footer {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  padding: 8rem 0 2rem;
  margin-top: 0;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 184, 19, 0.5), transparent);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: calc(var(--header-height) + 2rem);
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

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

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-col li {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--gradient-start);
}

.footer-bottom {
  padding-top: 2rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.6875rem;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  #footer {
    padding: 5rem 0 2rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

/* --- PROJECT MODAL --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: transparent !important;
  padding: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  gap: 0;
  transform: scale(0.9);
  transition: transform 0.4s ease;
  overflow: hidden;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.modal-media {
  flex: none;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 90vh;
}

.modal-media img,
.modal-media video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

#modal-youtube-player {
  text-align: center;
}

.modal-media iframe {
  width: 90vw;
  height: 50.625vw;
  max-width: 160vh;
  max-height: 80vh;
  border: none;
  margin: 0 auto;
  display: block;
}

.modal-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 250px;
}

.modal-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.modal-details span {
  display: block;
  color: var(--gradient-end);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.modal-details p {
  color: var(--color-text);
  line-height: 1.5;
}


/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-title span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.animate-title.visible span {
  transform: translateY(0);
}

@keyframes blink {
  50% { opacity: 0; }
}
@keyframes scroll-anim {
  0% { transform: translateY(0) translateX(-50%); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: translateY(10px) translateX(-50%); opacity: 0; }
  100% { opacity: 0; }
}


/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .about-content { flex-direction: column; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid-ai { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; }
  .footer-content { flex-direction: column; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Fix for mobile header layout */
  #header .container {
    justify-content: space-between;
    width: 100%;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-slow);
    padding-top: var(--header-height);
  }
  .nav-menu.mobile-active {
    right: 0;
  }

  #mobile-menu-toggle {
    display: block;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .content-section { padding: 4rem 0; }
  .values-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; text-align: center; gap: 1.5rem; }

  /* Modal responsive styles */
  .modal-content {
    flex-direction: column;
    width: 95%;
    max-width: 95vw;
    max-height: 95vh;
    padding: 1.5rem;
    gap: 1rem;
  }

  .modal-media {
    height: 60vh;
    min-height: 300px;
    flex: none;
  }

  .modal-details {
    flex: none;
    min-width: auto;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

/* --- ULTRA ENHANCED FOOTER STYLES --- */
#footer {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  padding-top: 0;
  /* margin-top: 8rem; */
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(253, 184, 19, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  animation: footerGlow 20s ease-in-out infinite;
}

@keyframes footerGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Animated Particles */
.footer-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none !important;
}

.footer-particles * {
  pointer-events: none !important;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 3s; }
.particle:nth-child(3) { left: 50%; animation-delay: 6s; }
.particle:nth-child(4) { left: 70%; animation-delay: 9s; }
.particle:nth-child(5) { left: 90%; animation-delay: 12s; }

@keyframes floatParticle {
  0% {
    bottom: 0;
    opacity: 0;
    transform: translateX(0) scale(0);
  }
  10% {
    opacity: 1;
    transform: translateX(10px) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateX(-10px) scale(1);
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: translateX(0) scale(0);
  }
}

/* Animated Wave */
.footer-wave {
  position: absolute;
  top: -99px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 2;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
}

.wave-path-1 {
  animation: waveAnimation 10s ease-in-out infinite;
}

.wave-path-2 {
  animation: waveAnimation 8s ease-in-out infinite reverse;
}

@keyframes waveAnimation {
  0%, 100% {
    d: path("M0,50 C360,100 1080,0 1440,50 L1440,100 L0,100 Z");
  }
  50% {
    d: path("M0,50 C360,0 1080,100 1440,50 L1440,100 L0,100 Z");
  }
}

/* Newsletter Section */
.footer-newsletter {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, rgba(253, 184, 19, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.highlight-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-text p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

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

.form-group {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.form-group:focus-within {
  border-color: var(--gradient-start);
  box-shadow: 0 0 30px rgba(253, 184, 19, 0.2);
}

.form-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-size: 1rem;
  outline: none;
}

.form-group input::placeholder {
  color: var(--color-text-secondary);
}

.newsletter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(253, 184, 19, 0.4);
}

.newsletter-features {
  display: flex;
  gap: 2rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.newsletter-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-features i {
  color: var(--gradient-start);
  font-style: normal;
}

.footer-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--gradient-start), 
    var(--gradient-end), 
    transparent
  );
}

@media (max-width: 768px) {
  #footer {
    padding: 4rem 0 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- CONTACT FORM STYLES --- */
.contact-form-wrapper {
  margin-top: 3rem;
  max-width: 700px; /* Increased max-width for a more spacious layout */
  margin-left: auto;
  margin-right: auto;
  padding: 3rem; /* Increased padding */
  background-color: var(--color-surface);
  border-radius: 4px; /* Further reduced border-radius */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); /* Adjusted shadow */
  text-align: left;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 4px; /* Consistent border-radius */
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.contact-form .form-group:focus-within {
  border-color: var(--gradient-start);
  box-shadow: 0 0 15px rgba(253, 184, 19, 0.15);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Emphasized border-bottom */
  border-radius: 4px;
  color: var(--color-text);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: rgba(253, 184, 19, 0.3);
  border-bottom-color: var(--gradient-start);
  box-shadow: 0 0 15px rgba(253, 184, 19, 0.15);
  outline: none;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover, 
.contact-form input:-webkit-autofill:focus, 
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  -webkit-box-shadow: 0 0 0px 1000px var(--color-bg) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px; /* Increased min-height */
}

.contact-form .submit-button {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 4px; /* Further reduced border-radius */
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.contact-form .submit-button:hover {
  transform: translateY(-3px); /* Slightly more lift on hover */
  box-shadow: 0 12px 25px rgba(253, 184, 19, 0.25);
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  .contact-form .submit-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* --- POPUP STYLES --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
}

.popup-content {
  background: var(--color-surface);
  border-radius: 6px;
  padding: 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

.popup-content h3 {
  color: var(--color-text);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.popup-content p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.popup-close-btn {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(253, 184, 19, 0.3);
}

@media (max-width: 768px) {
  .popup-content {
    padding: 2rem;
  }
  
  .popup-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .popup-content h3 {
    font-size: 1.3rem;
  }
}

/* --- PRODUCT GRID STYLES (GSTAR KOREA Style) --- */
.projects-grid-section {
  padding: 4rem 0;
  background-color: var(--color-bg);
}

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

.product-item {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-surface);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    transparent 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-fast);
}

.product-item:hover .product-overlay {
  transform: translateY(0);
  opacity: 1;
}

.product-info {
  color: white;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: white;
}

.product-category {
  font-size: 0.9rem;
  color: var(--gradient-start);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Projects Hero Section */
.projects-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg));
  text-align: center;
  position: relative;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* No Projects Message */
.no-projects {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-surface);
  border-radius: 6px;
  border: 2px dashed var(--color-border);
}

.no-projects p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Modal Styles for Project Details - Removed duplicate */

/* Responsive Design */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .page-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .projects-hero {
    padding: 6rem 0 3rem;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

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

  .product-image {
    height: 220px;
  }

  .modal-content {
    width: 95%;
    max-height: 95%;
  }

  .modal-content {
    width: 98%;
    max-height: 90vh;
    height: auto;
  }
}

@media (max-width: 480px) {
  .modal-body {
    flex-direction: column;
    max-height: calc(90vh - 4rem);
    overflow-y: auto;
  }

  .modal-image {
    min-height: 250px;
    max-height: 50vh;
    order: 1;
  }

  .modal-image img,
  .modal-image video {
    max-width: 90vw;
    max-height: 40vh;
  }

  #modal-youtube-player {
    max-width: 90vw;
    flex: 1 1 auto;
  }

  .modal-details {
    min-width: 150px !important;
    max-width: 200px !important;
    width: 200px !important;
    padding: 1rem !important;
  }

  .modal-details {
    order: 2;
    max-height: none;
    overflow: visible;
  }

  .modal-details h2 {
    font-size: 1.5rem;
  }
}

/* Media Overlay Styles */
.media-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.media-overlay .play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.media-overlay .play-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all var(--transition-fast);
}

.product-item:hover .media-overlay {
  background: rgba(253, 184, 19, 0.9);
  transform: translate(-50%, -50%) scale(1.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.product-item:hover .media-overlay .play-icon svg {
  transform: scale(1.1);
  fill: white;
}

.video-overlay,
.youtube-overlay {
  opacity: 0.9;
}

.product-item:hover .video-overlay,
.product-item:hover .youtube-overlay {
  opacity: 1;
}

/* Modal optimization styles removed - main modal styles above handle sizing */

/* --- COMMON PAGE HERO STYLES --- */
.projects-hero,
.about-hero,
.contact-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg));
  text-align: center;
  position: relative;
}

/* --- ABOUT PAGE STYLES --- */
.about-page {
  background-color: var(--color-bg);
  min-height: 100vh;
}

.about-content {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #ffffff;
  text-align: left;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 8rem;
}

.identity-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.identity-image img {
  width: 100%;
  height: auto;
  display: block;
}

.identity-text {
  flex: 1.2;
}

.identity-text .section-title {
  text-align: left;
}

.identity-text h3 {
  color: var(--gradient-start);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-weight: 400;
  word-break: keep-all;
}

.description-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  word-break: keep-all;
}

.business-area {
  margin-bottom: 8rem;
}

.business-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.business-text {
  flex: 1 auto;
  max-width: 50%;
}

.business-text h3 {
  color: var(--gradient-start);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

.business-image {
  flex: 1 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.business-image img {
  width: 100%;
  height: auto;
  display: block;
}

.company-values {
  margin-bottom: 8rem;
}

.company-values .section-title {
  text-align: center;
}

.company-values .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.value-card {
  background: transparent;
  padding: 2rem 1rem;
  border-radius: 0;
  transition: all 0.3s ease;
  border: none;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card .value-icon {
  margin: 0 auto 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  transition: transform 0.3s ease;
}

.value-card .value-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

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

.value-card h3 {
  color: #ffffff;
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.value-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.our-crew {
  margin-bottom: 4rem;
}

.our-crew .section-title {
  text-align: center;
}

.our-crew .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.crew-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

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

.crew-member {
  text-align: center;
  background: transparent;
  padding: 1.5rem;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.crew-member:hover {
  transform: translateY(-8px);
}

.crew-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(253, 184, 19, 0.2), rgba(252, 175, 69, 0.2));
  border: 2px solid rgba(253, 184, 19, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.crew-avatar.silhouette {
  background: linear-gradient(135deg, rgba(253, 184, 19, 0.15), rgba(252, 175, 69, 0.15));
}

.crew-avatar.silhouette svg {
  width: 60%;
  height: 60%;
  color: var(--gradient-start);
  opacity: 0.8;
}

.crew-member:hover .crew-avatar {
  border-color: var(--gradient-start);
  box-shadow: 0 0 30px rgba(253, 184, 19, 0.3);
  transform: scale(1.05);
}

.crew-member h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.crew-role {
  color: var(--gradient-start);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crew-desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .company-identity,
  .business-content {
    flex-direction: column;
    gap: 3rem;
  }

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

  .section-title {
    text-align: center;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .projects-hero,
  .about-hero,
  .contact-hero {
    padding: 5rem 0 3rem;
  }

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

  .crew-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .lead-text {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* New sections for main page */

/* Intro Section */
.intro-section {
  text-align: center;
  padding: 4rem 0;
}

.intro-text {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.intro-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.intro-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-icon svg {
  width: 30px;
  height: 30px;
  stroke: white;
}

.intro-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.intro-card p {
  color: #666;
  line-height: 1.6;
}

.intro-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Section */
.services-section {
  background: #f8f9fa;
  padding: 5rem 0;
}

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

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

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

.service-icon svg {
  width: 35px;
  height: 35px;
  stroke: white;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #764ba2;
}

/* Portfolio Section */
.portfolio-section {
  padding: 5rem 0;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-top: -0.5rem;
  margin-bottom: 3rem;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-category {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay h4 {
  color: white;
  font-size: 1.25rem;
  margin: 0;
}

.portfolio-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 5rem 0;
  text-align: center;
  color: white;
}

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

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.cta-section .btn-primary {
  background: white;
  color: #667eea;
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.cta-section .btn-secondary {
  color: white;
  border-color: white;
}

.cta-section .btn-secondary:hover {
  background: white;
  color: #667eea;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .intro-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-title {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1.1rem;
  }
}

/* ===========================
   NEW MAIN PAGE SECTIONS
   =========================== */

/* Business Areas Section */
.business-areas {
  background: linear-gradient(135deg, var(--color-bg), var(--color-bg-secondary));
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; /* Further reduced from 1.5rem */
  margin-top: 1.25rem; /* Further reduced from 1.5rem */
}

.business-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure equal heights */
}

/* Removed whole card hover effect to avoid misleading clickability */
/* Only the business-link button should have hover effect */

.business-card .business-image {
  position: relative;
  width: 100%;
  height: 220px; /* Reduced from 240px */
  overflow: hidden;
  flex-shrink: 0;
}

.business-card .business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Removed image zoom on card hover to avoid misleading clickability */

.business-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem; /* Reduced from 2rem */
}

.business-tag {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #000;
  padding: 0.4rem 1rem; /* Reduced from 0.5rem 1.25rem */
  border-radius: 50px;
  font-size: 0.8rem; /* Reduced from 0.875rem */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.business-card .business-content {
  padding: 1.25rem 2.2rem 3rem; /* Further reduced from 1.5rem */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.business-card .business-content h3 {
  font-size: 1.65rem; /* Further reduced from 1.75rem */
  margin-bottom: 0.6rem; /* Further reduced from 0.75rem */
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.business-card .business-content p {
  color: var(--color-text-secondary);
  line-height: 1.6; /* Further reduced from 1.7 */
  margin-bottom: 0.6rem; /* Further reduced from 0.75rem */
  font-size: 0.92rem; /* Further reduced from 0.95rem */
  flex: 1; /* Allow text to fill available space */
  word-break: keep-all;
  text-align: center;
}

.business-card .business-content strong {
  color: #eee;
}

.business-features {
  list-style: none;
  margin-bottom: 0.8rem; /* Further reduced from 1rem */
}

.business-features li {
  color: var(--color-text);
  padding: 0.3rem 0; /* Further reduced from 0.4rem */
  font-size: 0.88rem; /* Further reduced from 0.9rem */
}

.business-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem; /* Reduced from 0.75rem */
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #000;
  padding: 0.75rem 1.5rem; /* Reduced from 0.875rem 1.75rem */
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem; /* Reduced from 0.95rem */
  transition: all var(--transition-fast);
  margin-top: auto; /* Push to bottom */
}

.business-link:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 25px rgba(253, 184, 19, 0.4);
  color: #000;
}

.business-link svg {
  width: 18px;
  height: 18px;
  stroke: #000;
  transition: transform var(--transition-fast);
}

.business-link:hover svg {
  transform: translateX(3px);
}

/* Capabilities Section - Simple, non-interactive design */
.capabilities-section {
  background: var(--color-bg-secondary);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  color: var(--color-text-secondary);
  font-size: 1.05rem; /* Reduced from 1.125rem */
  max-width: 730px;
  margin: 0 auto 2rem; /* Reduced from 3rem */
  text-align: center;
  word-break: keep-all;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.capability-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.capability-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: rgba(253, 184, 19, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.capability-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gradient-start);
  stroke-width: 2;
}

.capability-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 600;
}

.capability-item p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
  word-break:keep-all;
  text-align: left;
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1.75rem;
  }
}

@media (max-width: 900px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .capability-item {
    padding: 1.75rem 1.25rem;
  }
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, rgba(253, 184, 19, 0.03), rgba(252, 175, 69, 0.02));
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23FDB813" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Projects Preview Section */
.projects-preview {
  text-align: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.view-all-link {
  color: var(--gradient-start);
  font-weight: 600;
  font-size: 1.125rem;
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  transform: translateX(5px);
  color: var(--gradient-end);
}

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

.preview-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  transition: all var(--transition-fast);
  display: block;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 0;
}

.preview-card:hover::before {
  opacity: 0.1;
}

.preview-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--gradient-start);
  box-shadow: 0 25px 50px rgba(253, 184, 19, 0.2);
}

.preview-card > * {
  position: relative;
  z-index: 1;
}

.preview-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.preview-card:hover .preview-icon {
  transform: scale(1.1) rotate(10deg);
}

.preview-icon svg {
  width: 40px;
  height: 40px;
  stroke: #000;
  stroke-width: 2.5;
}

.preview-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.preview-card p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.preview-card .arrow {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--gradient-start);
  transition: transform var(--transition-fast);
}

.preview-card:hover .arrow {
  transform: translateX(10px);
}

/* Main CTA Section */
.main-cta-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.main-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(253, 184, 19, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(252, 175, 69, 0.08) 0%, transparent 50%);
  animation: ctaGlow 15s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.6; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(10%); }
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   CONTACT PAGE MODERN STYLES
   =========================== */

.contact-hero-modern {
  position: relative;
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg));
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%23FDB813" opacity="0.3"/><circle cx="30" cy="25" r="1.5" fill="%23FDB813" opacity="0.2"/><circle cx="60" cy="15" r="1" fill="%23FCAF45" opacity="0.25"/><circle cx="80" cy="35" r="1.2" fill="%23FCAF45" opacity="0.3"/></svg>');
  animation: particleFloat 20s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title-modern {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle-modern {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.method-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(253, 184, 19, 0.2);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.method-badge:hover {
  background: rgba(253, 184, 19, 0.1);
  border-color: var(--gradient-start);
  transform: translateY(-2px);
}

.method-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--gradient-start);
}

/* Contact Content Modern */
.contact-content-modern {
  padding: 4rem 0 6rem;
}

.contact-grid-modern {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: start;
}

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

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-fast);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(253, 184, 19, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.info-card {
  text-align: center;
}

.info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.email-icon { background: linear-gradient(135deg, rgba(253, 184, 19, 0.15), rgba(252, 175, 69, 0.1)); border: 1px solid rgba(253, 184, 19, 0.3); }
.location-icon { background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.15); }
.business-icon { background: linear-gradient(135deg, rgba(36, 36, 36, 0.8), rgba(26, 26, 26, 0.9)); border: 1px solid rgba(255, 255, 255, 0.1); }

.info-card:hover .info-icon {
  transform: scale(1.1) rotate(-5deg);
}

.info-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gradient-start);
}

.email-icon svg {
  stroke: var(--gradient-start);
}

.location-icon svg {
  stroke: var(--color-text);
}

.business-icon svg {
  stroke: var(--color-text-secondary);
}

.info-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.info-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-card a {
  color: var(--gradient-start);
  transition: color var(--transition-fast);
}

.info-card a:hover {
  color: var(--gradient-end);
}

/* Contact Form Modern */
.glass-card-large {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
}

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

.form-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

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

.form-row-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.form-field label svg {
  width: 18px;
  height: 18px;
  stroke: var(--gradient-start);
  flex-shrink: 0;
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Emphasized border-bottom */
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--body-font);
  transition: all var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(253, 184, 19, 0.3);
  border-bottom-color: var(--gradient-start); /* Highlighted border-bottom on focus */
  box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-field textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
}

.form-actions-modern {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.submit-btn-modern {
  flex: 1;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 1.125rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.submit-btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(253, 184, 19, 0.3);
}

.submit-btn-modern svg {
  width: 20px;
  height: 20px;
  stroke: #000;
  stroke-width: 2.5;
}

.reset-btn-modern {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.125rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.reset-btn-modern:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.reset-btn-modern svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Footer Social Links */
/* Footer social section removed */

.footer-tagline em {
  display: block;
  font-style: italic;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* Newsletter Section Updates */
@media (max-width: 1024px) {
  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===========================
   SIMPLIFIED FOOTER STYLES
   =========================== */

.footer-main-simple {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 4rem;
  padding: 3rem 0;
}

.footer-brand-section .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-brand-section .footer-logo img {
  width: 36px;
  height: 36px;
}

.footer-brand-section .footer-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-contact-section h4,
.footer-legal-section h4 {
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.contact-quick-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-quick-info .contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.contact-quick-info .contact-item svg {
  flex-shrink: 0;
  stroke: var(--gradient-start);
}

.contact-quick-info .contact-item a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.contact-quick-info .contact-item a:hover {
  color: var(--gradient-start);
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #000;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1rem;
  transition: all var(--transition-fast);
  width: fit-content;
}

.contact-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(253, 184, 19, 0.4);
  color: #000;
}

.contact-cta-btn svg {
  stroke: #000;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.legal-links li a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.legal-links li a:hover {
  color: var(--gradient-start);
}

.business-info {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .footer-main-simple {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .contact-grid-modern {
    grid-template-columns: 1fr;
  }

  .form-row-group {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .view-all-link {
    font-size: 1rem;
  }

  .business-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-title-modern {
    font-size: 2.5rem;
  }

  .page-subtitle-modern {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1rem;
  }

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

  .services-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .glass-card-large {
    padding: 2rem 1.5rem;
  }

  .business-card .business-content h3 {
    font-size: 1.5rem;
  }

  .tech-card h3 {
    font-size: 1.5rem;
  }
}

/* Cache buster: 1758672823 */
/* Updated: 20250926 */
/* New sections added: 20250101 */
/* Footer simplified: 20250101 */
