/*
Theme Name: Inside The Cam
Theme URI: https://insidethecam.com
Author: Antigravity
Author URI: https://insidethecam.com
Description: A premium cinematic design system for Inside The Cam. Features a dark/light mode, custom scroll animations, and a fully customizable Customizer integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insidethecam
Tags: dark-mode, portfolio, photography, videography, cinematic, two-columns, full-width-template, custom-colors, custom-logo, custom-menu
*/

/* --- CSS Custom Properties (Dark Mode Default) --- */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a12;
  --bg-card: #0e0e1a;
  --bg-elevated: #14142a;
  --text-primary: #eaeaf2;
  --text-secondary: #8888a0;
  --text-tertiary: #5a5a72;
  --accent: #00c6fb;
  --accent-2: #005bea;
  --accent-warm: #f97316;
  --accent-glow: rgba(0, 198, 251, 0.25);
  --accent-gradient: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
  --accent-gradient-r: linear-gradient(135deg, #005bea 0%, #00c6fb 100%);
  --accent-gradient-warm: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --glass-bg: rgba(255,255,255,0.025);
  --glass-border: rgba(255,255,255,0.06);
  --glass-hover: rgba(255,255,255,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-accent: 0 8px 25px -8px rgba(0, 198, 251, 0.4);
  --navbar-bg: rgba(5, 5, 8, 0.85);
  --overlay-gradient: linear-gradient(180deg, rgba(5,5,8,0.3) 0%, rgba(5,5,8,0.96) 100%);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.6s var(--ease);
}

/* --- Light Mode --- */
[data-theme="light"] {
  --bg-primary: #f4f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f0f1f5;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --glass-bg: rgba(0,0,0,0.02);
  --glass-border: rgba(0,0,0,0.08);
  --glass-hover: rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-accent: 0 8px 25px -8px rgba(0, 91, 234, 0.25);
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --overlay-gradient: linear-gradient(180deg, rgba(244,245,247,0.3) 0%, rgba(244,245,247,0.95) 100%);
}
[data-theme="light"] .logo-img { filter: invert(1) brightness(0.2); }
[data-theme="light"] .hero-content { text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
[data-theme="light"] .overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%) !important;
}
[data-theme="light"] .hero-title { color: #fff; }
[data-theme="light"] .hero-subtitle { color: rgba(255,255,255,0.9); }
[data-theme="light"] .hero-badge { background: rgba(0,0,0,0.35); color: #fff; border-color: rgba(255,255,255,0.2); }
[data-theme="light"] .hero-scroll { color: rgba(255,255,255,0.7); }
[data-theme="light"] .hero-scroll .scroll-line { background: rgba(255,255,255,0.4); }
[data-theme="light"] .hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.4); }
[data-theme="light"] .hero .btn-secondary:hover { background: rgba(255,255,255,0.15); }
[data-theme="light"] .navbar:not(.scrolled) { background: transparent; }
[data-theme="light"] .navbar:not(.scrolled) a { color: #fff; }
[data-theme="light"] .hero-logo { filter: none; }

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2.5rem); }
.section { padding: clamp(60px, 10vw, 120px) 0; position: relative; }

/* --- Typography --- */
.section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  width: 1.5rem; height: 2px;
  background: var(--accent-gradient);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.section-title.center { text-align: center; }
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
.section-desc.center { text-align: center; margin-inline: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateX(0); }
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px -8px rgba(0,198,251,0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-text {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition-fast);
}
.btn-text:hover { gap: 0.7rem; }
.btn-text svg { width: 16px; height: 16px; }

/* --- Special Highlight Button --- */
.btn-highlight {
  background: var(--accent-gradient-warm);
  color: #fff;
  box-shadow: 0 8px 25px -8px rgba(249, 115, 22, 0.5);
  font-size: 1rem;
  padding: 1rem 2.5rem;
}
.btn-highlight:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 45px -8px rgba(249, 115, 22, 0.6);
}
.btn-highlight-outline {
  background: transparent;
  color: var(--accent-warm);
  border: 2px solid var(--accent-warm);
  font-size: 1rem;
  padding: 1rem 2.5rem;
}
.btn-highlight-outline:hover {
  background: var(--accent-gradient-warm);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.35s var(--ease);
}
.glass-card:hover {
  border-color: rgba(0,198,251,0.15);
  box-shadow: var(--shadow-md);
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hide {
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.preloader-logo { width: 80px; animation: preloaderPulse 1.5s ease-in-out infinite; }
.preloader-bar {
  width: 120px; height: 3px;
  background: var(--glass-border);
  border-radius: 10px; overflow: hidden;
}
.preloader-bar-fill {
  width: 0; height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  animation: preloaderFill 1.8s var(--ease) forwards;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes preloaderFill {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ============ CUSTOM CURSOR ============ */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease-out;
  opacity: 0.5;
}
.cursor-ring.hovering {
  width: 52px; height: 52px;
  border-color: var(--accent-warm);
  opacity: 0.8;
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  padding: 0.7rem 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
  display: flex; justify-content: space-between; align-items: center;
}
.logo-link { display: flex; align-items: center; gap: 0.5rem; }
.logo-img { height: 44px; width: auto; transition: filter 0.4s ease; }
.navbar.scrolled .logo-img { height: 38px; }
.nav-links {
  display: flex; gap: 1.5rem; align-items: center;
}
.nav-links a:not(.btn):not(.theme-toggle) {
  font-size: 0.82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary);
  position: relative; padding-bottom: 4px;
}
.nav-links a:not(.btn):not(.theme-toggle)::after {
  content: ''; position: absolute;
  width: 0; height: 2px;
  bottom: 0; left: 0;
  background: var(--accent-gradient);
  transition: width 0.35s var(--ease);
}
.nav-links a:not(.btn):not(.theme-toggle):hover { color: var(--text-primary); }
.nav-links a:not(.btn):not(.theme-toggle):hover::after { width: 100%; }

/* Theme Toggle */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.theme-toggle:hover { background: var(--glass-hover); border-color: var(--accent); transform: rotate(30deg); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="light"] .icon-sun, [data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun, [data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; z-index: 1001;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 25s ease-out forwards;
}
.hero-bg .overlay {
  position: absolute; inset: 0;
  background: var(--overlay-gradient);
}
@keyframes heroZoom {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}
/* Animated grain texture */
.hero-bg::after {
  content: '';
  position: absolute; inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
  animation: grainShift 0.5s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5%, -5%); }
  50% { transform: translate(5%, 5%); }
  75% { transform: translate(-2%, 3%); }
}
/* Floating particles */
.hero-particles {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
.particle:nth-child(2) { left: 25%; animation-delay: 1.5s; animation-duration: 12s; }
.particle:nth-child(3) { left: 40%; animation-delay: 0.5s; animation-duration: 9s; }
.particle:nth-child(4) { left: 55%; animation-delay: 2s; animation-duration: 11s; }
.particle:nth-child(5) { left: 70%; animation-delay: 1s; animation-duration: 8s; }
.particle:nth-child(6) { left: 85%; animation-delay: 3s; animation-duration: 10s; }
.particle:nth-child(7) { left: 15%; animation-delay: 2.5s; animation-duration: 13s; }
.particle:nth-child(8) { left: 60%; animation-delay: 0.8s; animation-duration: 9.5s; }
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.8; }
  60% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1.2); }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 clamp(1rem, 5vw, 2rem);
}
.hero-logo {
  width: 90px; margin: 0 auto 1.5rem;
  animation: fadeInDown 0.8s var(--ease) 0.1s both;
  filter: drop-shadow(0 0 20px rgba(0,198,251,0.3));
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeInDown 0.8s var(--ease) 0.3s both;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Split text reveal animation */
.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.hero-title .line {
  display: block;
  animation: titleReveal 1s var(--ease-out-expo) both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) { animation-delay: 0.7s; }
@keyframes titleReveal {
  from { opacity: 0; transform: translateY(100%) rotateX(-15deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s var(--ease) 0.9s both;
}
.hero-cta {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease) 1.1s both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; color: var(--text-tertiary);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: fadeInUp 1s var(--ease) 1.5s both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: var(--glass-border);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about-image:hover img { transform: scale(1.05); }
.about-image::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  pointer-events: none;
}
/* Corner accent */
.about-image::before {
  content: '';
  position: absolute; top: -3px; left: -3px;
  width: 50px; height: 50px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-radius: 20px 0 0 0;
  z-index: 1;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stat {
  text-align: center;
  padding: 1.2rem 0.8rem;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.35s var(--ease);
}
.stat:hover { border-color: rgba(0,198,251,0.2); transform: translateY(-4px); }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.service-card {
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 40px -15px rgba(0,198,251,0.15);
  border-color: rgba(0,198,251,0.12);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(0,198,251,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: all 0.35s var(--ease);
}
.service-card:hover .service-icon { background: var(--accent-gradient); color: #fff; transform: scale(1.1); }
/* Photo thumbnail replacing icons */
.service-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: none;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.service-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.service-card:hover .service-photo { background: none; border-color: var(--accent); }
.service-card:hover .service-photo img,
.feature-card:hover .service-photo img { filter: grayscale(0%); transform: scale(1.12); }
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ============ PORTFOLIO ============ */
.portfolio-categories {
  display: flex; gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.portfolio-cat {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.portfolio-cat:hover, .portfolio-cat.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.1); filter: brightness(0.6); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 {
  color: #fff; font-size: 1.1rem; font-weight: 700;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease);
}
.portfolio-overlay .tag {
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease) 0.05s;
}
.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay .tag { transform: translateY(0); }

/* Portfolio CTA Highlight Box */
.portfolio-cta-box {
  margin-top: 3rem;
  padding: 3rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(249,115,22,0.08) 0%, rgba(234,88,12,0.04) 100%);
  border: 1px solid rgba(249,115,22,0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.portfolio-cta-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient-warm);
}
.portfolio-cta-box h3 {
  font-size: 1.6rem; margin-bottom: 0.8rem;
}
.portfolio-cta-box .warm-text {
  background: var(--accent-gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.portfolio-cta-box p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.portfolio-cta-buttons {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* ============ BLOGS ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,198,251,0.12);
}
.blog-thumb {
  position: relative; height: 220px; overflow: hidden;
}
.blog-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.blog-card:hover .blog-thumb img { transform: scale(1.1); }
.blog-category {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-body { padding: 1.5rem; }
.blog-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.blog-body h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* ============ GALLERY — Creative Masonry with Lightbox ============ */
.gallery-filters {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 3rem;
}
.gallery-masonry {
  column-count: 3; column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px -10px rgba(0,198,251,0.25);
  z-index: 2;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.7s var(--ease), filter 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(0.65) saturate(1.2); }
.gallery-caption {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 1.2rem;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption p {
  color: #fff; font-size: 0.95rem; font-weight: 700;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease);
}
.gallery-caption .gallery-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.3rem;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease) 0.05s;
}
.gallery-item:hover .gallery-caption p,
.gallery-item:hover .gallery-caption .gallery-tag { transform: translateY(0); }
/* Expand icon on hover */
.gallery-item .gallery-expand {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
}
.gallery-item:hover .gallery-expand { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox-caption {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-align: center;
}

/* ============ MARQUEE / TICKER ============ */
.marquee-section {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  opacity: 0.3;
  display: flex; align-items: center; gap: 3rem;
  flex-shrink: 0;
}
.marquee-item .divider {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  position: relative;
  transition: all 0.35s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial-card .quote-icon {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}
.testimonial-card blockquote {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { color: var(--text-tertiary); font-size: 0.8rem; }

/* ============ FEATURES / WHY US ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), 0 0 40px -15px rgba(0,198,251,0.12);
  border-color: rgba(0,198,251,0.12);
}
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(0,198,251,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: all 0.35s var(--ease);
}
.feature-card:hover .feature-icon { background: var(--accent-gradient); color: #fff; transform: scale(1.1) rotate(5deg); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem; align-items: start;
}
.contact-form-card {
  padding: 2.5rem;
  position: relative; overflow: hidden;
}
.contact-form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 20px 20px 0 0;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-tertiary); }
textarea.form-input { resize: vertical; min-height: 130px; }
.info-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.info-card {
  padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: all 0.35s var(--ease);
}
.info-card:hover { transform: translateX(8px); }
.info-card-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0,198,251,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.info-card h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.info-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo { height: 50px; margin-bottom: 1rem; }
[data-theme="light"] .footer-brand .footer-logo { filter: invert(1) brightness(0.2); }
.footer-brand p {
  color: var(--text-secondary);
  max-width: 280px;
  font-size: 0.9rem;
}
.footer-social {
  display: flex; gap: 0.8rem; margin-top: 1.2rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all 0.35s var(--ease);
}
.footer-social a:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px);
}
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* ============ PAGE HEADER (inner pages) ============ */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-bg { position: absolute; inset: 0; z-index: 0; }
.page-header-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.35;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.orb-a { width: 500px; height: 500px; background: var(--accent); top: -200px; right: -150px; }
.orb-b { width: 350px; height: 350px; background: var(--accent-2); bottom: -100px; left: -100px; animation-delay: -4s; }
@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-30px) scale(1.1); }
  100% { transform: translate(-15px,15px) scale(0.95); }
}
.page-header .container { position: relative; z-index: 1; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   CINEMATIC REVEAL SYSTEM — Coordinated Scroll Animations
   Design: Elements enter as if a camera is revealing a scene.
   Paired elements complement each other (left+right = split reveal).
   Staggered children cascade like a dolly shot panning across.
   No blur. No chaos. Purposeful cinematic motion.
   ============================================================ */

/* --- Smooth cinematic easing curves --- */
:root {
  --ease-cine: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-cine-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cine-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* Base: all revealable elements start invisible */
.reveal, .reveal-left, .reveal-right, .reveal-scale,
.reveal-roll, .reveal-flip, .reveal-spiral, .reveal-whip,
.reveal-rocket, .reveal-swing, .reveal-bounce-in {
  opacity: 0;
  will-change: transform, opacity;
}

/* --- 1. CINEMATIC RISE (default — elegant lift + subtle scale) --- */
.reveal {
  transform: translateY(60px) scale(0.97);
  transition: opacity 0.9s var(--ease-cine),
              transform 1.1s var(--ease-cine-out);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- 2. CURTAIN LEFT (wipe from left — like a camera pan) --- */
.reveal-left {
  transform: translateX(-80px);
  transition: opacity 0.8s var(--ease-cine),
              transform 1s var(--ease-cine-out);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* --- 3. CURTAIN RIGHT (wipe from right — pairs with left) --- */
.reveal-right {
  transform: translateX(80px);
  transition: opacity 0.8s var(--ease-cine),
              transform 1s var(--ease-cine-out);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* --- 4. RACK FOCUS (perspective tilt — like adjusting camera angle) --- */
.reveal-scale {
  transform: perspective(1200px) rotateX(-8deg) translateY(40px);
  transform-origin: bottom center;
  transition: opacity 0.7s var(--ease-cine),
              transform 1.1s var(--ease-cine-out);
}
.reveal-scale.active {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0);
}

/* --- 5. DOLLY SLIDE (smooth slide + subtle rotation — tracking shot) --- */
@keyframes dollySlideLeft {
  0%   { opacity: 0; transform: translateX(-120px) rotate(-3deg); }
  70%  { opacity: 1; transform: translateX(8px) rotate(0.3deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg); }
}
.reveal-roll {
  transform: translateX(-120px) rotate(-3deg);
}
.reveal-roll.active {
  animation: dollySlideLeft 1.1s var(--ease-cine-out) forwards;
}

/* --- 6. CARD TURN (subtle 3D turn — like flipping a photo print) --- */
@keyframes cardTurn {
  0%   { opacity: 0; transform: perspective(800px) rotateY(-25deg) translateX(-30px); }
  60%  { opacity: 1; transform: perspective(800px) rotateY(3deg) translateX(5px); }
  100% { opacity: 1; transform: perspective(800px) rotateY(0deg) translateX(0); }
}
.reveal-flip {
  transform: perspective(800px) rotateY(-25deg) translateX(-30px);
}
.reveal-flip.active {
  animation: cardTurn 1s var(--ease-cine-out) forwards;
}

/* --- 7. SPIRAL RISE (gentle rotation + lift — like a leaf floating up) --- */
@keyframes spiralRise {
  0%   { opacity: 0; transform: translateY(80px) rotate(-8deg) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-5px) rotate(1deg) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}
.reveal-spiral {
  transform: translateY(80px) rotate(-8deg) scale(0.92);
}
.reveal-spiral.active {
  animation: spiralRise 1.1s var(--ease-cine-out) forwards;
}

/* --- 8. ELASTIC SLIDE (slide + spring settle — rubber band feel) --- */
@keyframes elasticSlide {
  0%   { opacity: 0; transform: translateX(-100px) scaleX(1.08); }
  50%  { opacity: 1; transform: translateX(12px) scaleX(0.98); }
  75%  { transform: translateX(-4px) scaleX(1.01); }
  100% { opacity: 1; transform: translateX(0) scaleX(1); }
}
.reveal-whip {
  transform: translateX(-100px) scaleX(1.08);
}
.reveal-whip.active {
  animation: elasticSlide 1s var(--ease-cine-spring) forwards;
}

/* --- 9. CINEMATIC LIFT (rise from below + grow — like a title card) --- */
@keyframes cinematicLift {
  0%   { opacity: 0; transform: translateY(100px) scale(0.9); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.reveal-rocket {
  transform: translateY(100px) scale(0.9);
}
.reveal-rocket.active {
  animation: cinematicLift 1.1s var(--ease-cine-out) forwards;
}

/* --- 10. PENDULUM SETTLE (swing from side — like hanging photo) --- */
@keyframes pendulumSettle {
  0%   { opacity: 0; transform-origin: top center; transform: rotate(-12deg) translateY(-20px); }
  50%  { opacity: 1; transform: rotate(4deg) translateY(3px); }
  75%  { transform: rotate(-2deg) translateY(-1px); }
  100% { opacity: 1; transform: rotate(0deg) translateY(0); }
}
.reveal-swing {
  transform-origin: top center;
  transform: rotate(-12deg) translateY(-20px);
}
.reveal-swing.active {
  animation: pendulumSettle 1.2s var(--ease-cine-out) forwards;
}

/* --- 11. DROP SETTLE (drop from above + squash-settle) --- */
@keyframes dropSettle {
  0%   { opacity: 0; transform: translateY(-80px) scaleY(1.05); }
  50%  { opacity: 1; transform: translateY(6px) scaleY(0.97); }
  75%  { transform: translateY(-3px) scaleY(1.01); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
.reveal-bounce-in {
  transform: translateY(-80px) scaleY(1.05);
}
.reveal-bounce-in.active {
  animation: dropSettle 1s var(--ease-cine-spring) forwards;
}

/* --- Cascading stagger (cinematic dolly-pan timing) --- */
.stagger-children .reveal:nth-child(1),
.stagger-children [class*="reveal-"]:nth-child(1) { transition-delay: 0s; animation-delay: 0s; }
.stagger-children .reveal:nth-child(2),
.stagger-children [class*="reveal-"]:nth-child(2) { transition-delay: 0.12s; animation-delay: 0.12s; }
.stagger-children .reveal:nth-child(3),
.stagger-children [class*="reveal-"]:nth-child(3) { transition-delay: 0.24s; animation-delay: 0.24s; }
.stagger-children .reveal:nth-child(4),
.stagger-children [class*="reveal-"]:nth-child(4) { transition-delay: 0.36s; animation-delay: 0.36s; }
.stagger-children .reveal:nth-child(5),
.stagger-children [class*="reveal-"]:nth-child(5) { transition-delay: 0.48s; animation-delay: 0.48s; }
.stagger-children .reveal:nth-child(6),
.stagger-children [class*="reveal-"]:nth-child(6) { transition-delay: 0.6s; animation-delay: 0.6s; }
.stagger-children .reveal:nth-child(7),
.stagger-children [class*="reveal-"]:nth-child(7) { transition-delay: 0.72s; animation-delay: 0.72s; }
.stagger-children .reveal:nth-child(8),
.stagger-children [class*="reveal-"]:nth-child(8) { transition-delay: 0.84s; animation-delay: 0.84s; }
.stagger-children .reveal:nth-child(9),
.stagger-children [class*="reveal-"]:nth-child(9) { transition-delay: 0.96s; animation-delay: 0.96s; }
.stagger-children .reveal:nth-child(10),
.stagger-children [class*="reveal-"]:nth-child(10) { transition-delay: 1.08s; animation-delay: 1.08s; }
.stagger-children .reveal:nth-child(11),
.stagger-children [class*="reveal-"]:nth-child(11) { transition-delay: 1.2s; animation-delay: 1.2s; }
.stagger-children .reveal:nth-child(12),
.stagger-children [class*="reveal-"]:nth-child(12) { transition-delay: 1.32s; animation-delay: 1.32s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 320px; height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
  }
  .nav-links.active { right: 0; }
  .hamburger { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .gallery-masonry { column-count: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-logo { width: 70px; }
  .marquee-item { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .gallery-masonry { column-count: 1; }
  .about-stats { grid-template-columns: 1fr; }
  .portfolio-cta-box { padding: 2rem 1.2rem; }
  .portfolio-cta-box h3 { font-size: 1.2rem; }
  .btn-highlight, .btn-highlight-outline { font-size: 0.85rem; padding: 0.8rem 1.5rem; width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.65rem; padding: 0.3rem 0.8rem; }
  .section-title { font-size: 1.6rem; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============ BLOG ARTICLE PAGE (Single Post) ============ */
.blog-article-header {
  padding: 160px 0 60px;
  position: relative; overflow: hidden;
}
.blog-article-header .page-header-bg { position: absolute; inset: 0; z-index: 0; }
.blog-article-header .container { position: relative; z-index: 1; }
.blog-article-meta {
  display: flex; gap: 1rem; align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.blog-article-meta .blog-category {
  position: static;
  display: inline-block;
}
.blog-article-meta .blog-date { margin: 0; }
.blog-article-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 20px;
  margin-top: 2rem;
}
.blog-article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 0;
}
.blog-article-body h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 1rem;
}
.blog-article-body h2::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
}
.blog-article-body h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.8rem;
  color: var(--text-primary);
}
.blog-article-body p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.blog-article-body ul, .blog-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.blog-article-body li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.blog-article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--glass-bg);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.blog-article-body strong { color: var(--text-primary); }
.blog-article-body a { color: var(--accent); }
.blog-article-body a:hover { text-decoration: underline; }

/* Author box */
.blog-author-box {
  display: flex; gap: 1.2rem; align-items: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-top: 3rem;
}
.blog-author-avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.2rem;
}
.blog-author-name { font-weight: 700; font-size: 1rem; }
.blog-author-bio { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.2rem; }

/* Related / nav */
.blog-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.blog-nav a {
  padding: 0.8rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.blog-nav a:hover { border-color: var(--accent); background: var(--glass-hover); }

/* Mobile article */
@media (max-width: 768px) {
  .blog-article-body { padding: 2rem 0; }
  .blog-article-body h2 { font-size: 1.3rem; }
  .blog-article-body p { font-size: 0.95rem; }
  .blog-article-hero { max-height: 280px; border-radius: 14px; }
  .blog-author-box { flex-direction: column; text-align: center; }
  .blog-nav { flex-direction: column; }
  .blog-nav a { text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 1.5rem; }
  .portfolio-cta-box { padding: 2rem 1.5rem; }
  .portfolio-cta-buttons { flex-direction: column; }
  .btn-highlight, .btn-highlight-outline { width: 100%; justify-content: center; }
  .marquee-section { padding: 1rem 0; }
}

/* ============ READING PROGRESS BAR ============ */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 10000;
  width: 0%;
  height: 3px;
  background: var(--accent-gradient);
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ============ TABLE OF CONTENTS ============ */
.blog-toc {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.blog-toc::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}
.blog-toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
}
.blog-toc-title svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.blog-toc.collapsed .blog-toc-title svg { transform: rotate(-90deg); }
.blog-toc-list {
  list-style: none; padding: 0; margin: 0;
  max-height: 500px; overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease;
}
.blog-toc.collapsed .blog-toc-list { max-height: 0; opacity: 0; }
.blog-toc-list li { margin-bottom: 0.3rem; }
.blog-toc-list a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.blog-toc-list a::before {
  content: '';
  width: 6px; height: 6px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--glass-border);
  transition: all 0.2s ease;
}
.blog-toc-list a:hover, .blog-toc-list a.active {
  color: var(--accent);
  background: var(--glass-hover);
}
.blog-toc-list a:hover::before, .blog-toc-list a.active::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============ SOCIAL SHARE ============ */
.blog-share {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 2rem 0;
  padding: 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}
.blog-share-label {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.blog-share-buttons { display: flex; gap: 0.5rem; }
.share-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0;
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { transform: translateY(-3px); }
.share-btn.twitter:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-btn.facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-btn.whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn.copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.share-btn .copied-tooltip {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity 0.3s;
}
.share-btn.show-copied .copied-tooltip { opacity: 1; }

/* ============ NEWSLETTER CTA ============ */
.newsletter-cta {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  position: relative; overflow: hidden;
  margin: 4rem 0;
}
.newsletter-cta::before {
  content: '';
  position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--accent-gradient);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.1;
}
.newsletter-cta h3 {
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.newsletter-cta p {
  color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem;
}
.newsletter-form {
  display: flex; gap: 0.8rem;
  max-width: 460px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-tertiary); }
.newsletter-form button {
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #fff; border: none;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  white-space: nowrap;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
@media(max-width:480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-cta { padding: 2rem 1.5rem; }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ============ RELATED POSTS ============ */
.related-posts {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}
.related-posts h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.related-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,198,251,0.15);
  box-shadow: var(--shadow-md);
}
.related-card img {
  width: 100%; height: 130px; object-fit: cover;
}
.related-card .related-body {
  padding: 1rem;
}
.related-card .related-cat {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.related-card h4 {
  font-size: 0.85rem; font-weight: 600;
  line-height: 1.3;
}
@media(max-width:768px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ============ BLOG CATEGORY FILTER ============ */
.blog-categories {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.blog-cat-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-cat-btn:hover, .blog-cat-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}
.blog-card[data-category] { transition: all 0.4s var(--ease); }
.blog-card.filtered-out { display: none; }

/* ============ LAZY IMAGES ============ */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded, img.loaded {
  opacity: 1;
}

/* ============ CLICKABLE BLOG CARDS ============ */
.blog-card { cursor: pointer; }
.blog-card:hover { transform: translateY(-8px); }

/* ============ FLOATING THEME TOGGLE (Mobile) ============ */
.floating-theme-toggle {
  display: none;
  position: fixed; bottom: 2rem; left: 2rem; z-index: 900;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}
.floating-theme-toggle:hover {
  background: var(--accent-gradient); color: #fff; border-color: transparent;
}
.floating-theme-toggle svg { width: 20px; height: 20px; }
@media(max-width:768px) {
  .floating-theme-toggle { display: flex; }
}

/* ============ MOBILE MENU OVERLAY ============ */
.menu-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 98;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-overlay.active { display: block; opacity: 1; }

/* ============ HOMEPAGE GALLERY GRID (ORIGINAL LAYOUT) ============ */
/*
 * Image aspect ratios (actual):
 * hg-a  Cycling+Paraglider: 1615×2560  (portrait ~1:1.6)
 * hg-b  Jama Masjid:         720×527   (landscape ~1.37:1)
 * hg-c  Paraglider Bir:     1080×565   (landscape ~1.9:1)
 * hg-d  Wildlife/Cat:       1152×1728  (portrait ~1:1.5)
 * hg-f  Birds:              2085×1298  (landscape ~1.6:1)
 * hg-g  Snowy Peaks:        2560×1707  (landscape ~1.5:1)
 *
 * Grid uses a fine 6-row system to approximate natural proportions.
 */
.homepage-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-rows: 160px 160px 30px 130px 160px 160px;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
/* hg-a (Cycling): tall portrait — spans rows 1-4 */
.hg-a { grid-column: 1; grid-row: 1 / 5; }
/* hg-b (Jama Masjid): landscape — spans rows 1-2 */
.hg-b { grid-column: 2; grid-row: 1 / 3; }
/* hg-c (Paraglider Bir): wide landscape — rows 1-2 */
.hg-c { grid-column: 3; grid-row: 1 / 3; }
/* hg-e (Tagline center): rows 3-4 */
.hg-e { grid-column: 2; grid-row: 3 / 5; }
/* hg-d (Wildlife Cat): tall portrait — spans rows 5-6 + beyond but capped */
.hg-d { grid-column: 1; grid-row: 5 / 7; }
/* hg-f (Birds): landscape — rows 5-6 */
.hg-f { grid-column: 2; grid-row: 5 / 7; }
/* hg-g (Snowy Peaks): landscape — rows 3-6 on col 3, fills bottom-right */
.hg-g { grid-column: 3; grid-row: 3 / 7; }

.hg-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  will-change: transform;
}
.hg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) brightness(0.7);
  transition: transform 0.7s cubic-bezier(.4,0,.2,1), filter 0.8s cubic-bezier(.25,.46,.45,.94);
}
/* Let portrait images show face/subject properly */
.hg-a img { object-position: center 60%; }
.hg-d img { object-position: center 40%; }

/* ---- CONTINUOUS FLOATING / BREATHING ANIMATIONS ---- */
@keyframes hg-float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-6px) rotate(0.3deg); }
  50%      { transform: translateY(2px) rotate(-0.2deg); }
  75%      { transform: translateY(-4px) rotate(0.15deg); }
}
@keyframes hg-float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%      { transform: translateY(5px) rotate(-0.4deg); }
  60%      { transform: translateY(-7px) rotate(0.3deg); }
}
@keyframes hg-float-3 {
  0%, 100% { transform: translateX(0) translateY(0); }
  20%      { transform: translateX(3px) translateY(-5px); }
  50%      { transform: translateX(-2px) translateY(4px); }
  80%      { transform: translateX(4px) translateY(-3px); }
}
@keyframes hg-float-4 {
  0%, 100% { transform: translateY(0) scale(1); }
  40%      { transform: translateY(-8px) scale(1.005); }
  70%      { transform: translateY(3px) scale(0.998); }
}

/* Each gallery item gets a unique floating rhythm */
.hg-item.hg-visible.hg-a { animation: hg-float-1 6s ease-in-out infinite; }
.hg-item.hg-visible.hg-b { animation: hg-float-2 7s ease-in-out 0.5s infinite; }
.hg-item.hg-visible.hg-c { animation: hg-float-3 8s ease-in-out 1s infinite; }
.hg-item.hg-visible.hg-d { animation: hg-float-4 7.5s ease-in-out 0.3s infinite; }
.hg-item.hg-visible.hg-f { animation: hg-float-1 6.5s ease-in-out 0.8s infinite; }
.hg-item.hg-visible.hg-g { animation: hg-float-2 8.5s ease-in-out 1.2s infinite; }

/* Pause floating on hover for crisp interaction */
.hg-item:hover { animation-play-state: paused; }

.hg-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.06);
}
.hg-item.hg-tapped img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.03);
}
.hg-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hg-item:hover::after { opacity: 1; }
.hg-item.hg-tapped::after { opacity: 1; }

/* ---- Subtle border shimmer on gallery items ---- */
@keyframes hg-border-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 198, 251, 0); }
  50%      { box-shadow: 0 0 12px 1px rgba(0, 198, 251, 0.12); }
}
.hg-item.hg-visible { animation-name: hg-float-1, hg-border-glow; animation-duration: 6s, 4s; animation-timing-function: ease-in-out, ease-in-out; animation-iteration-count: infinite, infinite; }
.hg-item.hg-visible.hg-a { animation-name: hg-float-1, hg-border-glow; animation-duration: 6s, 5s; }
.hg-item.hg-visible.hg-b { animation-name: hg-float-2, hg-border-glow; animation-duration: 7s, 6s; }
.hg-item.hg-visible.hg-c { animation-name: hg-float-3, hg-border-glow; animation-duration: 8s, 4.5s; }
.hg-item.hg-visible.hg-d { animation-name: hg-float-4, hg-border-glow; animation-duration: 7.5s, 5.5s; }
.hg-item.hg-visible.hg-f { animation-name: hg-float-1, hg-border-glow; animation-duration: 6.5s, 4s; }
.hg-item.hg-visible.hg-g { animation-name: hg-float-2, hg-border-glow; animation-duration: 8.5s, 6.5s; }

/* Center tagline cell */
.hg-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.hg-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--text-primary);
  animation: tagline-pulse 3s ease-in-out infinite;
}
@keyframes tagline-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 transparent; }
  50%      { opacity: 0.85; text-shadow: 0 0 20px rgba(0, 198, 251, 0.3); }
}
.hg-show-more {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  padding: 0.55rem 1.6rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: show-more-glow 4s ease-in-out infinite;
}
@keyframes show-more-glow {
  0%, 100% { box-shadow: 0 0 0 transparent; }
  50%      { box-shadow: 0 0 15px rgba(0, 198, 251, 0.15); }
}
.hg-show-more:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 198, 251, 0.08);
  animation: none;
}

/* ---- CINEMATIC GALLERY ENTRANCE — Coordinated Edge Reveals ----
   Each image enters from its natural grid edge:
   Left col → slides from left    Top row → descends
   Right col → slides from right  Bottom row → rises
   Center → fades + scales        Creates a satisfying "converge" pattern
   ---- */
.hg-item, .hg-center {
  opacity: 0;
  will-change: transform, opacity;
}

/* Smooth directional entrances */
@keyframes hg-from-left {
  0%   { opacity: 0; transform: translateX(-80px) scale(0.95); }
  70%  { opacity: 1; transform: translateX(6px) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes hg-from-right {
  0%   { opacity: 0; transform: translateX(80px) scale(0.95); }
  70%  { opacity: 1; transform: translateX(-6px) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes hg-from-top {
  0%   { opacity: 0; transform: translateY(-60px) scale(0.95); }
  70%  { opacity: 1; transform: translateY(5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hg-from-bottom {
  0%   { opacity: 0; transform: translateY(60px) scale(0.95); }
  70%  { opacity: 1; transform: translateY(-5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hg-center-bloom {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* Starting positions */
[data-anim="from-left"]   { transform: translateX(-80px) scale(0.95); }
[data-anim="from-right"]  { transform: translateX(80px) scale(0.95); }
[data-anim="from-top"]    { transform: translateY(-60px) scale(0.95); }
[data-anim="from-bottom"] { transform: translateY(60px) scale(0.95); }
[data-anim="from-center"] { transform: scale(0.8); }

/* Coordinated entrances — each from its natural edge */
.hg-item.hg-visible[data-anim="from-left"]   { animation: hg-from-left 1s var(--ease-cine-out) forwards; }
.hg-item.hg-visible[data-anim="from-top"]    { animation: hg-from-top 1s var(--ease-cine-out) 0.1s forwards; }
.hg-item.hg-visible[data-anim="from-right"]  { animation: hg-from-right 1s var(--ease-cine-out) 0.2s forwards; }
.hg-item.hg-visible[data-anim="from-bottom"] { animation: hg-from-bottom 1s var(--ease-cine-out) 0.15s forwards; }
.hg-center.hg-visible[data-anim="from-center"] { animation: hg-center-bloom 0.9s var(--ease-cine-out) 0.3s forwards; }

/* Specific items: stagger so they feel like a coordinated reveal */
.hg-item.hg-visible.hg-b { animation: hg-from-top 1s var(--ease-cine-out) 0.15s forwards; }
.hg-item.hg-visible.hg-c { animation: hg-from-right 1s var(--ease-cine-out) 0.25s forwards; }
.hg-item.hg-visible.hg-d { animation: hg-from-left 1s var(--ease-cine-out) 0.35s forwards; }
.hg-item.hg-visible.hg-f { animation: hg-from-bottom 1s var(--ease-cine-out) 0.4s forwards; }
.hg-item.hg-visible.hg-g { animation: hg-from-right 1s var(--ease-cine-out) 0.3s forwards; }

/* Responsive: Tablet */
@media(max-width:768px) {
  .homepage-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 200px 70px 240px 200px;
    gap: 10px;
    max-width: 100%;
    padding: 0 10px;
  }
  /* Portrait: cycling spans left col tall */
  .hg-a { grid-column: 1; grid-row: 1 / 3; }
  /* Landscape: mosque top-right */
  .hg-b { grid-column: 2; grid-row: 1; }
  /* Landscape: paraglider under mosque */
  .hg-c { grid-column: 2; grid-row: 2; }
  /* Tagline spans full width */
  .hg-e { grid-column: 1 / 3; grid-row: 3; }
  /* Portrait: wildlife spans left col tall */
  .hg-d { grid-column: 1; grid-row: 4 / 6; }
  /* Landscape: birds bottom-right top */
  .hg-f { grid-column: 2; grid-row: 4; }
  /* Landscape: snowy peaks bottom-right */
  .hg-g { grid-column: 2; grid-row: 5; }

  /* Slightly reduce entrance animation distance on tablet */
  [data-anim="from-left"]  { transform: translateX(-50px) rotate(-2deg); }
  [data-anim="from-right"] { transform: translateX(50px) rotate(2deg); }
  [data-anim="from-top"]   { transform: translateY(-50px) rotate(1deg); }
  [data-anim="from-bottom"]{ transform: translateY(50px) rotate(-1deg); }

  /* Tap glow effect for mobile */
  .hg-item.hg-tapped {
    box-shadow: 0 0 20px rgba(0, 198, 251, 0.25), 0 0 60px rgba(0, 198, 251, 0.08);
  }
}

/* Responsive: Mobile */
@media(max-width:480px) {
  .homepage-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 55px 220px 180px;
    gap: 6px;
    padding: 0 6px;
  }
  /* Same layout as tablet but tighter */
  .hg-a { grid-column: 1; grid-row: 1 / 3; }
  .hg-b { grid-column: 2; grid-row: 1; }
  .hg-c { grid-column: 2; grid-row: 2; }
  .hg-e { grid-column: 1 / 3; grid-row: 3; }
  .hg-d { grid-column: 1; grid-row: 4 / 6; }
  .hg-f { grid-column: 2; grid-row: 4; }
  .hg-g { grid-column: 2; grid-row: 5; }

  .hg-item { border-radius: 10px; }

  /* Tagline smaller on mobile */
  .hg-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
  }
  .hg-show-more {
    font-size: 0.7rem;
    padding: 0.45rem 1.2rem;
  }

  /* Minimal animation on small screens for performance */
  [data-anim="from-left"],
  [data-anim="from-right"],
  [data-anim="from-top"],
  [data-anim="from-bottom"] { transform: translateY(30px); }
  [data-anim="from-center"]{ transform: scale(0.85); }

  .hg-item, .hg-center {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* Fallback: if JS doesn't fire, show gallery after 3s */
@keyframes hg-fallback-reveal {
  to { opacity: 1; transform: none; }
}
.hg-item, .hg-center {
  animation: hg-fallback-reveal 0s 3s forwards;
}

/* ============ MINI CONTACT CTA ============ */
.mini-contact {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative; overflow: hidden;
}
.mini-contact::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}
.mini-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.mini-contact-text h3 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.mini-contact-text p {
  color: var(--text-secondary); font-size: 0.9rem;
  margin-bottom: 1rem;
}
.mini-contact-text .contact-links {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.mini-contact-text .contact-links a {
  color: var(--accent); font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.4rem;
}
.mini-contact-text .contact-links a:hover { text-decoration: underline; }
.mini-contact-form { display: flex; flex-direction: column; gap: 0.7rem; }
.mini-contact-form input,
.mini-contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.mini-contact-form input:focus,
.mini-contact-form textarea:focus { border-color: var(--accent); }
.mini-contact-form input::placeholder,
.mini-contact-form textarea::placeholder { color: var(--text-tertiary); }
.mini-contact-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #fff; border: none;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  align-self: flex-start;
}
.mini-contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
@media(max-width:768px) {
  .mini-contact-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .mini-contact { padding: 2rem 1.5rem; }
}

/* ============ BLOG COMMENTS ============ */
.blog-comments {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}
.blog-comments h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
.comment-form {
  display: flex; flex-direction: column; gap: 0.7rem;
  margin-bottom: 2rem;
}
.comment-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
}
.comment-form input,
.comment-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-tertiary); }
.comment-form button {
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #fff; border: none;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  align-self: flex-start;
}
.comment-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.comments-list { display: flex; flex-direction: column; gap: 1.2rem; }
.comment-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.2rem;
}
.comment-header {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.8rem;
  flex-shrink: 0;
}
.comment-meta { display: flex; flex-direction: column; }
.comment-name { font-weight: 600; font-size: 0.85rem; }
.comment-date { font-size: 0.7rem; color: var(--text-tertiary); }
.comment-body { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.no-comments {
  text-align: center; padding: 2rem;
  color: var(--text-tertiary); font-size: 0.9rem;
}
@media(max-width:480px) {
  .comment-form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   HOMEPAGE AMBIENT ANIMATIONS
   ============================================================ */

/* ---- Floating Gradient Orbs (background ambience) ---- */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.08;
  z-index: 0;
  will-change: transform;
}
.ambient-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #00c6fb 0%, transparent 70%);
  animation: orb-drift-1 20s ease-in-out infinite;
}
.ambient-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #005bea 0%, transparent 70%);
  animation: orb-drift-2 25s ease-in-out infinite;
}
.ambient-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #f5576c 0%, transparent 70%);
  animation: orb-drift-3 18s ease-in-out infinite;
}
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(100px, -60px) scale(1.1); }
  50%      { transform: translate(-50px, 80px) scale(0.95); }
  75%      { transform: translate(70px, 30px) scale(1.05); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%      { transform: translate(-80px, 50px) scale(1.15); }
  60%      { transform: translate(60px, -90px) scale(0.9); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35%      { transform: translate(90px, 40px) scale(1.1); }
  65%      { transform: translate(-60px, -70px) scale(1.05); }
}

/* ---- Shimmer Effect on Gradient Text ---- */
@keyframes text-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.gradient-text {
  background-size: 200% auto !important;
  animation: text-shimmer 4s linear infinite;
}

/* ---- Card Breathing Glow ---- */
@keyframes card-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 198, 251, 0); border-color: var(--glass-border); }
  50%      { box-shadow: 0 0 25px -5px rgba(0, 198, 251, 0.06); border-color: rgba(0, 198, 251, 0.15); }
}
.service-card,
.blog-card,
.testimonial-card {
  animation: card-breathe 5s ease-in-out infinite;
}
.service-card:nth-child(2) { animation-delay: 1s; }
.service-card:nth-child(3) { animation-delay: 2s; }
.blog-card:nth-child(2)    { animation-delay: 0.8s; }
.blog-card:nth-child(3)    { animation-delay: 1.6s; }
.testimonial-card:nth-child(2) { animation-delay: 1.2s; }
.testimonial-card:nth-child(3) { animation-delay: 2.4s; }

/* ---- Stat Counter Pulse ---- */
@keyframes stat-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.stat-number {
  animation: stat-pulse 3s ease-in-out infinite;
  display: inline-block;
}
.stat:nth-child(2) .stat-number { animation-delay: 0.5s; }
.stat:nth-child(3) .stat-number { animation-delay: 1s; }

/* ---- Portfolio Item Tilt on Hover ---- */
.portfolio-item {
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94), box-shadow 0.5s ease;
}
.portfolio-item:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 20px 50px rgba(0, 198, 251, 0.12);
}

/* ---- Newsletter CTA Animated Border ---- */
@keyframes newsletter-border-travel {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.newsletter-cta {
  position: relative;
}
.newsletter-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(0, 198, 251, 0.15), rgba(0, 91, 234, 0.15), transparent);
  background-size: 300% 100%;
  animation: newsletter-border-travel 6s ease infinite;
  z-index: -1;
  opacity: 0.5;
}

/* ---- Section Label Animated Dash ---- */
@keyframes label-dash {
  0%, 100% { width: 30px; opacity: 0.5; }
  50%      { width: 50px; opacity: 1; }
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
  animation: label-dash 3s ease-in-out infinite;
}

/* ---- Hero Cinematic Grain Overlay ---- */
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10%      { transform: translate(-2%, -3%); }
  20%      { transform: translate(3%, 1%); }
  30%      { transform: translate(-1%, 2%); }
  40%      { transform: translate(2%, -2%); }
  50%      { transform: translate(-3%, 3%); }
  60%      { transform: translate(1%, -1%); }
  70%      { transform: translate(-2%, 2%); }
  80%      { transform: translate(3%, -3%); }
  90%      { transform: translate(-1%, 1%); }
}
/* Hero grain removed — was causing blur artifacts on some devices */

/* ---- Marquee Speed Variation ---- */
.marquee-track:hover {
  animation-duration: 60s;
}

/* ---- Reduce Animations for Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  .hg-item.hg-visible, .hg-item.hg-visible.hg-a, .hg-item.hg-visible.hg-b,
  .hg-item.hg-visible.hg-c, .hg-item.hg-visible.hg-d, .hg-item.hg-visible.hg-f,
  .hg-item.hg-visible.hg-g {
    animation: none !important;
  }
  .gradient-text { animation: none !important; }
  .service-card, .blog-card, .testimonial-card { animation: none !important; }
  .stat-number { animation: none !important; }
  .ambient-orb { animation: none !important; }
  .hg-tagline { animation: none !important; }
  .hg-show-more { animation: none !important; }
}

/* =========================================
   WordPress Default Widgets Styling
   ========================================= */
.widget {
    margin-bottom: 2rem;
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}
.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.widget ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.widget ul li a:hover {
    color: var(--accent);
}
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
}
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
}
.search-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 198, 251, 0.2);
}
.search-submit {
    padding: 0.6rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Fix for YouTube button icon layout in footer */
.widget .social-links a.btn, .widget a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Ensure CF7 placeholder text looks okay */
.wpcf7-form p {
    margin-bottom: 1rem;
}
