/* ============================================
   WEBME SOLUTIONS — AVISTA-STYLE PREMIUM THEME
   Complete CSS with all animations and effects
   ============================================ */

/* ——— RESET ——— */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; overflow-x: hidden; background: #000; color: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ——— CSS VARIABLES ——— */
:root {
  --orange: #f4511e;
  --orange-light: #ff6b35;
  --dark: #0a0a0a;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --gray: #f0f0f0;
  --gray-text: #888;
  --white: #ffffff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ——— REVEAL ANIMATIONS ——— */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ——— HEADER ——— */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; transition: all 0.4s ease;
}
.header.scrolled { background: rgba(10,10,10,0.9); backdrop-filter: blur(20px); }
.logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.logo-star { width: 20px; height: 20px; color: var(--orange); }
.btn-pill {
  padding: 10px 24px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: #fff; font-size: 14px; font-weight: 500;
  transition: all 0.3s ease;
}
.btn-pill:hover { background: var(--orange); border-color: var(--orange); }
.btn-pill-dark {
  padding: 14px 32px; border-radius: 100px; background: #000; color: #fff;
  font-size: 14px; font-weight: 600; border: none; display: inline-flex;
  align-items: center; gap: 8px; transition: all 0.3s ease;
}
.btn-pill-dark:hover { background: var(--orange); }

/* ——— NAV LINKS (desktop only) ——— */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.3s;
  text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a:hover { color: #fff; }

/* ——— MOBILE MENU BUTTON ——— */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.mobile-menu-btn span { width: 24px; height: 2px; background: #fff; transition: all 0.3s; }

/* ——— LEFT SIDEBAR SOCIALS ——— */
.left-sidebar {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center; z-index: 100;
  display: flex; align-items: center; gap: 24px;
}
.left-sidebar a { font-size: 11px; text-transform: lowercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); transition: color 0.3s; white-space: nowrap; }
.left-sidebar a:hover { color: var(--orange); }

/* ——— RIGHT SIDEBAR ——— */
.right-sidebar {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
  border-radius: 100px; padding: 12px 8px; gap: 16px;
}
.right-sidebar a {
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: 50%; color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}
.right-sidebar a:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ——— ROTATING BADGE ——— */
.rotating-badge {
  position: absolute; left: 10%; top: 15%; width: 120px; height: 120px; z-index: 10;
}
.badge-text {
  animation: rotateBadge 12s linear infinite; width: 100%; height: 100%;
}
@keyframes rotateBadge { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.badge-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 28px; color: var(--orange);
}

/* ——— HERO SECTION ——— */
.hero {
  min-height: 100vh; position: relative; background: #000;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 40px 80px; overflow: hidden;
}
.hero-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-size: 18px; color: #fff;
}
.sparkle-icon { color: var(--orange); width: 24px; height: 24px; }
.hero-title {
  font-size: clamp(60px, 10vw, 140px); font-weight: 700;
  line-height: 1; letter-spacing: -3px; margin-bottom: 32px;
}
.hero-avatars {
  display: flex; align-items: center; gap: 12px; margin-bottom: 40px;
}
.avatars-row { display: flex; }
.avatars-row img {
  width: 48px; height: 48px; border-radius: 50%; border: 3px solid #000;
  margin-left: -12px; object-fit: cover;
}
.avatars-row img:first-child { margin-left: 0; }
.avatar-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; transition: all 0.3s;
}
.avatar-arrow:hover { background: var(--orange); border-color: var(--orange); }

/* Giant text */
.giant-text-wrap {
  position: relative; margin-top: auto; padding-bottom: 40px;
}
.giant-text {
  font-size: clamp(100px, 22vw, 380px); font-weight: 900;
  line-height: 0.8; letter-spacing: -8px; position: relative; z-index: 2;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.1) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-mesh {
  position: absolute; bottom: 10%; left: 0; right: 0; z-index: 1;
  width: 100%; opacity: 0.9;
}

/* ——— IMAGE GALLERY ——— */
.gallery-section { background: #000; padding: 0 40px 60px; }
.gallery-slider { display: flex; gap: 20px; overflow: hidden; }
.gallery-slide { flex: 1; min-width: 0; position: relative; border-radius: 16px; overflow: hidden; }
.gallery-slide img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-slide:hover img { transform: scale(1.05); }
.gallery-arrow {
  position: absolute; bottom: 20px; right: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: none; display: flex;
  align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; z-index: 5;
}
.gallery-arrow:hover { background: var(--orange); color: #fff; }

/* ——— WAVE DIVIDER ——— */
.wave-divider { width: 100%; line-height: 0; margin: -2px 0; }
.wave-divider img { width: 100%; height: auto; }

/* ——— MARQUEE ——— */
.marquee-section { background: #000; padding: 40px 0; overflow: hidden; }
.marquee-track {
  display: flex; animation: marquee 30s linear infinite; width: max-content;
}
.marquee-item {
  font-size: clamp(40px, 6vw, 80px); font-weight: 600;
  white-space: nowrap; padding: 0 40px; color: #fff;
  display: flex; align-items: center; gap: 40px;
}
.star-sep { color: var(--orange); font-size: 0.6em; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ——— TAG PILL ——— */
.tag-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 100px;
  background: #fff; color: #000; font-size: 14px; font-weight: 500;
  margin-bottom: 24px;
}
.tag-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.tag-pill.dark { background: rgba(255,255,255,0.1); color: #fff; backdrop-filter: blur(10px); }

/* ——— WHO WE ARE ——— */
.who-section { background: #f0f0f0; color: #000; padding: 100px 40px; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1400px; margin: 0 auto; align-items: center; }
.who-title { font-size: clamp(36px, 5vw, 64px); font-weight: 600; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; }
.who-title .light { color: #999; font-weight: 400; }
.who-desc { font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 32px; }
.stars-row { display: flex; gap: 4px; margin-bottom: 8px; }
.star-icon { color: var(--orange); width: 20px; height: 20px; }
.happy-clients { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.who-image { border-radius: 20px; overflow: hidden; position: relative; }
.who-image img { width: 100%; height: 450px; object-fit: cover; }
.experience-overlay {
  position: absolute; bottom: 30px; left: 30px;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  padding: 20px 30px; border-radius: 16px;
}
.experience-overlay h3 { font-size: 28px; color: #fff; font-weight: 700; }

/* ——— GROWTH SECTION ——— */
.growth-section { background: #f0f0f0; padding: 0 40px 80px; }
.growth-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; max-width: 1400px; margin: 0 auto; }
.growth-card {
  background: #1a1a1a; border-radius: 24px; padding: 40px;
  color: #fff; position: relative; overflow: hidden;
}
.growth-card h3 { font-size: 28px; margin-bottom: 8px; }
.growth-card p { color: #888; font-size: 14px; margin-bottom: 20px; }
.graph-img { width: 100%; margin-top: 20px; }
.portfolio-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; }
.portfolio-strip-item {
  min-width: 200px; border-radius: 16px; overflow: hidden;
  background: #fff; flex-shrink: 0;
}
.portfolio-strip-item img { width: 100%; height: 140px; object-fit: cover; }
.strip-info { padding: 12px; }
.strip-info h4 { font-size: 14px; color: #000; }
.strip-info p { font-size: 11px; color: #888; }
.years-exp { margin-top: 30px; }
.years-exp h3 { font-size: 32px; color: #000; }
.years-exp p { color: #666; font-size: 14px; margin-top: 8px; }

/* ——— SERVICES SECTION ——— */
.services-section { padding: 20px 40px 80px; }
.services-container {
  background: #111; border-radius: 32px; overflow: hidden;
  max-width: 1400px; margin: 0 auto;
}
.services-grid { display: grid; grid-template-columns: 1fr 1.5fr; }
.services-left { padding: 60px; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #888; margin-bottom: 40px; }
.service-list { list-style: none; }
.service-list-item {
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; transition: all 0.3s; font-size: 15px;
  color: #666; display: flex; align-items: center; gap: 12px;
}
.service-list-item::before { content: ''; width: 0; height: 2px; background: var(--orange); transition: width 0.3s; }
.service-list-item:hover, .service-list-item.active { color: #fff; }
.service-list-item.active::before { width: 16px; }
.service-list-item .num { font-size: 11px; color: #444; margin-right: 8px; }
.service-number { font-size: 80px; font-weight: 700; color: rgba(255,255,255,0.05); line-height: 1; margin-bottom: 40px; }
.service-title-display { font-size: 42px; font-weight: 600; margin-bottom: 16px; }
.service-desc-display { color: #888; font-size: 15px; line-height: 1.7; }
.services-right { position: relative; }
.services-right img { width: 100%; height: 100%; object-fit: cover; }

/* ——— PORTFOLIO SECTION ——— */
.portfolio-section { background: #f0f0f0; padding: 100px 40px; color: #000; }
.portfolio-header { text-align: center; margin-bottom: 60px; }
.portfolio-title { font-size: clamp(36px, 5vw, 64px); font-weight: 600; line-height: 1.1; }
.portfolio-title .light { color: #999; font-weight: 400; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.portfolio-card { background: #fff; border-radius: 20px; overflow: hidden; transition: transform 0.4s var(--ease); display: block; }
.portfolio-card:hover { transform: translateY(-8px); }
.portfolio-card:nth-child(2) { margin-top: 60px; }
.portfolio-card:nth-child(3) { margin-top: -60px; }
.portfolio-card-img { position: relative; overflow: hidden; }
.portfolio-card-img img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.6s var(--ease); }
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.05); }
.portfolio-tags {
  position: absolute; top: 16px; right: 16px; display: flex; gap: 8px;
}
.portfolio-tag {
  padding: 6px 14px; border-radius: 100px; background: rgba(255,255,255,0.9);
  font-size: 12px; color: #000;
}
.portfolio-card-info { padding: 24px; }
.portfolio-card-info h3 { font-size: 20px; margin-bottom: 6px; }
.portfolio-card-info p { font-size: 14px; color: #888; }

/* ——— FAQ SECTION ——— */
.faq-section { background: #0a0a0a; padding: 100px 40px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; max-width: 1400px; margin: 0 auto; align-items: start; }
.faq-form-card {
  background: rgba(255,255,255,0.03); border-radius: 24px;
  padding: 40px; border: 1px solid rgba(255,255,255,0.06);
}
.response-time { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #888; margin-bottom: 16px; }
.response-time .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.faq-form-card h3 { font-size: 24px; margin-bottom: 24px; }
.form-field {
  width: 100%; padding: 16px 0; background: transparent;
  border: none; border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 14px; outline: none; margin-bottom: 8px;
}
.form-field::placeholder { color: #555; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin: 20px 0; font-size: 13px; color: #888; }
.support-person { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.support-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.support-person-info h4 { font-size: 14px; }
.support-person-info p { font-size: 12px; color: #888; }
.get-in-touch-btn {
  margin-left: auto; padding: 10px 20px; border-radius: 100px;
  background: rgba(255,255,255,0.1); color: #fff; border: none;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: all 0.3s;
}
.get-in-touch-btn:hover { background: var(--orange); }

/* FAQ accordion */
.faq-tabs { display: flex; gap: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-tab { padding: 12px 0; background: none; border: none; color: #555; font-size: 16px; cursor: pointer; position: relative; transition: color 0.3s; }
.faq-tab.active { color: var(--orange); }
.faq-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--orange); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; background: none; border: none; color: #fff;
  font-size: 17px; text-align: left; cursor: pointer;
}
.faq-question .num { color: #555; margin-right: 16px; font-size: 14px; }
.faq-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); color: #fff; font-size: 18px; flex-shrink: 0; transition: all 0.3s; }
.faq-item.active .faq-icon { background: var(--orange); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 24px; }
.faq-answer p { color: #888; font-size: 14px; line-height: 1.7; padding-left: 32px; }
.faq-answer a { color: var(--orange); text-decoration: underline; }

/* ——— LOGO MARQUEE ——— */
.logo-marquee-section { background: #0a0a0a; padding: 60px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05); }
.logo-marquee-track { display: flex; align-items: center; animation: logoMarquee 25s linear infinite; width: max-content; }
.logo-marquee-item { padding: 0 60px; font-size: 20px; font-weight: 700; color: rgba(255,255,255,0.3); white-space: nowrap; transition: color 0.3s; }
.logo-marquee-item:hover { color: rgba(255,255,255,0.7); }
@keyframes logoMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ——— TESTIMONIALS ——— */
.testimonials-section { background: #e8e8e8; padding: 120px 40px; color: #000; position: relative; overflow: hidden; }
.testimonials-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 700px; border-radius: 50%; background: rgba(255,255,255,0.4); z-index: 0; }
.testimonial-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial-avatars { display: flex; justify-content: center; margin-bottom: 24px; }
.testimonial-avatars img {
  width: 64px; height: 64px; border-radius: 50%; border: 4px solid #e8e8e8;
  margin-left: -16px; object-fit: cover; cursor: pointer;
  transition: all 0.3s; opacity: 0.7;
}
.testimonial-avatars img:first-child { margin-left: 0; }
.testimonial-avatars img.active { opacity: 1; transform: scale(1.15); border-color: #fff; z-index: 2; }
.testimonial-author h4 { font-size: 20px; margin-bottom: 4px; }
.testimonial-author p { color: #888; font-size: 14px; margin-bottom: 24px; }
.quote-mark { color: var(--orange); font-size: 60px; line-height: 1; font-family: Georgia, serif; margin-bottom: 16px; }
.testimonial-text { font-size: clamp(20px, 3vw, 32px); line-height: 1.4; font-weight: 500; margin-bottom: 40px; }
.testimonial-text .light { color: #999; font-weight: 400; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #000; opacity: 0.2; cursor: pointer; transition: all 0.3s; }
.dot.active { opacity: 1; background: var(--orange); }

/* ——— CONTACT CTA ——— */
.contact-cta-section {
  background: linear-gradient(135deg, #e8ddd4 0%, #d4c4b0 50%, #c4d4e0 100%);
  padding: 100px 40px; color: #000; position: relative; overflow: hidden;
}
.contact-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1400px; margin: 0 auto; align-items: center; }
.contact-cta-header { margin-bottom: 40px; }
.contact-cta-title { font-size: clamp(48px, 7vw, 80px); font-weight: 600; line-height: 1; margin-bottom: 32px; }
.social-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.social-btn {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-radius: 100px; background: #fff; color: #000; font-size: 14px;
  font-weight: 500; transition: all 0.3s;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.social-btn .icon { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.building-img { border-radius: 24px; overflow: hidden; }
.building-img img { width: 100%; height: 400px; object-fit: cover; }

/* ——— INFO CARDS ——— */
.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; max-width: 1400px; margin-left: auto; margin-right: auto; }
.info-card { background: #fff; border-radius: 20px; padding: 32px; }
.info-card-icon { width: 48px; height: 48px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; }
.info-card h4 { font-size: 18px; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: #888; line-height: 1.6; }
.info-card p a { color: #000; font-weight: 600; }

/* ——— STATS BAR ——— */
.stats-bar { background: #111; padding: 30px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05); }
.stats-track { display: flex; animation: statsScroll 20s linear infinite; width: max-content; }
.stat-item-bar { display: flex; align-items: center; gap: 12px; padding: 0 40px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-num-bar { font-size: 36px; font-weight: 700; }
.stat-label-bar { font-size: 13px; color: #888; }
@keyframes statsScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ——— FOOTER ——— */
.footer { background: #050505; padding: 80px 40px 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 40px; max-width: 1400px; margin: 0 auto; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 20px; color: #fff; }
.footer-col a { display: block; font-size: 14px; color: #888; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--orange); }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1); background: transparent;
  color: #fff; font-size: 13px; outline: none;
}
.newsletter-form button {
  padding: 12px 24px; border-radius: 100px; background: var(--orange);
  color: #fff; border: none; font-size: 13px; font-weight: 600;
  transition: all 0.3s;
}
.newsletter-form button:hover { background: #e64a19; }
.email-cta {
  display: inline-flex; padding: 20px 48px; border-radius: 100px;
  background: var(--orange); color: #fff !important; font-size: 20px;
  font-weight: 600; margin-top: 20px; transition: all 0.3s;
}
.email-cta:hover { transform: scale(1.05); box-shadow: 0 20px 60px rgba(244,81,30,0.3); }

.footer-bottom { margin-top: 60px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #555; }
.footer-logo-large { text-align: center; padding: 40px 0 20px; }
.footer-logo-large svg { max-width: 400px; height: auto; }

/* ——— BACK TO TOP ——— */
.back-to-top {
  position: fixed; bottom: 30px; right: 80px; width: 48px; height: 48px;
  border-radius: 12px; background: #fff; border: none; color: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s;
  z-index: 999; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--orange); color: #fff; }

/* ——— PORTFOLIO DETAIL PAGES ——— */
.case-hero { min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 40px 60px; background: #000; position: relative; overflow: hidden; }
.case-hero-img { position: absolute; inset: 0; opacity: 0.4; z-index: 0; }
.case-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.case-hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%); }
.case-hero-content { position: relative; z-index: 1; max-width: 900px; }
.case-tags { display: flex; gap: 10px; margin-bottom: 24px; }
.case-tags .portfolio-tag { background: rgba(255,255,255,0.15); color: #fff; font-size: 12px; padding: 6px 16px; }
.case-hero h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 700; line-height: 1.1; letter-spacing: -2px; margin-bottom: 16px; }
.case-hero p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 600px; line-height: 1.6; }

.case-section { padding: 80px 40px; max-width: 1000px; margin: 0 auto; }
.case-section h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 600; margin-bottom: 24px; letter-spacing: -1px; }
.case-section p { font-size: 16px; color: #888; line-height: 1.8; margin-bottom: 16px; }
.case-section ul { list-style: none; padding: 0; }
.case-section ul li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); color: #aaa; font-size: 15px; display: flex; align-items: flex-start; gap: 12px; }
.case-section ul li::before { content: '+'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px 0; }
.result-card { background: #111; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 32px; text-align: center; }
.result-card h3 { font-size: 42px; font-weight: 800; color: var(--orange); margin-bottom: 8px; line-height: 1; }
.result-card p { font-size: 14px; color: #888; margin: 0; }

.case-testimonial { background: #111; border-radius: 24px; padding: 48px; margin: 40px 0; position: relative; }
.case-testimonial .quote-mark { position: absolute; top: 24px; left: 32px; font-size: 80px; color: var(--orange); opacity: 0.3; font-family: Georgia, serif; line-height: 1; }
.case-testimonial blockquote { font-size: 20px; font-style: italic; line-height: 1.6; color: #ddd; margin-bottom: 24px; padding-left: 20px; }
.case-testimonial .author { display: flex; align-items: center; gap: 16px; }
.case-testimonial .author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.case-testimonial .author h4 { font-size: 16px; margin-bottom: 2px; }
.case-testimonial .author p { font-size: 13px; color: #888; margin: 0; }

.case-nav { display: flex; justify-content: space-between; align-items: center; padding: 40px; max-width: 1000px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.06); }
.case-nav a { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #888; transition: color 0.3s; }
.case-nav a:hover { color: var(--orange); }

.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tech-tag { padding: 8px 16px; border-radius: 100px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: #aaa; }

/* ——— PRIVACY & TERMS PAGES ——— */
.legal-page { padding: 120px 40px 60px; max-width: 900px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; margin-bottom: 16px; line-height: 1.1; }
.legal-page .last-updated { color: #888; font-size: 14px; margin-bottom: 40px; display: block; }
.legal-page h2 { font-size: 24px; font-weight: 600; margin: 40px 0 16px; }
.legal-page p { color: #888; font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.legal-page ul { margin-left: 24px; margin-bottom: 16px; }
.legal-page ul li { color: #888; font-size: 15px; line-height: 1.8; margin-bottom: 8px; }
.legal-page a { color: var(--orange); text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .left-sidebar, .right-sidebar { display: none; }
  .nav-links { display: none !important; }
  .mobile-menu-btn { display: flex; }
  .header { padding: 16px 20px; }
  .hero { padding: 100px 20px 60px; }
  .rotating-badge { width: 80px; height: 80px; left: 5%; }
  .hero-title { font-size: clamp(42px, 10vw, 80px); }
  .hero-image-wrap { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 40px; }
  .hero-video-btn { display: none; }
  .gallery-section { padding: 0 20px 40px; }
  .gallery-slide img { height: 250px; }
  .who-section { padding: 60px 20px; }
  .who-grid { grid-template-columns: 1fr; gap: 40px; }
  .who-content { padding-left: 0; border-left: none; }
  .growth-section { padding: 0 20px 40px; }
  .growth-grid { grid-template-columns: 1fr; }
  .services-section { padding: 20px 20px 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-left { padding: 40px 24px; }
  .services-right { min-height: 300px; }
  .portfolio-section { padding: 60px 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card:nth-child(2), .portfolio-card:nth-child(3) { margin-top: 0; }
  .faq-section { padding: 60px 20px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-section { padding: 60px 20px; }
  .testimonials-circle { width: 400px; height: 400px; }
  .contact-cta-section { padding: 60px 20px; }
  .contact-cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .info-cards { grid-template-columns: 1fr; }
  .stats-bar { padding: 20px 0; }
  .footer { padding: 60px 20px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-logo-large { padding: 30px 0 15px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 40px; }
  .back-to-top { right: 20px; bottom: 20px; }
  .giant-text { font-size: clamp(60px, 18vw, 150px); }
  .marquee-item { font-size: clamp(28px, 8vw, 50px); }
  .case-hero { padding: 100px 20px 40px; }
  .case-section { padding: 60px 20px; }
  .results-grid { grid-template-columns: 1fr; }
  .case-nav { padding: 30px 20px; flex-direction: column; gap: 16px; }
  .legal-page { padding: 100px 20px 40px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(36px, 14vw, 60px); letter-spacing: -1px; }
  .hero-label { font-size: 14px; }
  .gallery-slider { flex-direction: column; }
  .gallery-slide img { height: 220px; }
  .service-title-display { font-size: 28px; }
  .service-number { font-size: 50px; }
  .portfolio-title { font-size: clamp(28px, 8vw, 40px); }
  .portfolio-card-img img { height: 200px; }
  .contact-cta-title { font-size: clamp(36px, 10vw, 60px); }
  .social-buttons { flex-direction: column; }
  .stat-num-bar { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .email-cta { font-size: 16px; padding: 16px 32px; }
  .testimonial-text { font-size: 18px; }
  .testimonials-circle { width: 300px; height: 300px; }
  .who-title { font-size: clamp(28px, 8vw, 40px); }
}

/* ——— REDUCED MOTION ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}
