@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #0f172a;       /* Slate 900 (Corporate Dark Blue) */
  --primary-light: #1e293b; /* Slate 800 */
  --primary-dark: #020617;  /* Slate 950 */
  --accent: #b45309;        /* Warm Gold */
  --accent-hover: #92400e;  /* Darker Gold */
  --accent-light: #fef3c7;  /* Light Gold/Amber */
  
  --text-dark: #0f172a;     /* Main text */
  --text-muted: #475569;    /* Secondary/Muted text */
  --text-light: #f8fafc;    /* Light text on dark bg */
  --text-gray: #94a3b8;     /* Gray for secondary dark elements */
  
  --bg-light: #f8fafc;      /* Light gray background */
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --bg-card-dark: #1e293b;
  
  --border: #e2e8f0;        /* Slate 200 */
  --border-light: #f1f5f9;  /* Slate 100 */
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --nav-height: 80px;
  /* Anchor / scrollIntoView offset for fixed header (not visual section spacing) */
  --scroll-pad: calc(var(--nav-height) + 0.75rem);
  /* Vertical rhythm between sections — independent of nav clearance */
  --section-pad-y: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  /* Fixed nav: hash links & scrollIntoView stop short of the header */
  scroll-padding-top: var(--scroll-pad);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  position: relative;
  margin-bottom: 3.5rem;
}

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

.section-subtitle {
  text-align: center;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

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

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

/* Pseudo-element background to prevent rendering blur on children */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  backdrop-filter: none;
  transition: all var(--transition-normal);
  z-index: -1;
  box-shadow: none;
  pointer-events: none;
}

.header.scrolled::before {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header.scrolled {
  height: 70px;
}

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

.logo-link {
  display: flex;
  align-items: center;
  height: 48px;
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* High-contrast white logo for dark background */
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.nav-link:hover {
  color: #ffffff;
}

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

.header.scrolled .nav-link {
  color: var(--text-light);
}

/* Hamburger Menu Button */
.menu-btn {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
  background: transparent;
  z-index: 1010;
}

.menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.menu-btn span:nth-child(1) {
  top: 6px;
}

.menu-btn span:nth-child(2) {
  top: 11px;
}

.menu-btn span:nth-child(3) {
  top: 16px;
}

/* --- Hero Section --- */
/* min-height (not fixed height) so two paragraphs + buttons never clip/overlap */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  overflow: hidden;
  /* Room for fixed nav + scroll-down cue */
  padding: calc(var(--nav-height) + 2rem) 0 6.5rem;
  box-sizing: border-box;
}

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.8) 50%,
    rgba(2, 6, 23, 0.9) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-sans);
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 1rem;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.2s;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.4s;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-gray);
  margin: 0;
  max-width: 650px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-description-sec {
  font-size: 1.05rem;
  color: rgba(148, 163, 184, 0.95);
  margin: 0;
  max-width: 620px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.7s;
}

.hero-buttons {
  position: relative;
  z-index: 4;
  margin: 0.75rem 0 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.9s;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

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

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-down:hover {
  color: #ffffff;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: currentColor;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

/* --- Stats Bar --- */
.stats-bar {
  background-color: var(--primary);
  border-top: 1px solid var(--primary-light);
  position: relative;
  z-index: 10;
  padding: 3rem 0;
  box-shadow: var(--shadow-lg);
}

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

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--primary-light);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  font-weight: 500;
}

/* --- Services Section --- */
.tabs-container {
  margin-top: 3rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: all var(--transition-fast);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-btn:hover {
  color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn var(--transition-normal) forwards;
}

.tab-panel[hidden] {
  display: none !important;
}

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

.service-subcard {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-subcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(180, 83, 9, 0.2);
}

.service-subcard h4 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.service-subcard p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Danismanlik Specific Panel */
.consultancy-panel-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  background-color: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.consultancy-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img-frame {
  position: relative;
  width: 85%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

.about-img-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  z-index: -1;
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.about-img-frame:hover .about-img {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: 0;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1.5rem 2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
  max-width: 280px;
}

.about-badge-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.about-badge-text {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content {
  padding-left: 1rem;
}

.about-name {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-title-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: block;
}

.about-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.about-feature h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  box-shadow: var(--shadow-xl);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
}

.contact-info-panel {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.contact-info-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(180, 83, 9, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.contact-info-title {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info-text {
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

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

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-item-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-item-content h4 {
  font-family: var(--font-sans);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

.contact-item-content a {
  color: var(--text-gray);
}

.contact-item-content a:hover {
  color: #ffffff;
}

.directions-link {
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.directions-link:hover {
  color: #fbbf24 !important;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
  display: block;
}

.social-circle-btn-sm {
  width: 36px;
  height: 36px;
}

.social-circle-btn-sm .social-icon {
  width: 16px;
  height: 16px;
}

.footer-socials {
  gap: 1rem;
  margin-top: 1rem;
}

.social-circle-btn {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-circle-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(180, 83, 9, 0.3);
}

.social-circle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Contact Form Side */
.contact-form-panel {
  padding: 4rem 3.5rem;
}

.contact-form-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

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

.form-group-full {
  grid-column: span 2;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-submit-row {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity var(--transition-fast);
  opacity: 0;
}

.form-status.show {
  opacity: 1;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

.form-status.info {
  color: var(--text-muted);
}

/* Toast Alert Notification Popup */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 1.25rem 2rem;
  border-radius: 6px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: auto;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left-color: #16a34a;
}

.toast-error {
  border-left-color: #dc2626;
}

.toast-close {
  background: transparent;
  color: var(--text-gray);
  font-size: 1.2rem;
  line-height: 1;
}

.toast-close:hover {
  color: #ffffff;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-gray);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--primary-light);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-column h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-about-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* High-contrast white logo for dark background */
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-link {
  color: var(--text-gray);
  border-bottom: 1px solid transparent;
}

.footer-bottom-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollWheel {
  0% {
    top: 6px;
    opacity: 1;
  }
  50% {
    top: 20px;
    opacity: 0.3;
  }
  100% {
    top: 6px;
    opacity: 1;
  }
}

/* Scroll reveal — lightweight, one-time */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards slightly when in a grid */
.services-grid .service-subcard.reveal:nth-child(1) { --reveal-delay: 0ms; }
.services-grid .service-subcard.reveal:nth-child(2) { --reveal-delay: 60ms; }
.services-grid .service-subcard.reveal:nth-child(3) { --reveal-delay: 120ms; }
.services-grid .service-subcard.reveal:nth-child(4) { --reveal-delay: 180ms; }
.services-grid .service-subcard.reveal:nth-child(5) { --reveal-delay: 240ms; }
.services-grid .service-subcard.reveal:nth-child(6) { --reveal-delay: 300ms; }

.stats-grid .stat-item.reveal:nth-child(1) { --reveal-delay: 0ms; }
.stats-grid .stat-item.reveal:nth-child(2) { --reveal-delay: 80ms; }
.stats-grid .stat-item.reveal:nth-child(3) { --reveal-delay: 160ms; }
.stats-grid .stat-item.reveal:nth-child(4) { --reveal-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-subtitle,
  .hero-title,
  .hero-description,
  .hero-description-sec,
  .hero-buttons {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tab-panel.active {
    animation: none;
  }

  .wheel {
    animation: none;
  }

  .service-subcard:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .social-circle-btn:hover {
    transform: none;
  }
}

/* --- Responsive Styles --- */

/* Large tablet / small desktop — denser nav */
@media (max-width: 1100px) {
  .nav-list {
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.88rem;
  }
}

/* Short viewports: keep hero content readable without clipping */
@media (max-height: 720px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 5rem;
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  .hero-description,
  .hero-description-sec {
    font-size: 1rem;
  }

  .scroll-down {
    display: none;
  }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-description-sec {
    font-size: 0.98rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-images {
    order: 2;
  }
  
  .about-img-frame {
    width: 60%;
  }
  
  .about-img {
    height: 380px;
  }
  
  .about-content {
    order: 1;
    padding-left: 0;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Mobile Screen (768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
    --section-pad-y: 3.25rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  /* Mobile Navbar */
  .menu-btn {
    display: block; /* Use block since spans are absolutely positioned */
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-dark);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    padding: 6rem 1.5rem 2rem; /* Aligned with container padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: right var(--transition-normal);
    z-index: 1005;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 1.25rem;
    color: var(--text-light);
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-sans);
    font-weight: 500;
  }
  
  .nav-link:hover {
    color: var(--accent);
  }
  
  .menu-btn.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
    background-color: #ffffff;
  }
  
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }
  
  .menu-btn.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
    background-color: #ffffff;
  }

  /* Overlay for active menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Hero */
  .hero {
    padding: calc(var(--nav-height) + 1.5rem) 0 5.5rem;
    align-items: center;
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }
  
  .hero-description {
    font-size: 1.05rem;
  }

  .hero-description-sec {
    font-size: 0.95rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-top: 0.5rem;
    gap: 0.85rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: none;
  }

  .btn {
    width: auto;
    max-width: none;
  }

  .scroll-down {
    bottom: 1.25rem;
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  /* Services */
  .tab-buttons {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
  
  .tab-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
  }
  
  .tab-btn::after {
    display: none; /* Hide indicator underline on mobile for full-width stacked tabs */
  }
  
  .tab-btn.active {
    background-color: var(--accent);
    color: #ffffff;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-subcard {
    padding: 2rem 1.5rem;
  }
  
  /* About */
  .about-img-frame {
    width: 100%;
  }
  
  .about-img {
    height: 320px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .about-name {
    font-size: 1.8rem;
  }
  
  /* Contact */
  .contact-info-panel {
    padding: 3rem 1.75rem;
  }
  
  .contact-form-panel {
    padding: 3rem 1.75rem;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .form-submit-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1rem;
  }
  
  .form-status {
    text-align: center;
  }
  
  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
