/* --- Design System & Custom Variables --- */
:root {
  /* Colors */
  --color-background: #FFFFFF;
  --color-section-alt: #F5F5F5;
  --color-card-bg: #FFFFFF;
  --color-primary-text: #1A1A1A;
  --color-secondary-text: #777777;
  --color-accent-yellow: #FFD700;
  --color-accent-yellow-hover: #E6C200;
  --color-accent-navy: #2C3E50;
  --color-accent-maroon: #5C1A1A;
  --color-border: #E5E5E5;
  --color-input-bg: #FFFFFF;
  --color-button-dark-bg: #1A1A1A;
  --color-button-dark-text: #FFD700;
  --color-placeholder: #A0A0A0;
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --heading-weight: 700;
  --body-weight: 400;
  --label-weight: 600;
  --label-size: 11px;
  --label-spacing: 0.08em;
  --input-text-size: 14px;
  
  /* Shapes */
  --card-radius: 16px;
  --button-radius: 12px;
  --image-radius: 16px;
  --input-radius: 10px;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --section-padding-y: 80px;
  --container-width: 1200px;
  --card-padding: 32px;
  --field-gap: 20px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-background);
  color: var(--color-primary-text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-section-alt);
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-text);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--heading-weight);
  color: var(--color-primary-text);
  line-height: 1.2;
}

p {
  line-height: 1.7;
  color: var(--color-secondary-text);
  font-size: 16px;
}

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

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-primary-text);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: var(--color-background);
}

.loader-logo {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.loader-track {
  width: 240px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0 auto 15px auto;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background-color: var(--color-accent-yellow);
  transition: width 0.1s ease;
}

.loader-text {
  font-size: 14px;
  color: #888;
  font-family: var(--font-family);
}

.loader-text span {
  color: var(--color-background);
  font-weight: 600;
}

/* --- Layout Wrapper --- */
.content-wrapper {
  opacity: 1;
  filter: none;
  transition: filter 0.8s ease, opacity 0.8s ease;
}

.content-wrapper.hidden {
  opacity: 0;
  filter: blur(10px);
}

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

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-family);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary-text);
  letter-spacing: -1px;
}

.brand-logo span {
  color: var(--color-accent-yellow);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary-text);
  position: relative;
  padding: 8px 0;
}

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

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

.nav-btn-outline {
  border: 2px solid var(--color-primary-text);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-btn-outline:hover {
  background-color: var(--color-primary-text);
  color: var(--color-accent-yellow);
}

.nav-btn-outline::after {
  display: none;
}

/* --- Hero Section (Sticky Scroll Animation Setup) --- */
.hero-scroll-container {
  position: relative;
  width: 100%;
  height: 400vh; /* 4 slides * 100vh */
  background-color: var(--color-background);
}

.hero-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  overflow: hidden;
}

/* Hero Content Column (Left Side) */
.hero-text-col {
  width: 50%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.hero-slide {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10% 0 15%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible active state handled dynamically via Intersection Observer / Scroll percentages */
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background-color: var(--color-section-alt);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  font-family: var(--font-family);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent-yellow);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-section-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-secondary-text);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--button-radius);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--color-accent-yellow);
  color: var(--color-primary-text);
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 196, 48, 0.35);
}

.btn-secondary {
  border: 2px solid var(--color-primary-text);
  color: var(--color-primary-text);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--color-primary-text);
  color: var(--color-accent-yellow);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--color-button-dark-bg);
  color: var(--color-button-dark-text);
}

.btn-dark:hover {
  background-color: #000;
  transform: translateY(-2px);
}

/* Hero Canvas Column (Right Side - Sticky) */
.hero-canvas-col {
  width: 50%;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-section-alt);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.canvas-container {
  width: 90%;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
}

#animation-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--image-radius);
  box-shadow: var(--card-shadow);
  background-color: #f0f0f0;
}

.canvas-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(244,196,48,0.05) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- Philosophy / About Section --- */
.about-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-background);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 5;
}

.about-grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 80px;
  align-items: flex-start;
}

.section-label {
  display: block;
  font-family: var(--font-family);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-yellow);
  margin-bottom: 20px;
}

.section-heading {
  font-size: 38px;
  font-weight: var(--heading-weight);
  letter-spacing: -1px;
}

.about-text-highlight {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-primary-text);
  margin-bottom: 30px;
}

.about-text-sub {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-secondary-text);
}

/* --- Services Section --- */
.services-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-section-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 5;
}

.section-header-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px auto;
}

.section-header-center .section-heading {
  margin-bottom: 20px;
}

.section-subheading {
  font-size: 17px;
  color: var(--color-secondary-text);
}

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

.service-card {
  background-color: var(--color-background);
  padding: 50px 40px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(244, 196, 48, 0.3);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(244, 196, 48, 0.1);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--color-primary-text);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background-color: var(--color-accent-yellow);
  color: var(--color-primary-text);
  transform: rotate(3deg) scale(1.05);
}

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

.service-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.service-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-secondary-text);
}

/* --- Hero Avatar / Profile Header --- */
.hero-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent-yellow);
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.25);
  transition: var(--transition-smooth);
}

.hero-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4);
}

/* --- About Section Portrait --- */
.about-portrait-wrapper {
  position: relative;
  border-radius: var(--image-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 4;
  max-width: 380px;
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-portrait-wrapper:hover .about-portrait {
  transform: scale(1.04);
}

.location-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 30px;
  color: var(--color-background);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-smooth);
}

.location-badge-overlay:hover {
  background: rgba(10, 10, 10, 0.9);
}

.location-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent-yellow);
}

/* --- Call To Action / Contact Section --- */
.cta-section {
  padding: 120px 0 var(--section-padding-y) 0;
  background-color: var(--color-background);
  position: relative;
  z-index: 5;
}

.cta-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: flex-start;
}

.cta-info-side {
  padding-top: 10px;
}

.cta-label {
  display: block;
  font-family: var(--font-family);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-yellow);
  margin-bottom: 20px;
}

.cta-heading {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--color-primary-text);
}

.cta-text {
  font-size: 17px;
  color: var(--color-secondary-text);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-direct-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.cta-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-text);
  transition: var(--transition-fast);
}

.cta-email-link:hover {
  color: var(--color-accent-yellow);
}

.cta-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-yellow);
  flex-shrink: 0;
}

.cta-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-secondary-text);
}

.social-links-container {
  display: flex;
  gap: 20px;
}

.social-link {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-text);
  position: relative;
  padding-bottom: 4px;
  cursor: pointer;
  transition: color 250ms ease, transform 250ms ease;
  display: inline-block;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-yellow);
  transition: width 250ms ease;
}

.social-link:hover {
  color: var(--color-accent-yellow);
  transform: scale(1.05);
}

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

/* --- Contact Form Styling --- */
.cta-form-side {
  position: relative;
}

.connect-form {
  background-color: var(--color-card-bg);
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.connect-form:hover {
  box-shadow: var(--shadow-hover);
}

/* Contact Card Header */
.contact-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.contact-card-icon {
  font-size: 22px;
  line-height: 1;
}

.contact-card-title {
  font-size: 20px;
  font-weight: var(--heading-weight);
  color: var(--color-primary-text);
  letter-spacing: -0.3px;
}

/* Form fields */
.form-group {
  margin-bottom: var(--field-gap);
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-family);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  color: var(--color-primary-text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: var(--label-spacing);
  transition: color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-family);
  font-size: var(--input-text-size);
  color: var(--color-primary-text);
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--input-radius);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-placeholder);
  font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent-yellow);
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.12);
}

.form-group:focus-within label {
  color: var(--color-accent-yellow);
}

.form-group select {
  cursor: pointer;
  color: var(--color-primary-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-primary-text);
  padding: 10px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.error-msg {
  display: block;
  font-size: 12px;
  color: var(--color-accent-maroon);
  margin-top: 6px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  bottom: -18px;
  left: 0;
}

.form-group.has-error .error-msg {
  opacity: 1;
  transform: translateY(0);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-accent-maroon);
  box-shadow: 0 0 0 3px rgba(92, 26, 26, 0.08);
}

.form-group.has-error label {
  color: var(--color-accent-maroon);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px 32px;
  border: none;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--button-radius);
  letter-spacing: 0.02em;
}

.btn-submit .btn-text {
  transition: opacity 0.3s ease;
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .btn-spinner {
  opacity: 1;
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 3px solid rgba(244, 196, 48, 0.3);
  border-top-color: var(--color-accent-yellow);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Success Card */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-card-bg);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.form-success.hidden {
  opacity: 0;
  visibility: hidden;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: var(--color-accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-svg {
  width: 36px;
  height: 36px;
  color: var(--color-primary-text);
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw-check 0.6s 0.3s ease forwards;
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.form-success h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary-text);
}

.form-success p {
  font-size: 16px;
  color: var(--color-secondary-text);
  max-width: 360px;
  margin-bottom: 28px;
}

.form-success .btn {
  min-width: 200px;
}

/* --- Portfolio / Case Studies Section --- */
.portfolio-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-background);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 5;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.portfolio-card {
  background-color: var(--color-section-alt);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 215, 0, 0.3);
}

.portfolio-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portfolio-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background-color: rgba(255, 215, 0, 0.15);
  color: var(--color-accent-navy);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 16px;
}

.portfolio-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: var(--color-primary-text);
}

.portfolio-desc {
  font-size: 14px;
  color: var(--color-secondary-text);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.portfolio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-metric-col {
  display: flex;
  flex-direction: column;
}

.portfolio-metric {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent-navy);
}

.portfolio-metric-label {
  font-size: 11px;
  color: var(--color-secondary-text);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.portfolio-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

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

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

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--color-background);
  position: relative;
  z-index: 5;
}

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

.footer-logo {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-primary-text);
  transition: var(--transition-fast);
}

.footer-logo:hover {
  color: var(--color-accent-yellow);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--color-secondary-text);
}

/* --- Responsive Adaptations (Mobile / Tablet Layouts) --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }
  .hero-section-title {
    font-size: 36px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Site Header mobile adapt */
  .site-header {
    height: 70px;
  }
  .header-container {
    padding: 0 20px;
  }
  .container {
    padding: 0 20px;
  }
  .brand-logo {
    font-size: 22px;
  }
  .main-nav {
    gap: 15px;
  }
  .nav-btn-outline {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Hero Section Split Layout to Stacked layout for Mobile */
  .hero-scroll-container {
    height: auto;
    background-color: var(--color-primary-text);
  }

  .hero-sticky-wrapper {
    position: relative;
    height: auto;
    display: block;
    overflow: visible;
  }

  /* Canvas sticky in the background on mobile */
  .hero-canvas-col {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.18;
    pointer-events: none;
    border-left: none;
    background-color: #000;
  }

  .canvas-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  #animation-canvas {
    border-radius: 0;
    box-shadow: none;
  }

  /* Text column scrolls OVER the canvas on mobile */
  .hero-text-col {
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: transparent;
  }

  .hero-slide {
    height: 100vh;
    padding: 100px 24px 40px 24px;
    justify-content: center;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 2px;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-title, .hero-section-title {
    color: var(--color-background);
    font-size: 32px;
  }
  .hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
  }
  .badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent-yellow);
    border-color: rgba(255, 255, 255, 0.15);
  }
  .btn-secondary {
    border-color: var(--color-background);
    color: var(--color-background);
  }
  .btn-secondary:hover {
    background-color: var(--color-background);
    color: var(--color-primary-text);
  }

  /* About & Services mobile styling */
  .about-section {
    padding: var(--section-padding-y) 0;
  }
  .about-text-highlight {
    font-size: 20px;
  }
  .services-section {
    padding: var(--section-padding-y) 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-card {
    padding: 40px 24px;
  }

  /* CTA Section mobile styling */
  .cta-section {
    padding: var(--section-padding-y) 0 40px 0;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-heading {
    font-size: 32px;
  }
  .connect-form {
    padding: 28px 20px;
  }
  .about-portrait-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-avatar {
    width: 48px;
    height: 48px;
  }
  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
