/* ==========================================================================
   Jonatan Sulas Portfolio — Sleek Light Studio Theme (#171717 & Sharp Elements)
   Inspired by Joplin Design Studio (https://joplindesignstudio.com/)
   ========================================================================== */

:root {
  --bg-dark: #FFFFFF;
  --bg-surface: #F8F9FA;
  --bg-surface-hover: #F1F3F5;
  --card-border: rgba(23, 23, 23, 0.12);
  
  /* Primary Accent: Crisp #171717 Deep Charcoal Black */
  --accent-lightning: #171717;
  --accent-lightning-hover: #2E2E2E;
  --accent-glow: rgba(23, 23, 23, 0.15);
  
  --text-main: #171717;
  --text-muted: #4A4A4A;
  --text-dim: #737373;

  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Sharp Rectangular Corners (Zero border-radius like Joplin Studio) */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 0px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom JS Monogram Background Pattern in Light Mode (#171717 stroke and solid fill) */
.js-pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='120' viewBox='0 0 180 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.outline %7B font-family: Outfit, sans-serif; font-weight: 800; font-size: 26px; fill: none; stroke: rgba(23,23,23,0.06); stroke-width: 1.2px; %7D .solid %7B font-family: Outfit, sans-serif; font-weight: 800; font-size: 26px; fill: rgba(23,23,23,0.08); %7D .dot %7B fill: rgba(23,23,23,0.05); %7D%3C/style%3E%3Cg%3E%3Ctext x='10' y='36' class='outline'%3EJS%3C/text%3E%3Crect x='58' y='18' width='3' height='3' class='dot'/%3E%3Crect x='58' y='26' width='3' height='3' class='dot'/%3E%3Crect x='58' y='34' width='3' height='3' class='dot'/%3E%3Ctext x='74' y='36' class='solid'%3EJS%3C/text%3E%3Crect x='122' y='18' width='3' height='3' class='dot'/%3E%3Crect x='122' y='26' width='3' height='3' class='dot'/%3E%3Crect x='122' y='34' width='3' height='3' class='dot'/%3E%3Ctext x='138' y='36' class='outline'%3EJS%3C/text%3E%3Ctext x='10' y='96' class='solid'%3EJS%3C/text%3E%3Crect x='58' y='78' width='3' height='3' class='dot'/%3E%3Crect x='58' y='86' width='3' height='3' class='dot'/%3E%3Crect x='58' y='94' width='3' height='3' class='dot'/%3E%3Ctext x='74' y='96' class='outline'%3EJS%3C/text%3E%3Crect x='122' y='78' width='3' height='3' class='dot'/%3E%3Crect x='122' y='86' width='3' height='3' class='dot'/%3E%3Crect x='122' y='94' width='3' height='3' class='dot'/%3E%3Ctext x='138' y='96' class='solid'%3EJS%3C/text%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: #171717;
}

.text-gradient-animated {
  color: #171717;
  display: inline-flex;
  align-items: center;
}

/* Typewriter Fixed Height Container */
.typewriter-box {
  display: inline-block;
  min-height: 1.2em;
  white-space: nowrap;
  vertical-align: bottom;
}

.typewriter-text {
  display: inline-block;
  white-space: nowrap;
  color: #171717;
}

.cursor-blink {
  font-weight: 300;
  color: #171717;
  animation: blink 1s infinite;
  margin-left: 2px;
}

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

.tag-highlight {
  color: #171717;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Lightning Bolt Styling */
.bolt-svg, .bolt-inline, .bolt-tiny {
  display: inline-block;
  vertical-align: middle;
}

.bolt-svg {
  width: 16px;
  height: 16px;
  color: #171717;
}

.bolt-inline {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.bolt-tiny {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  color: #171717;
}

/* Compact & Sleek Header Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #171717;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

/* Refined Premium Lightning Box in Navbar with Subtle Rounded Corners */
.lightning-icon-box {
  width: 28px;
  height: 28px;
  background: #171717;
  border-radius: 6px; /* Subtle elegant radius */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(23, 23, 23, 0.15);
  transition: var(--transition-fast);
}

.lightning-icon-box .bolt-svg {
  color: #FFFFFF;
  width: 14px;
  height: 14px;
}

.brand-logo:hover .lightning-icon-box {
  transform: rotate(-10deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(23, 23, 23, 0.25);
}

.brand-name .highlight {
  color: #171717;
}

/* Navigation Links Compact */
.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: #171717;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.nav-link:hover {
  opacity: 0.6;
}

/* Joplin Style Language Switcher Compact */
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #171717;
  background: rgba(23, 23, 23, 0.05);
  border: 1px solid var(--card-border);
  padding: 5px 10px;
  border-radius: 0px;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.lang-switcher-btn:hover {
  background: #171717;
  color: #FFFFFF;
}

.lang-icon {
  font-size: 0.75rem;
  transition: transform 0.4s ease;
}

.lang-switcher-btn:hover .lang-icon {
  transform: rotate(180deg);
}

/* Header Circular Social Icons Compact */
.header-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.05);
  border: 1px solid var(--card-border);
  color: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.header-social-link:hover {
  background: #171717;
  border-color: #171717;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Sharp Rectangular Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 0px !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.btn-header {
  padding: 6px 14px;
  font-size: 0.75rem;
}

.btn-primary {
  background: #171717;
  color: #FFFFFF;
  border: 1px solid #171717;
  gap: 6px;
}

.btn-primary:hover {
  background: #333333;
  border-color: #333333;
}

.btn-lightning {
  background: #171717;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(23, 23, 23, 0.15);
}

.btn-lightning:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 23, 23, 0.25);
}

.btn-outline {
  background: transparent;
  color: #171717;
  border: 1px solid #171717;
}

.btn-outline:hover {
  background: #171717;
  color: #FFFFFF;
}

.btn-full {
  width: 100%;
}

/* Hero Section Unified & Fixed Grid Layout */
.hero-section {
  position: relative;
  padding: 150px 0 90px 0;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 420px;
  background: radial-gradient(circle, rgba(23, 23, 23, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-grid-unified {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
}

/* Compact Perfectly Aligned Spinning Wheel Badge */
.hero-right-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinning-badge-container {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.spinning-badge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.6px solid #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 18s linear infinite;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning-badge svg {
  width: 128px;
  height: 128px;
  fill: #171717;
}

.badge-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  color: #171717;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(23, 23, 23, 0.05);
  border: 1px solid rgba(23, 23, 23, 0.2);
  border-radius: 0px;
  font-size: 0.8rem;
  color: #171717;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
}

/* Pulse Colors */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.yellow-pulse {
  background-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.red-pulse {
  background-color: #EF4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #171717;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 740px;
}

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

/* Projects Section */
.projects-section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #171717;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: #171717;
}

.section-subtext {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 0px;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  color: #171717;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background: #171717;
  color: #FFFFFF;
}

.filter-btn.active {
  background: #171717;
  color: #FFFFFF;
  border-color: #171717;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #171717;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #F1F3F5;
}

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

.project-card:hover .card-image {
  transform: scale(1.04);
}

.card-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: #171717;
  color: #FFFFFF;
  border-radius: 0px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #171717;
}

.card-year {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 700;
}

.card-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}

.tools-mini-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-chip {
  font-size: 0.75rem;
  color: #171717;
  background: rgba(23, 23, 23, 0.06);
  padding: 2px 8px;
  border-radius: 0px;
  font-weight: 600;
}

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 0px;
  background: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition-fast);
}

.project-card:hover .card-arrow {
  background: #333333;
  transform: translateX(4px);
}

/* About & RESTORED 3D Globe Section in Light Mode */
.about-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-bottom: 32px;
}

.about-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 0px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(23, 23, 23, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #171717;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon .bolt-svg {
  color: #FFFFFF;
}

.about-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #171717;
}

.story-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* 3D Globe Card Restored in Light Theme */
.globe-card {
  align-items: center;
  justify-content: space-between;
  text-align: center;
  border-color: var(--card-border);
  background: #FFFFFF;
}

.globe-header {
  margin-bottom: 16px;
}

.globe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #171717;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.globe-header h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #171717;
}

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

.globe-canvas-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.globe-canvas-wrapper:active {
  cursor: grabbing;
}

.tools-full-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 0px;
  padding: 32px 40px;
}

.tools-full-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #171717;
}

.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-tag {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: 0px;
  color: #171717;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 0px;
  padding: 48px;
}

.contact-header {
  text-align: center;
  margin-bottom: 36px;
}

.lightning-badge {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: #171717;
}

.contact-header p {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #171717;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: 0px;
  padding: 14px 18px;
  color: #171717;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #171717;
  background: #FFFFFF;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  padding: 10px 20px;
  border-radius: 0px;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  color: #171717;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: #171717;
  color: #FFFFFF;
}

.highlight-btn {
  background: #171717;
  color: #FFFFFF;
}

/* Modal Overlay & Uncropped Images + MP4 Video player */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  border: 2px solid #171717;
  border-radius: 0px;
  max-width: 1080px;
  width: 100%;
  position: relative;
  padding: 48px;
  margin: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 0px;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #333333;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: #171717;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: #171717;
}

.modal-tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.modal-hero-img-box {
  width: 100%;
  background: #F8F9FA;
  border-radius: 0px;
  padding: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--card-border);
}

.modal-hero-img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  border-radius: 0px;
  display: block;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.modal-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #171717;
}

.modal-text {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.modal-meta-box {
  background: #F8F9FA;
  border: 1px solid var(--card-border);
  border-radius: 0px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

.meta-item label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.meta-item p {
  font-size: 0.95rem;
  font-weight: 700;
  color: #171717;
}

.modal-gallery-container {
  border-top: 1px solid var(--card-border);
  padding-top: 36px;
  margin-top: 24px;
}

.modal-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.modal-gallery-item {
  width: 100%;
  background: #F8F9FA;
  border: 1px solid var(--card-border);
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-gallery-item:hover {
  border-color: #171717;
}

.modal-gallery-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.modal-gallery-video {
  width: 100%;
  height: auto;
  max-height: 680px;
  display: block;
  background: #000000;
  outline: none;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.domain-text {
  color: #171717;
  font-weight: 700;
}

/* Responsive Breakdown */
@media (max-width: 900px) {
  .hero-grid-unified {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-right-col {
    order: -1;
  }
  .header-social-icons {
    display: none;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .modal-details-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
