:root {
  --bg-dark: #09040a;
  --bg-blue: #0a1024;
  --bg-red: #3a0a0a;
  --accent: #ff6b4a;
  --text-main: #f5f5f5;
  --text-muted: #b7b0b0;
  --card-bg: rgba(255, 255, 255, 0.07);
  --border-soft: rgba(255, 255, 255, 0.04);
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Gradient on html::before — position:fixed keeps it pinned behind
   everything and avoids the backdrop-filter bug that kills
   background-attachment:fixed on body */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 3000px 2500px at 10% 20%, rgba(50, 80, 160, 0.35), rgba(30, 50, 100, 0.15) 50%, transparent 75%),
    radial-gradient(ellipse 3000px 2500px at 90% 50%, rgba(240, 80, 80, 0.4), rgba(150, 50, 50, 0.2) 50%, transparent 75%),
    radial-gradient(ellipse 2500px 2000px at 50% 85%, rgba(80, 40, 60, 0.25), rgba(50, 25, 40, 0.1) 50%, transparent 75%),
    linear-gradient(180deg, #0d0508 0%, #1a0a0f 50%, #25080e 100%);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: #0d0508;
  overflow-x: hidden;
  margin: 0;
  padding: 0 0 40px 0;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* BLOBS - optimized for performance */
.blob {
  position: fixed;
  width: 2200px;
  height: 2200px;
  filter: blur(250px); /* Reduced from 400px for better performance */
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  animation: pulse 10s infinite ease-in-out;
}

.blob-left {
  background: #1a3070;
  top: -1000px;
  left: -1000px;
}

.blob-center {
  background: #5a2535;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.blob-right {
  background: #8a1a1a;
  bottom: -1000px;
  right: -1000px;
}

.blob-cta {
  position: fixed;
  background: rgba(255, 107, 74, 0.4);
  width: 1200px;
  height: 1200px;
  filter: blur(200px); /* Reduced from 300px for better performance */
  opacity: 0.7;
  top: 50%;
  pointer-events: none;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-cta 7s infinite ease-in-out;
  z-index: -1;
}

/* PULSING ANIMATIONS */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0.5; }
}

@keyframes pulse-cta {
  0% { transform: scale(1) translate(-50%, -50%); opacity: 0.7; }
  50% { transform: scale(1.12) translate(-50%, -50%); opacity: 0.8; }
  100% { transform: scale(1) translate(-50%, -50%); opacity: 0.7; }
}

/* FADE-IN ON SCROLL */
section {
  opacity: 0;
  scroll-margin-top: 120px;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  margin-bottom: 100px;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HEADER */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: #111827cc;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Push page content below the fixed header */
.container {
  padding-top: 80px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: #ff6b4a;
  border: 2px solid #fff;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
}

.hamburger.active span:nth-child(1) { 
  transform: translateY(10px) rotate(45deg); 
}
.hamburger.active span:nth-child(2) { 
  opacity: 0; 
}
.hamburger.active span:nth-child(3) { 
  transform: translateY(-10px) rotate(-45deg); 
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo-icon {
  color: var(--accent);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.nav a {
  margin: 0 14px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text-main);
}

.showreel-section {
  margin-bottom: 100px;
}

.showreel-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.showreel-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.showreel-placeholder i {
  font-size: 60px;
  color: var(--accent);
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.3s;
}

.showreel-placeholder:hover i {
  transform: scale(1.1);
}

.showreel-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}

.showreel-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
}



/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  padding: 100px 0 80px;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 60px;
  margin-left: 75px;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 40px;
  align-items: start;
}

.hero-content {
  text-align: left;
  margin-left: 75px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  width: fit-content;
}

.hero .hero-label {
  margin: 0 0 20px 0;
}


.hero-label i {
  font-size: 14px;
  color: var(--accent);
}


.hero-title {
  font-size: 84px;
  line-height: 1.02;
  font-weight: 800;
  margin-bottom: 0;
}

.hero-title span {
  color: var(--accent);
  font-style: italic;
}

.hero-text {
  max-width: 550px;
  font-size: 23px;
  color: var(--text-muted);
  margin-bottom: 34px;
  line-height: 1.2;
}

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

/* BUTTONS */
.btn {
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 1px 30px rgba(255, 107, 74, .4);
}

.btn-secondary {
  border: 0.5px solid rgb(199, 182, 182);
  color: var(--text-main);
  background: #ffffff1a;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 30px #ffffff1a;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-content: start;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 40px;
  padding: 24px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  text-align: center;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 40px rgba(255, 107, 74, 0.3), 0 0 0 1px rgba(255, 107, 74, 0.2);
  border-color: rgba(255, 107, 74, 0.3);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* SECTION TITLES */
.section-title {
  text-align: center;
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  max-width: 620px;
  font-size: 16px;
  margin: 0 auto 50px;
  color: var(--text-muted);
}

/* SERVICES */
.services {
  padding: 80px 0 50px; /* Added top padding to replace the removed line breaks */
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  padding: 40px;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.service-card h3 {
  color: var(--text-main);
  font-size: 24px;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
}
.showreel-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 30px;
}


/* ICON CIRCLES */
.icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(255,107,74,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.icon-circle i {
  color: var(--accent);
}

/* =========================
   STEP 6 – SHORT FORM GRID
========================= */

.portfolio {
  margin-bottom: 140px;
}

.portfolio-category {
  font-size: 24px;
  margin-bottom: 30px;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

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

.portfolio-grid.short .portfolio-thumb {
  height: 360px;
}

.portfolio-item {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-meta {
  padding: 18px;
}

.portfolio-meta h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.portfolio-meta p {
  font-size: 13px;
  color:var(--text-muted);
  margin-bottom: 8px;
}

.portfolio-meta span {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

/* MOBILE */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid.short .portfolio-thumb {
    height: 300px;
  }
}

/* =========================
   ABOUT PETAR – FINAL
========================= */

.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
}

.about-image {
  text-align: center;
}

.profile-placeholder {
  width: 250px;
  height: 250px;
  background: #1a1a1a;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: #333;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(255,107,74,0.2);
  overflow: hidden; /* ⬅️ OVO */
}

.profile-placeholder img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  border-radius: 50%;
  transform: translateY(10px);
}

.about-text h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 800;
}

.about-text h2 span {
  color: var(--accent);
}

.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.skill-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: #ccc;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 40px;
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.02);
}

.service-icon {
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 12px;
}

/* TESTIMONIALS */
.testimonials {
  padding: 50px 0;
  transform: scale(1.02);
}

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

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 40px;
  padding: 32px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 50px rgba(255, 107, 74, 0.25), 0 0 0 1px rgba(255, 107, 74, 0.2);
  border-color: rgba(255, 107, 74, 0.3);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-main);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.final-cta .hero-label {
  margin: 0 auto 20px;
}

/* FINAL CTA */
.final-cta {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 60px 0 0;
}

.final-cta-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta h2 {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.1;
}

.final-cta h2 span {
  color: var(--accent);
  font-style: italic;
}

.final-cta p {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.final-cta .btn {
  font-size: 15px;
  padding: 14px 32px;
}

.final-cta .btn i {
  margin-right: 8px;
  font-size: 16px;
}

.final-cta small {
  display: block;
  margin-top: 14px;
  margin-top: 50px;
  font-size: 13px;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 24px 0 24px;
  margin-top: 20px;
  margin-bottom: 50px;
  font-size: 13px;
  color: var(--text-muted);
}

/* TABLET - Prevent header cutoff on sides */
@media (max-width: 1200px) and (min-width: 901px) {
  .header-container {
    padding: 0 30px;
  }
  
  .nav a {
    margin: 0 10px;
    font-size: 13px;
  }
}

/* DESKTOP - Ensure hamburger is hidden */
@media (min-width: 901px) {
  .hamburger {
    display: none !important;
  }
}

@media (max-width: 900px) {
   html::before {
    background:
      radial-gradient(
        ellipse 140% 80% at 15% -10%,
        rgba(50, 80, 160, 0.35),
        transparent 60%
      ),
      radial-gradient(
        ellipse 140% 80% at 85% 30%,
        rgba(240, 80, 80, 0.35),
        transparent 60%
      ),
      radial-gradient(
        ellipse 120% 70% at 50% 85%,
        rgba(80, 40, 60, 0.25),
        transparent 65%
      ),
      linear-gradient(
        180deg,
        #0d0508 0%,
        #1a0a0f 55%,
        #25080e 100%
      );
  }
  .blob,
  .blob-cta {
    display: none;
  }

  .contact-block:hover {
    transform: none;
    box-shadow: none;
  }

  section {
    opacity: 1 !important;
    transform: none !important;
  }
  /* 1. Fixed Header Background Handling */
  /* Ensures the header looks solid dark when menu is open or scrolled */
  .header.scrolled, 
  .header:has(.nav.open) {
    background: #111827cc;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
  }

  /* 2. The Clean "X" Animation */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center; /* Centers lines vertically */
    gap: 6px;                /* Precise spacing for the X calculation */
    background: transparent !important;
    border: none !important;
    width: 30px;
    height: 30px;
    padding: 0;
    z-index: 202; /* Above the menu */
  }

  .hamburger span {
    width: 100%;
    height: 2px; /* Thin clean white lines */
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  /* Transform to X */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px); /* Slide out effect */
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  

  /* 3. The "Half-Page" Dropdown */
  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto; /* Hugs content height (Half page) */
    background: #111827ec; /* Matches your dark theme */
    padding: 90px 24px 30px; /* Top padding clears the header */
    
    /* Bottom border/shadow to separate from page content */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);

    /* Slide Down Animation */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, visibility 0.4s;
    z-index: 201; /* Behind hamburger/logo */
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Menu Links Styling */
  .nav a {
    font-size: 16px;
    font-weight: 500;
    color: #b7b0b0;
    width: 100%;
    padding: 16px 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Separators */
    text-align: left;
  }
  
  .nav a:hover, 
  .nav a:active {
    color: var(--accent);
    padding-left: 10px; /* Subtle movement on touch */
  }
  
  .nav a:last-child {
    border-bottom: none;
  }

  .footer {
    padding: 24px 20px 50px; 
  }

  /* 2. Layout: Ensure the grid stacks in 1 column */
  .services-grid, 
  .portfolio-grid, 
  .testimonial-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
    width: 100%;
    justify-items: center; /* ⬅️ centriranje kartica */
  }

  

  /* Portfolio card */
  .portfolio-item {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform: none; /* ⬅️ ubija onaj loš translate */
  }

  /* Tap / press feedback */
  .portfolio-item:active {
    transform: scale(0.96);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  }

  /* Thumbnails */
  .portfolio-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    overflow: hidden;
    position: relative;
  }

  /* Short-form vertical cards */
  .portfolio-grid.short .portfolio-thumb {
    aspect-ratio: 9 / 16;
    max-height: 350px;
  }

  .portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Hide inner links since whole card is clickable */
  .portfolio-meta a {
    display: none;
  }

  section {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transform: translateY(10px);
  }

  .fade-in {
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    transform: translateY(12px);
  }
  

  /* Mobile Layout Adjustments (Preserved) */
  .header-container { padding: 0 24px; }
  .logo { z-index: 202; position: relative; } /* Keep logo above menu */
  .service-card {
    width: 100%; /* ⬅️ Ensures the card fills the grid column */
    max-width: none; /* ⬅️ Removes any restrictions */
  }
  .service-card h3 { font-size: 20px; } /* Increase title size */
  .service-card p { font-size: 16px; }  /* Increase text size */

    .contact-info-grid {
    grid-template-columns: 1fr;
  }

  
  .container { padding: 0 20px; padding-top: 80px; }
  .hero-title { font-size: 64px; line-height: 1.1; width: 100%; text-align: center; }
  .hero-text { font-size: 25px; text-align: center; margin: 0 auto 30px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 40px; }
  .hero-content, .hero-top { margin-left: 0; text-align: center; }
    .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }
 .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 16px 0;
    font-size: 16px;
    border-radius: 999px;
  }
  .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
  }

  .btn-primary {
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(255,107,74,0.35);
  }
  .stats-grid { margin: 0; }
  /* line 809 approx */
  .portfolio-grid.short { grid-template-columns: 1fr; }
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-skills-list {
    justify-content: center;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  html::before {
    background:
      radial-gradient(
        ellipse 220% 160% at 10% 20%,
        rgba(50, 80, 160, 0.30),
        transparent 65%
      ),
      radial-gradient(
        ellipse 220% 160% at 90% 45%,
        rgba(240, 80, 80, 0.30),
        transparent 65%
      ),
      radial-gradient(
        ellipse 200% 140% at 50% 85%,
        rgba(80, 40, 60, 0.22),
        transparent 70%
      ),
      linear-gradient(
        180deg,
        #0d0508 0%,
        #1a0a0f 55%,
        #25080e 100%
      );
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .blob {
    width: 1600px;
    height: 1600px;
    filter: blur(180px);
    opacity: 0.45;
  }

  .blob-cta {
    width: 900px;
    height: 900px;
    filter: blur(150px);
    opacity: 0.55;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
    padding-top: 70px;
  }
  

  .hero {
    padding: 40px 0 50px;
  }

  .hero-title { 
    font-size: 58px;
    line-height: 1.15;
    text-align: center;
  }

  .hero-text { 
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
  }

  .hero-top {
    margin-bottom: 30px;
    text-align: center;
  }

  .hero-label {
    font-size: 12px;
    justify-content: center;
  }

  .section-title { 
    font-size: 32px;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-skills-list {
    justify-content: center;
  }

  .stat-card {
    padding: 18px;
    border-radius: 30px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }

  .service-card,
  .portfolio-item,
  .skill-card,
  .testimonial-card {
    border-radius: 30px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .skill-card {
    padding: 20px 16px;
  }

  .final-cta {
    padding: 40px 0 30px;
  }

  .final-cta h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  .final-cta .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .footer {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 50px;
    padding: 24px 20px 50px; /* Update the third value to 50px */
  }
}

.contact-info-section {
  padding: 60px 0 40px;
  background: transparent;
}

.contact-info-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-info-container h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 42px;
  color: var(--text-main);
}

.contact-info-container h3::after {
  content: '';
  display: block;
  width: 70px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
}


.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.contact-block {
  background: linear-gradient(
    180deg,
    rgba(255,107,74,0.08),
    rgba(255,107,74,0.02)
  );
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,107,74,0.18);
  border-radius: 36px;
  padding: 30px;
  margin-left: 10px;
  margin-right: 10px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,107,74,0.06);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.contact-block:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 18px 50px rgba(255,107,74,0.25),
    0 0 0 1px rgba(255,107,74,0.25);
  border-color: rgba(255,107,74,0.35);
}

.contact-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top,
    rgba(255,107,74,0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.contact-block:hover::after {
  opacity: 1;
}


.contact-block h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.contact-block a {
  color: var(--text-main);
  text-decoration: none;
  position: relative;
}

.contact-block a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: rgba(255,107,74,0.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.contact-block a:hover::after {
  transform: scaleX(1);
}


.registry-link {
  margin-top: 10px;
  font-size: 13px;
}

.contact-divider {
  width: 100%;
  max-width: 560px;
  height: 1px;
  margin: 60px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,107,74,0.6),
    transparent
  );
}



@media (max-width: 900px) {
  .contact-info-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-info-grid {
    gap: 20px;
  }

  .contact-card,
  .business-card {
    padding: 24px 20px;
  }

  .contact-block {
    border-radius: 20px;
  }
  .hero .hero-label {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1000px) {
  .hero-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 72px;
  }

  .hero-text {
    font-size: 18px;
    line-height: 1.6;
  }

  .hero-top,
  .hero-content {
    margin-left: 0;
  }
}


@media (max-width: 900px) {

  /* Center ALL card text */
  .service-card,
  .portfolio-meta,
  .testimonial-card,
  .about-text,
  .final-cta,
  .contact-info-container {
    text-align: center;
  }

  /* Fix headings spacing */
  .service-card h3,
  .portfolio-meta h4,
  .testimonial-card p,
  .about-text h2,
  .about-text p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Center icons */
  .icon-circle {
    margin-left: auto;
    margin-right: auto;
  }
}


@media (max-width: 900px) {
  .hero-top,
  .hero-content,
  .hero-text {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .portfolio-meta {
    text-align: center;
  }

  .portfolio-item {
      margin-bottom: 25px;
    }

  .portfolio-meta span {
    display: block;
    margin-top: 6px;
  }
}



