/* Fonts + Theme vars (inspired minimal aesthetic) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=syne@400,500,600,700,800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&display=swap');
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0b0b0b;
  --muted: #6b7280;
  --accent: #0a84ff;
  --accent-2: #3aa1ff;
  --overlay: rgba(0,0,0,0.94);
  --section-label: #ff6b35;
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: scroll; /* prevents burger from shifting when overlay shows/hides */
}

/* Keep scrollbar space so layout doesn't shift when overlay opens */
html {
  scrollbar-gutter: stable; /* modern browsers reserve gutter even when not needed */
}

/* Lock background scroll when nav is open (modern browsers) */
html:has(#nav-overlay.open) {
  overflow: hidden;
}

/* Fixed Logo */
.logo {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.01em;
    z-index: 1100;
    transition: opacity 0.3s ease;
    text-decoration: none;
    font-family: 'Changa One', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.logo.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger Button */
.hamburger {
    position: fixed;
    top: 2rem;              /* was 1.5rem */
    right: 2rem;            /* was 1.5rem */
    width: 36px;            /* was 24px */
    height: 28px;           /* was 20px */
    cursor: pointer;
    z-index: 1103;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;               /* was 6px */
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger:focus-visible {
    outline: 2px solid #88c9ff;
    outline-offset: 4px;
}

/* Hamburger bars - two lines only */
.bar {
    display: block;
    width: 100%;
    height: 3px;            /* was 2px */
    background-color: var(--section-label);
    border-radius: 2px;     /* was 1px */
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: center;
}

.hamburger.open .bar {
    background-color: var(--section-label);
    box-shadow: 0 0 6px rgba(255, 107, 53, 0.75);
}

.hamburger.open .top {
    transform: translateY(5px) rotate(45deg);   /* was 4px */
}

.hamburger.open .bottom {
    transform: translateY(-5px) rotate(-45deg); /* was -4px */
}

/* Nav Overlay */
.nav-overlay {
    background-color: var(--overlay);
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(15px);
    transition: top 0.5s ease, opacity 0.3s ease;
    will-change: top, opacity;
    z-index: 1101;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 10%;
    flex-direction: row;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

.nav-overlay.open {
    top: 0;
    pointer-events: auto;
    opacity: 1;
}

/* Stars canvas behind nav */
#menu-stars {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
    pointer-events: none;
}

/* Nav links */
.fullscreen-nav {
    position: relative;
    z-index: 2;
}

.fullscreen-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fullscreen-nav ul li {
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    margin: 1rem 0;
}

.fullscreen-nav ul li a {
    position: relative;
    display: inline-block;
    color: #e9eef3;
    text-decoration: none;
    user-select: none;
    letter-spacing: 0.035em;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    padding: .25rem 0;
    transition: color .35s ease;
}

.fullscreen-nav ul li a:hover {
    color: var(--accent);
}

/* Underline animation */
.fullscreen-nav ul li a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.6,.2,.2,1);
  border-radius: 2px;
}
.fullscreen-nav ul li a:hover::after,
.fullscreen-nav ul li a:focus-visible::after { transform: scaleX(1); }

/* Staggered reveal when overlay opens */
.nav-overlay .fullscreen-nav a { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.4,.6,.2,1); }
.nav-overlay.open .fullscreen-nav a { opacity: 1; transform: translateY(0); }
.nav-overlay.open .fullscreen-nav li:nth-child(1) a { transition-delay: .05s; }
.nav-overlay.open .fullscreen-nav li:nth-child(2) a { transition-delay: .10s; }
.nav-overlay.open .fullscreen-nav li:nth-child(3) a { transition-delay: .15s; }
.nav-overlay.open .fullscreen-nav li:nth-child(4) a { transition-delay: .20s; }
.nav-overlay.open .fullscreen-nav li:nth-child(5) a { transition-delay: .25s; }
.nav-overlay.open .fullscreen-nav li:nth-child(6) a { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  .nav-overlay .fullscreen-nav a { transition: none !important; opacity: 1 !important; transform: none !important; }
  .fullscreen-nav ul li a::after { transition: none !important; }
}

/* Sections */
section {
    min-height: 100vh;
    padding-block: clamp(4rem, 8vw, 8rem);
    padding-inline: clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    background-color: transparent;
}

/* Subtle section separators */
section + section { position: relative; }
section + section::before {
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width: min(92%, 1200px); height:1px; background:linear-gradient(90deg,transparent,rgba(0,0,0,0.12),transparent);
  mix-blend-mode: multiply; pointer-events:none; }
@media (prefers-color-scheme: dark) { section + section::before { background:linear-gradient(90deg,transparent,rgba(255,255,255,0.08),transparent); } }

.section-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6rem;
}

.section-content.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    max-width: 600px;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: min(100%, 520px);
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Section Labels */
.section-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--section-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* Section Colors */
.hero {
    background-color: var(--surface);
}

.about {
    background-color: #eef3f8;
}

.services {
    background-color: #e8f4fd;
    color: var(--text);
}

.portfolio {
    background-color: var(--surface);
}

.contact {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(145deg, #071423, #0d2036 55%, #12365d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  user-select: none;
}

.contact-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5rem, 24vw, 20rem);
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  letter-spacing: 0.25em;
  font-family: 'Clash Display', sans-serif;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
  z-index: 1;
  animation: subtlePulse 14s ease-in-out infinite;
  mix-blend-mode: lighten;
}

@keyframes subtlePulse { 0%,100%{opacity:.33;} 50%{opacity:.55;} }

@media (prefers-reduced-motion: reduce) {
  .contact-watermark {
    animation: none;
    transform: translate(0, -50%);
  }
  .shape,
  .orbit,
  .planet,
  .connection-line {
    animation: none !important;
  }
  .fade-in {
    transition: none !important;
    opacity: 1 !important;      /* ensure text is visible */
    transform: none !important;  /* remove offset */
  }
}

.contact-info {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: left;
  backdrop-filter: blur(6px) saturate(140%);
  background: linear-gradient(140deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.contact-info h2 { color: var(--accent); margin: 0; font-size: clamp(2.5rem,5vw,4rem); line-height: .9; }

.contact-info p { color: var(--muted); margin: 0; max-width: 560px; }

.email-row { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.contact-email { font-size: clamp(1.1rem,2.2vw,1.5rem); font-weight:600; color: #cfe5ff; text-decoration:none; background: rgba(255,255,255,0.08); padding:.75rem 1.1rem; border-radius: 12px; border:1px solid rgba(255,255,255,0.12); backdrop-filter: blur(4px); transition: background .35s ease,border-color .35s ease, color .35s ease; }
.contact-email:hover, .contact-email:focus-visible { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.32); color:#ffffff; }
.copy-email-btn { background: rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.15); color: var(--text); padding:.65rem .9rem; border-radius: 12px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; font-size:.85rem; font-weight:500; transition: background .3s ease, border-color .3s ease, transform .35s cubic-bezier(.22,.79,.31,.99); }
.copy-email-btn:hover, .copy-email-btn:focus-visible { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.copy-email-btn:active { transform: translateY(0); }

/* Remove old location/email styles retained above */

/* Trust badges */
.trust-badges { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:.25rem; }
.trust-badges .badge { display:inline-flex; align-items:center; gap:.45rem; padding:.55rem .85rem; background: rgba(255,255,255,0.09); border:1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size:.75rem; letter-spacing:.05em; font-weight:500; text-transform:uppercase; color: #cfe5ff; backdrop-filter: blur(4px); transition: background .3s ease, border-color .3s ease, color .3s ease; }
.trust-badges .badge i { font-size:.85rem; color: var(--accent); filter: drop-shadow(0 0 4px rgba(0,123,255,0.35)); }
.trust-badges .badge:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); color: #ffffff; }

/* CTA row */
.contact-cta-row { margin-top:.75rem; }
.cta-button.small { font-size:.8rem; padding:.85rem 1.05rem; letter-spacing:.08em; }

/* Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #cfe5ff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Footer */
footer {
  margin-top: auto;
  width: 100%;
  background-color: #0a0a0a;
  padding: 1.5rem 0;
  color: #88c9ff;
  font-weight: 600;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-content p {
  margin: 0;
  color: #88c9ff;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

footer .heart {
  color: #ff3b3b;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
}

/* Typography */
h1, h2 {
  font-family: 'Clash Display', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
}

h1 {
    font-size: clamp(2.25rem, 6vw, 5.5rem);
    margin-bottom: 2.5rem;
    text-shadow: none;
    background: none;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Static hero variant */
.hero-heading { font-size: clamp(2.6rem,7vw,5.2rem); line-height:1.04; letter-spacing:-0.035em; margin:0 0 0.9rem 0; max-width:13ch; }
.hero-summary { font-size: clamp(1rem,1.15vw,1.12rem); max-width:50ch; margin:0 0 1.2rem 0; }
@media (max-width:640px){
  .hero-heading { font-size: clamp(2.2rem,10vw,3.2rem); }
  .hero-summary { font-size:1rem; }
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 1.4rem 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p { 
  color: var(--muted); 
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 1.6rem 0;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* Hero Section Enhancements */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--section-label), var(--accent));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero illustration (consolidated; removed later duplicate) */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: clamp(640px, 60vw, 1100px);
  height: auto;
}

.animated-svg {
    width: 100%;
    height: 100%;
    max-width: 400px;
}

.orbit {
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

.planet {
    animation: pulse 3s ease-in-out infinite;
}

.planet:nth-child(2) {
    animation-delay: 1s;
}

.planet:nth-child(3) {
    animation-delay: 2s;
}

.connection-line {
    animation: glow 4s ease-in-out infinite;
}

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

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

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    color: var(--section-label);
    font-size: 2rem;
    font-weight: bold;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.section-content {
    position: relative;
    z-index: 2;
}

/* Service Tags */
.service-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Navigation links with orange accent */
.fullscreen-nav ul li a {
    color: #e9eef3;
    text-decoration: none;
    transition: color 0.3s;
    user-select: none;
    text-shadow: none;
    letter-spacing: 0.04em;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
}

.fullscreen-nav ul li a:hover {
    color: var(--section-label);
    text-shadow: none;
}

/* Enhanced Service Tags */
.service-tag {
  background: var(--accent);
  color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.service-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.service-tag:hover::before {
    left: 100%;
}

.service-tag:hover {
  background: #066fd1;
    transform: translateY(-3px);
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background .3s ease, transform .35s cubic-bezier(.22,.79,.31,.99), box-shadow .35s ease;
  margin-top: 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 6px 18px -6px rgba(10,132,255,0.45);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--accent-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -10px rgba(10,132,255,0.6);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  box-shadow: none;
  margin-left: 1rem;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus-visible {
  background: var(--text);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.4), 0 0 0 6px rgba(0,0,0,0.18);
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    font-family: 'Clash Display', sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2.5rem;
  width: 100%;
  max-width: none;
}

/* Compact mode (when fewer than 3 items) */
.portfolio-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: start;
  max-width: none;
}

.portfolio-item {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform 0.45s cubic-bezier(.22,.79,.31,.99), box-shadow 0.45s ease, border-color 0.35s ease;
    position: relative;
    cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Stagger base state */
.portfolio-item, .testimonial-card { opacity:0; transform: translateY(24px); }
.portfolio-item.revealed, .testimonial-card.revealed { opacity:1; transform: translateY(0); transition: opacity .7s ease, transform .7s cubic-bezier(.18,.72,.24,1); }

@media (prefers-reduced-motion: reduce) {
  .portfolio-item, .testimonial-card { opacity:1 !important; transform:none !important; transition:none !important; }
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 16px 48px -8px rgba(0,0,0,0.18);
}

.portfolio-image {
  height: clamp(160px, 18vw, 220px);
    overflow: hidden;
    position: relative;
}

.portfolio-image .image-placeholder {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
    transition: transform 0.4s ease;
}

.placeholder-label {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: .85rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:600;
  padding:.55rem .9rem;
  background: rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color:#fff;
  backdrop-filter: blur(4px) saturate(160%);
}

/* Simple replacements for removed font icons */
.icon-placeholder { font-size: 3rem; line-height:1; opacity:.65; display:flex; align-items:center; justify-content:center; }
.trust-badges .badge-icon { font-size: .9rem; display:inline-flex; align-items:center; justify-content:center; }

.portfolio-item:hover .portfolio-image .image-placeholder {
    transform: scale(1.1);
}

/* Portfolio layout refinement */
.portfolio-layout { flex-direction: column; align-items: stretch; gap: 2.5rem; }
.portfolio-intro { max-width: 560px; }
.portfolio-intro h2 { margin-bottom: 1rem; }
.portfolio-intro p { max-width: 520px; }

@media (min-width: 1050px) {
  .portfolio-layout { flex-direction: row; align-items: flex-start; }
  .portfolio-intro { flex: 0 0 380px; position: sticky; top: 6rem; }
  .portfolio-grid { flex: 1; margin-top: 0; }
}

@media (min-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (min-width: 1300px) {
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

.portfolio-overlay {
  position:absolute; inset:0; width:100%; height:100%;
  background:
    linear-gradient(190deg, rgba(5,25,45,0.15), rgba(5,25,45,0.55) 45%, rgba(5,25,45,0.8) 100%),
    linear-gradient(135deg, rgba(10,132,255,0.85), rgba(58,161,255,0.55));
  mix-blend-mode: multiply;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition: opacity .45s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    color: white;
}

.portfolio-overlay-content h4 { font-size:1.05rem; margin:0 0 .35rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; }

.portfolio-overlay-content p { font-size:.75rem; opacity:.85; letter-spacing:.08em; text-transform:uppercase; font-weight:600; }

.portfolio-content {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(-5px);
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-family: 'Clash Display', sans-serif;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-content h3 {
    color: var(--section-label);
}

.portfolio-content p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-content p {
    color: var(--text);
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Portfolio tags with orange */
.tag {
  background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.tag:hover {
  background: #066fd1;
    transform: translateY(-2px);
}

.portfolio-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--section-label);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-link:hover {
    color: #e55a2b;
    transform: translateX(4px);
}

.portfolio-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--section-label);
    transition: width 0.3s ease;
}

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

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

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.service-card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0 0 1rem 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
  border-bottom: 1px solid rgba(11, 33, 58, 0.15);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.service-card:last-child {
  border-bottom: none;
}

.service-card:hover {
  transform: translateX(4px);
  opacity: 0.98;
}

.service-card i {
  animation: none;
  font-size: 1.6rem;
  color: #93caff;
  filter: drop-shadow(0 0 4px rgba(147,202,255,0.5));
  margin-top: 0.2rem;
  display: none !important;
}

.service-card h3 {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: #e9eef3;
  font-family: 'Clash Display', sans-serif;
}

.service-card h3::after {
  content: none;
}

.service-card p {
  margin: 0;
  color: rgba(233,238,243,0.8);
}

/* Section heading accents with orange */
.hero .text-content h1::after,
.about .text-content h2::after,
.services .text-content h2::after,
.portfolio .text-content h2::after,
.testimonials .text-content h2::after,
.contact .text-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.6rem;
  width: 110px;
  height: 2px;
  background: var(--section-label);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.35);
}

.hero .text-content h1,
.about .text-content h2,
.services .text-content h2,
.portfolio .text-content h2,
.testimonials .text-content h2,
.contact .text-content h2 {
  position: relative;
}

/* Hide icons across sections */
.image-placeholder i,
.service-card i,
.contact-email i,
.contact-location i {
  display: none !important;
}

/* Accessible focus states */
a:focus-visible,
.cta-button:focus-visible,
.fullscreen-nav a:focus-visible,
.portfolio-link:focus-visible,
.hamburger:focus-visible {
  outline: none;
  position: relative;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.65), 0 0 0 6px rgba(0,123,255,0.18);
  border-radius: 6px;
  transition: box-shadow .25s ease;
}

/* Larger hit area for overlay links */
.fullscreen-nav ul li a {
  padding-block: 0.2rem;
}

/* Portfolio: make keyboard focus behave like hover */
.portfolio-item:focus-within {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 16px 48px -8px rgba(0,0,0,0.18);
}
.portfolio-item:focus-within .portfolio-overlay {
  opacity: 1;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  background: var(--section-label);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 0;
  z-index: 2000;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Testimonials Section (restored) */
.testimonials {
  background: linear-gradient(180deg, #f7fafd 0%, #eef3f8 60%, #e6edf4 100%);
  padding: clamp(4.5rem,8vw,7rem) clamp(1rem,4vw,2rem);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content:"";
  position:absolute;inset:0;
  background: radial-gradient(circle at 18% 22%, rgba(0,123,255,0.08), transparent 55%),
              radial-gradient(circle at 82% 78%, rgba(255,166,0,0.06), transparent 60%);
  pointer-events:none;opacity:.9;
}


.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(2rem,2.8vw,2.8rem);
  margin-top: 3.2rem;
  width:100%;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 3.35rem 2.25rem 2rem; /* increased top space */
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05), 0 10px 40px -14px rgba(0,0,0,0.14);
  transition: transform .55s cubic-bezier(.22,.79,.31,.99), box-shadow .55s ease, border-color .45s ease;
  display:flex;flex-direction:column;gap:1.4rem;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 18px; left: 22px; /* lowered further */
  font-size: 5.2rem; line-height:1;
  font-family: 'Clash Display', sans-serif;
  background: linear-gradient(120deg,var(--accent), var(--section-label));
  background-clip: text; -webkit-background-clip:text; color: transparent;
  opacity: .18; pointer-events:none; /* slightly lighter */
}

.testimonial-card:hover,
.testimonial-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 18px 48px -10px rgba(0,0,0,0.18);
  border-color: var(--accent);
}

.testimonial-content p {
  font-size: 1.06rem;
  line-height: 1.72;
  color: #1d242b;
  margin: 0 0 1.05rem 0; /* add clearer separation from author */
  font-style: italic;
  font-weight: 500;
  letter-spacing: .01em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0; /* rely on paragraph margin-bottom */
  margin-bottom: .4rem;
}

.author-avatar {width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,var(--accent),var(--section-label));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:.75rem;box-shadow:0 3px 10px -4px rgba(0,0,0,0.28);}

.author-info h4 {margin:0;font-size:1.05rem;font-weight:600;font-family:'Clash Display',sans-serif;color:#111518;letter-spacing:.005em;line-height:1.05;}

.author-info span {font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600;line-height:1;}

.rating {
  display: flex;
  gap: 0.2rem;
}

.rating .star {color:#ffbf1f;font-size:1rem;filter: drop-shadow(0 0 2px rgba(255,191,31,0.45));animation: star-glow 3.4s ease-in-out infinite;}
.rating .star:nth-child(odd){animation-duration:3.8s}

.rating .star:nth-child(2){animation-delay:.2s}
.rating .star:nth-child(3){animation-delay:.4s}
.rating .star:nth-child(4){animation-delay:.6s}
.rating .star:nth-child(5){animation-delay:.8s}

@keyframes star-glow {0%,100%{opacity:1;transform:translateY(0) scale(1);}50%{opacity:.85;transform:translateY(-2px) scale(1.07);}}

/* Email + copy button row */
.email-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Utility: hide content visually but keep for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Copy email button */
.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;                 /* ensure alignment next to email */
  padding: 0.35rem 0.6rem;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #cfe5ff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.copy-email-btn:hover,
.copy-email-btn:focus-visible {
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  border-color: rgba(255,255,255,0.28);
}
.copy-email-btn:active {
  transform: translateY(1px);
}
.copy-email-btn.copied {
  background: rgba(76,175,80,0.25);
  border-color: rgba(76,175,80,0.45);
}
.copy-email-btn .copy-symbol {
  font-size: 1rem;
}

/* Icon-only sizing for the copy button */
.copy-email-btn.icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  gap: 0;
}

/* SVG copy icon */
.copy-email-btn .copy-icon {
  width: 18px;
  height: 18px;
  display: block;
  color: #cfe5ff; /* inherits hover/focus color changes from button */
}

/* PNG copy icon */
.copy-email-btn .copy-icon-img {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(92%); /* make dark icon appear light on dark bg */
}

/* Improve contrast on hover/focus */
.copy-email-btn:hover .copy-icon-img,
.copy-email-btn:focus-visible .copy-icon-img {
  filter: invert(100%);
}

/* Tooltip styles */
.copy-email-btn[data-tip] {
  position: relative;
}

.copy-email-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.copy-email-btn[data-tip]::before {
  content: "";
  position: absolute;
  bottom: 102%;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: rgba(0,0,0,0.75);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 19;
}

.copy-email-btn[data-tip]:hover::after,
.copy-email-btn[data-tip]:focus-visible::after,
.copy-email-btn[data-tip]:hover::before,
.copy-email-btn[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* High contrast / reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .copy-email-btn[data-tip]::after {
    transition: none;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .section-content {
    gap: 3rem;
  }
  .fullscreen-nav ul li {
    font-size: 3rem;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
  }
  
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3.5rem;
  }
  
  .image-placeholder {
    max-width: 400px;
    height: 400px;
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .section-content {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2.2rem;
  }

    .section-content.reverse {
        flex-direction: column;
    }

  .image-placeholder {
    max-width: 260px;
    height: 260px;
    font-size: 3.2rem;
  }

  /* About section: tighten space above heading */
  .about .section-content { gap: 1.6rem; }
  .about .image-placeholder { max-width: 220px; height: 220px; font-size: 2.6rem; }
  /* Remove About section image/icon & reclaim space on mobile */
  .about .image-content { display: none !important; }
  .about { min-height: auto; padding-top: 2rem; }
  .about .text-content { max-width: 100%; }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }
    
    p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
      max-width: 90%;
      padding: 1rem;
      text-align: left;
    }

    .contact-watermark {
      font-size: 22vw;
      left: 2%;
    }

    .nav-overlay {
      padding-left: 0;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }
    
    .fullscreen-nav ul li {
      font-size: 2.2rem;
      margin: 1rem 0;
    }
    
    .logo {
      font-size: 1.8rem;
      left: 1rem;
      top: 1rem;
    }
    
    .hamburger {
      top: 1.5rem;     /* was 1rem */
      right: 1.5rem;   /* was 1rem */
      width: 38px;     /* was 34px */
      height: 30px;    /* was 34px (square); better proportion for two bars */
    }
    
    .bar {
      height: 3px;
    }
    
    section {
      padding: 4rem 1rem;
    }
    
  /* Hero CTAs: avoid full-width stretching on mobile */
  .hero .cta-button { width: auto; max-width: none; text-align: left; }
  .hero-cta { align-items: flex-start; }
  .hero .cta-button + .cta-button { margin-left: 0; }
  /* Make hero CTAs more compact on mobile */
  .hero .cta-button { padding: .7rem 1.15rem; font-size: .85rem; border-radius: 5px; }
  .hero .cta-button.secondary { padding: .7rem 1.15rem; }
  .hero-cta { gap: .6rem; margin-top: .6rem; }
    
    .image-placeholder {
      max-width: 260px;
      height: 260px;
    }

    .contact-info {
      align-items: flex-start;
      text-align: left;
      gap: 1.25rem;
      padding: 1rem;
      max-width: 92%;
      margin: 0 auto;
    }
    
    .contact-email,
    .contact-location {
      font-size: clamp(1rem, 4.2vw, 1.35rem);
      gap: 0.6rem;
      line-height: 1.25;
      justify-content: flex-start;
    }
    
    .contact-email {
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    
    .contact-email i,
    .contact-location i {
      font-size: clamp(1.1rem, 6vw, 1.6rem);
    }
    
    .hero-cta {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .65rem;
    }
    
    .cta-button.secondary {
      margin-left: 0;
    }
    
    .stats {
      gap: 2rem;
    }
    
    .portfolio-grid {
      grid-template-columns: 1fr;
      max-width: 100%;
    }

  .testimonial-card { padding-top: 2.8rem; }
  .testimonial-card::before { opacity:.12; font-size:4.2rem; top:12px; left:18px; }
    
    .service-tags {
      gap: 0.75rem;
    }
    
    .service-tag {
      font-size: 0.8rem;
      padding: 0.4rem 1.2rem;
    }

    .hero {
      padding-bottom: 2rem; /* reduce bottom gap before next section */
    }

    /* reduce top padding for sections after hero */
    main > section:not(.hero) {
      padding-top: 1.5rem; /* was 4rem via generic section rule */
    }
}

/* Mobile: place rocket above nav links at top */
@media (max-width: 768px) {
  .nav-overlay {
    /* allow scrolling if needed and proper internal padding */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 4.5rem 1.25rem 2rem;
    overflow-y: auto;
  }
  .nav-rocket {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    order: 0;
    width: 70%;
    max-width: 340px;
    margin: 0 auto 1.25rem;
    z-index: 1; /* sits visually above background, below focus ring */
  }
  .fullscreen-nav {
    order: 1;
    width: 100%;
  }
  .fullscreen-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .fullscreen-nav ul li {
    margin: 0.6rem 0;
    font-size: clamp(1.75rem, 6vw, 2.4rem);
  }
}

/* Hide rocket on very small screens (kept; conflicting size tweak removed) */
@media (max-width: 420px) {
  .nav-rocket {
    display: none !important;
  }
  .testimonial-card::before { display:none; }
}

/* Desktop refinements */
@media (min-width: 1024px) {
  .nav-overlay {
    justify-content: flex-start;
  }
  .fullscreen-nav {
    position: relative;
    z-index: 2;
  }
  .nav-rocket {
    right: 6vw;
    bottom: 10vh;
    width: clamp(860px, 60vw, 1400px);
  }
}

/* Desktop: enlarge hero + services animations */
@media (min-width: 1024px) {
  .hero-illustration {
    /* bigger than base (was clamp(640px,60vw,1100px)) */
    max-width: clamp(760px, 62vw, 1280px);
  }
  .hero-lottie.hero-lottie-large {
    width: 100%;
    max-width: 1280px; /* was 1100px via hero-illustration limit */
  }
  .services-lottie {
    width: 100%;
    max-width: clamp(600px, 54vw, 1100px); /* new explicit sizing */
    display: block;
    margin: 0 auto;
  }
}

/* Desktop nav layout correction: links left, rocket right */
@media (min-width: 1024px) {
  .nav-overlay {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 0 10%; /* left inset for links */
  }
  .fullscreen-nav {
    width: min(520px, 42%);
    max-width: 520px;
    margin: 0;
    text-align: left;
    z-index: 2;
  }
  .fullscreen-nav ul {
    text-align: left;
  }
  .fullscreen-nav ul li {
    margin: 1.1rem 0;
  }
  .nav-rocket {
    position: absolute;
    top: 50%;
    bottom: auto !important;
    transform: translateY(-50%);
    right: 4vw;
    width: clamp(700px, 55vw, 1400px); /* balanced size at desktop */
    z-index: 1;
  }
}

/* Ultra-wide refinement keeps proportion */
@media (min-width: 1600px) {
  .nav-rocket {
    width: clamp(900px, 50vw, 1600px);
    right: 5vw;
  }
}


/* Scroll progress bar */
.scroll-progress { position:fixed; top:0; left:0; height:3px; width:0%; background:linear-gradient(90deg,var(--section-label),var(--accent)); z-index:1200; transition:width .15s ease; }


