/* -----------------------------------------------------------
   1. VARIABLES & RESET
----------------------------------------------------------- */
:root {
  /* COLORS */
  --primary: #e63946;        /* Modern Red */
  --primary-dark: #d62839;   /* Darker Red for hover */
  --text-dark: #0f172a;      /* Deep Slate (Black equivalent) */
  --text-light: #64748b;     /* Muted Gray */
  --bg-color: #f8fafc;       /* Very light background */
  --white: #ffffff;
  
  /* LAYOUT */
  --max-width: 100%;         /* Full width container */
  --nav-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden; /* Prevents horizontal scroll from moving images */
}

/* -----------------------------------------------------------
   2. NAVBAR STYLING
----------------------------------------------------------- */
.navbar {
  position: sticky; 
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px; /* Space on the edges */
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* LOGO */
.logo {
  font-weight: 800;
  font-size: 1.8rem; 
  color: var(--primary); /* RED Logo */
  text-decoration: none;
  letter-spacing: -1px;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-item {
  text-decoration: none;
  color: var(--text-dark); 
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 99px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: var(--primary); 
  background: rgba(230, 57, 70, 0.08); 
}

.nav-item.active {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.08);
}

/* CONTACT BUTTON */
.nav-item.btn-contact {
  background: var(--primary); 
  color: var(--white);
}

.nav-item.btn-contact:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

/* MOBILE TOGGLE (Hamburger) */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.bar {
  width: 28px;
  height: 3px;
  background-color: var(--primary); 
  transition: 0.3s;
  border-radius: 3px;
}

/* --- HAMBURGER ANIMATION --- */

/* Rotate top bar */
.mobile-toggle.is-active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

/* Hide middle bar */
.mobile-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

/* Rotate bottom bar */
.mobile-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* -----------------------------------------------------------
   3. HERO SECTION (Layout & Text)
----------------------------------------------------------- */
.hero-section {
  position: relative; /* Needed for background images */
  overflow: hidden;   /* Hides images if they drift too far */
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh; 
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Ensures text is above images */
}

/* HERO TYPOGRAPHY */
h1 {
  font-size: 5rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.highlight {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 650px;
  margin-bottom: 40px;
}

.hero-sub strong {
  color: var(--primary);
  font-weight: 600;
}

/* HERO BUTTONS */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: var(--primary-dark);
  box-shadow: 0 12px 24px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  border-color: var(--text-dark);
  transform: translateY(-3px);
  background-color: var(--white);
}

/* -----------------------------------------------------------
   4. HERO BACKGROUND (Floating Images)
----------------------------------------------------------- */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Behind text */
  pointer-events: none; /* Allows clicking buttons through images */
}

.float-img {
  position: absolute;
  width: 350px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  opacity: 0; /* Hidden by default */
  filter: grayscale(100%); /* B&W to keep focus on text */
}

/* ANIMATION KEYFRAMES */
@keyframes floatFade {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9) rotate(-3deg);
  }
  20% {
    opacity: 0.4; /* Max visibility - kept low for readability */
    transform: translateY(0) scale(1) rotate(0deg);
  }
  80% {
    opacity: 0.4;
    transform: translateY(-20px) scale(1) rotate(2deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.95) rotate(4deg);
  }
}

/* IMAGE POSITIONS */
/* Top Left */
.img-1 {
  top: 0%;
  left: 0%;
  animation: floatFade 20s infinite ease-in-out;
  animation-delay: 0s;
}

/* Bottom Right */
.img-2 {
  bottom: -0%;
  right: 0%;
  animation: floatFade 24s infinite ease-in-out;
  animation-delay: 6s;
}

/* Top Right */
.img-3 {
  top: 10%;
  right: 10%;
  width: 300px;
  animation: floatFade 22s infinite ease-in-out;
  animation-delay: 2s;
}

/* Bottom Left */
.img-4 {
  bottom: 0%;
  left: 18%;
  animation: floatFade 26s infinite ease-in-out;
  animation-delay: 9s;
}

/* Middle Right-ish */
.img-5 {
  top: 40%;
  right: 25%;
  width: 250px;
  animation: floatFade 21s infinite ease-in-out;
  animation-delay: 13s;
}

/* -----------------------------------------------------------
   5. RESPONSIVE (MOBILE)
----------------------------------------------------------- */
@media (max-width: 900px) {
  /* Navbar */
  .container { padding: 0 20px; }
  
  .mobile-toggle { display: flex; }
  
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-item { width: 100%; text-align: center; }

  /* Hero */
  h1 { font-size: 3rem; margin-bottom: 16px; }
  .hero-sub { font-size: 1.1rem; margin-bottom: 32px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  
  /* Background Images on Mobile */
  .float-img {
    width: 180px; 
    opacity: 0.08; /* Make them even fainter on small screens */
  }
}

/* -----------------------------------------------------------
   6. SERVICES PAGE STYLING
----------------------------------------------------------- */

/* Simple Header for sub-pages */
.page-header {
  text-align: center;
  padding: 60px 0 40px;
}

.page-header h1 {
  font-size: 3.5rem; /* Smaller than Home Hero */
  margin-bottom: 16px;
  color: var(--text-dark);
}

.page-sub {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layout */
.services-section {
  padding-bottom: 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Columns */
  gap: 32px;
  margin-bottom: 60px;
}

/* Individual Card */
.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.service-card:hover {
  transform: translateY(-8px); /* Lifts up on hover */
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(230, 57, 70, 0.1); /* Subtle red border on hover */
}

/* Icon Bubble */
.icon-box {
  font-size: 2.5rem;
  margin-bottom: 24px;
  background: rgba(230, 57, 70, 0.08); /* Light Red BG */
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* Bullet List inside Card */
.service-list {
  list-style: none;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 24px;
}

.service-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Custom Red Bullet Points */
.service-list li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -6px;
}

/* Bottom CTA */
.service-cta {
  text-align: center;
  background: var(--white);
  padding: 48px;
  border-radius: 24px;
  border: 2px dashed rgba(0,0,0,0.1);
}

.service-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 Column on mobile */
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
}

/* -----------------------------------------------------------
   7. PROJECTS PAGE (EXPANDABLE PANELS)
----------------------------------------------------------- */

/* Main Container: Full screen height minus navbar */
.expand-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 80px); /* Fill remaining screen */
  overflow: hidden; /* Hide overflow during animation */
  background: var(--text-dark); /* Dark background behind panels */
}

/* Individual Panel */
.panel {
  position: relative;
  flex: 1; /* By default, all take equal space (33%) */
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth expansion */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid rgba(0,0,0,0.1);
}

.panel:last-child { border-right: none; }

/* Panel Background Colors */
.software-panel { background: var(--white); }
.security-panel { background: #f1f5f9; }
.photo-panel    { background: var(--white); }

/* --- HOVER EFFECTS --- */

/* When hovering container, dim all panels slightly? (Optional) */
/* When hovering a specific panel: */
.panel:hover {
  flex: 10; /* Grow HUGE (80-90% of screen) */
  background: var(--white); /* Ensure it looks bright */
}

/* Make non-hovered panels shrink slightly but stay visible */
.expand-container:hover .panel:not(:hover) {
  flex: 1; /* Stay small */
  filter: grayscale(100%); /* Optional: gray out inactive ones */
}

/* --- TITLES (The only thing visible at first) --- */
.panel-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: -1px;
  white-space: nowrap; /* Keep on one line */
  transition: all 0.5s ease;
  transform: rotate(0deg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* When expanded, move title to top */
.panel:hover .panel-title {
  top: 60px; /* Move up */
  left: 50px;
  transform: translate(0, 0); /* Reset centering */
  color: var(--primary); /* Turn red */
}

/* If panel is squeezed (inactive), rotate text so it fits? */
.expand-container:hover .panel:not(:hover) .panel-title {
  writing-mode: vertical-rl; /* Turn text sideways */
  text-orientation: mixed;
  transform: translate(-50%, -50%) rotate(180deg);
  font-size: 1.5rem; /* Smaller */
}

/* --- HIDDEN CONTENT --- */
.panel-content {
  opacity: 0; /* Hidden by default */
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(20px);
  transition: all 0.4s ease 0s; /* Instant hide when leaving */
}

/* Show content ONLY on hover with a delay */
.panel:hover .panel-content {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  transition: all 0.6s ease 0.3s; /* 0.3s Delay so title moves first */
}

.content-inner {
  max-width: 800px;
  width: 100%;
  padding: 0 50px;
  margin-top: 80px; /* Space for the title */
}

.panel-desc {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* --- INTERNAL GRID FOR CARDS --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.mini-card {
  background: var(--bg-color);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.mini-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.mini-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.mini-card a { color: var(--primary); font-weight: 700; font-size: 0.9rem; }

/* Photo Grid */
.project-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  height: 300px;
}

.p-item {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.p-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.panel:hover .p-item img {
  transform: scale(1.03);
  filter: grayscale(0%);
}
/* --- MOBILE RESPONSIVE --- */
/* On mobile, this effect is hard to use, so we switch to a vertical stack */
@media (max-width: 900px) {
  .expand-container {
    flex-direction: column; /* Stack vertically */
    height: auto; /* Allow scrolling */
  }

  .panel {
    flex: none; /* Disable flex growing */
    height: auto;
    padding: 60px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .panel-title {
    position: static;
    transform: none;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .panel-content {
    opacity: 1;
    pointer-events: all;
    transform: none;
    height: auto;
    padding: 0;
  }

  .content-inner { margin-top: 0; padding: 0; }
  
  .panel:hover .panel-title { transform: none; position: static; }
  .expand-container:hover .panel:not(:hover) .panel-title { writing-mode: horizontal-tb; transform: none; }
}

/* -----------------------------------------------------------
   8. GOAL BOARD PAGE
----------------------------------------------------------- */

/* Page Background - slightly warmer to feel like a room */
.board-section {
  padding: 60px 0;
  background-color: #f0f4f8; 
  min-height: calc(100vh - 80px);
}

.board-header {
  text-align: center;
  margin-bottom: 40px;
}

.board-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* THE BOARD CONTAINER */
.cork-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Columns */
  gap: 40px;
  background-color: #e8dcc4; /* Cork color base */
  /* Cork Texture using CSS pattern */
  background-image: radial-gradient(rgba(0,0,0,0.05) 2px, transparent 2px);
  background-size: 10px 10px;
  
  padding: 40px;
  border-radius: 20px;
  border: 12px solid #a07855; /* Wood Frame */
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.1), /* Inner shadow for depth */
    0 20px 50px rgba(0,0,0,0.15); /* Outer drop shadow */
}

/* Column Headers (Marker Style) */
.board-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.marker-title {
  font-family: 'Indie Flower', cursive; /* Handwritten font */
  font-size: 2rem;
  color: #333;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--primary);
  margin-bottom: 10px;
}

/* STICKY NOTES */
.sticky-note {
  width: 100%;
  max-width: 260px;
  min-height: 200px;
  padding: 24px;
  font-family: 'Indie Flower', cursive; /* Handwritten font */
  font-size: 1.4rem;
  line-height: 1.4;
  color: #333;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
  position: relative;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sticky-note:hover {
  transform: scale(1.05) rotate(0deg) !important; /* Pop up on hover */
  z-index: 10;
  box-shadow: 10px 20px 25px rgba(0,0,0,0.2);
}

.sticky-note strong {
  font-weight: 800;
  color: #000;
}

.date {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.6);
  margin-top: auto; /* Push to bottom */
  padding-top: 10px;
  display: block;
  text-align: right;
}

/* Note Colors */
.yellow { background: #fef3bd; }
.pink   { background: #f7d9d9; }
.blue   { background: #d4e7ff; }
.green  { background: #dcf7da; }

/* Rotations for "Messy" look */
.rotate-1 { transform: rotate(2deg); }
.rotate-2 { transform: rotate(4deg); }
.rotate-neg-1 { transform: rotate(-2deg); }
.rotate-neg-2 { transform: rotate(-4deg); }

/* --- VISUAL DETAILS (Pins & Tape) --- */

/* The Push Pin */
.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary); /* Red pin */
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  z-index: 2;
}

/* The Tape */
.tape {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 80px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.4); /* See-through tape */
  border-left: 1px dashed rgba(0,0,0,0.1);
  border-right: 1px dashed rgba(0,0,0,0.1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Finish Board */
.finish-board {
  margin-top: 50px;
  padding: 32px;
  border-radius: 20px;
  border: 2px dashed #a07855;
  background: #f7f4ee;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.finish-board-header {
  text-align: center;
  margin-bottom: 24px;
}

.finish-board-header h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.finish-board-header p {
  color: var(--text-light);
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.finish-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finish-card h3 {
  font-size: 1.15rem;
}

.finish-card p {
  color: var(--text-light);
}

.finish-card::after {
  content: "DONE";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.4);
  padding: 4px 8px;
  border-radius: 999px;
}

.finish-card.finish-empty::after {
  content: "PENDING";
  color: var(--text-light);
  border-color: rgba(100, 116, 139, 0.4);
}

/* Responsive: Stack columns */
@media (max-width: 900px) {
  .cork-board {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .sticky-note {
    max-width: 100%; /* Full width on mobile */
    min-height: 160px;
  }

  .finish-board {
    padding: 24px;
  }
}
/* -----------------------------------------------------------
   9. PHOTO PORTIFOLIO PAGE
----------------------------------------------------------- */
.portfolio-hero {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #fdf3e7 0%, #f3f6fb 45%, #eef2ff 100%);
}

.portfolio-hero-inner {
  max-width: 900px;
}

.portfolio-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.portfolio-hero h1 {
  font-size: 3.8rem;
  margin-bottom: 16px;
}

.portfolio-hero p {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.portfolio-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.portfolio-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

.portfolio-chip:hover {
  border-color: rgba(230, 57, 70, 0.4);
  color: var(--primary);
}

.portfolio-section {
  padding: 60px 0;
}

.portfolio-section:nth-of-type(even) {
  background: #f8fafc;
}

.portfolio-section-header {
  margin-bottom: 30px;
}

.portfolio-section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.portfolio-section-header p {
  color: var(--text-light);
  max-width: 720px;
}

.portfolio-group {
  margin-bottom: 40px;
}

.portfolio-group h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  background: #fff;
  
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 900px) {
  .portfolio-hero h1 {
    font-size: 2.6rem;
  }
}

/* -----------------------------------------------------------
   10. CONTACT PAGE
----------------------------------------------------------- */
.contact-section {
  padding: 60px 0 100px;
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: 32px;
  align-items: start;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 18px;
}

.contact-points {
  display: grid;
  gap: 10px;
}

.contact-point {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
  color: var(--text-dark);
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
}

.form-status {
  min-height: 22px;
  color: var(--text-light);
  font-weight: 600;
}

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

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