/* 
 * EveTech Solution - Premium Modern Agency Aesthetic
 * Palette: Midnight Slate, EveTech Blue (#146db7), EveTech Orange (#f37821)
 * Focus: Immersive storytelling, visually light layouts, dynamic animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #070b14;
  --bg-surface: #0f172a;
  --bg-glass: rgba(15, 23, 42, 0.7);
  --bg-glass-light: rgba(255, 255, 255, 0.03);
  
  --color-brand-blue: #146db7; 
  --color-brand-orange: #f37821;
  --color-brand-yellow: #f6c04f; /* Added from the user's provided sample image */
  --color-accent-hover: #d36415;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-secondary); font-family: var(--font-body); line-height: 1.8; overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-primary); font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img, video { max-width: 100%; height: auto; display: block; }

/* Dynamic Scroll Animations */
.animate { will-change: opacity, transform; opacity: 0; }
.fade-up { transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { transform: translateX(40px); transition: opacity 0.9s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { transform: translateX(-40px); transition: opacity 0.9s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.scale-up { transform: scale(0.9); transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.scale-up.visible { opacity: 1; transform: scale(1); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Utility */
.section { padding: 120px 24px; position: relative; }
.section-bg-alt { background-color: var(--bg-surface); }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.text-center { text-align: center; }
.section-subtitle { color: var(--color-brand-orange); font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 16px; display: block; }
.section-title { font-size: 3rem; margin-bottom: 24px; letter-spacing: -1px; }

/* Inline Expandable Text */
.expandable-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: max-height 0.3s ease; }
.expandable-text.expanded { display: block; -webkit-line-clamp: unset; }
.read-more-btn { color: var(--color-brand-orange); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; align-self: flex-start; margin-top: 12px; border-bottom: 1px solid transparent; transition: var(--transition); cursor: pointer; background: none; border: none; padding: 0; font-family: var(--font-heading); }
.read-more-btn:hover { border-bottom-color: var(--color-brand-orange); color: var(--color-brand-blue); }

/* Buttons */
.btn-primary { background-color: var(--color-brand-orange); color: var(--bg-dark); padding: 16px 32px; border-radius: 50px; font-weight: 600; font-family: var(--font-heading); border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; text-align: center; }
.btn-primary:hover { background-color: var(--color-accent-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(243, 120, 33, 0.2); }
.btn-outline { background-color: transparent; color: var(--color-brand-orange); padding: 16px 32px; border-radius: 50px; font-weight: 600; border: 1px solid var(--color-brand-orange); display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); text-transform: uppercase; text-align: center; }
.btn-outline:hover { background-color: var(--color-brand-orange); color: var(--bg-dark); }
.btn-call { border-radius: 50px; font-weight: 700; font-family: var(--font-heading); font-size: 1.5rem; border: 2px solid var(--color-brand-orange); color: red; display: inline-block; padding: 12px 32px; text-decoration: none; transition: var(--transition); }
.btn-call:hover { background: rgba(243, 120, 33, 0.1); }

/* Header & Main Navbar */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-glass); }
.navbar { max-width: 1400px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); color: var(--color-brand-blue); z-index: 1001; }
.logo span { color: var(--color-brand-orange); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--color-brand-orange); }
.nav-socials { display: flex; gap: 16px; align-items: center; border-left: 1px solid var(--border-glass); padding-left: 24px; margin-left: 8px; }
.nav-socials a { color: var(--text-secondary); transition: var(--transition); display: flex; align-items: center; }
.nav-socials a:hover { color: var(--color-brand-orange); transform: translateY(-2px); }
.nav-socials svg { width: 20px; height: 20px; fill: currentColor; }
.nav-contact-number { font-weight: 700; color: var(--color-brand-orange); font-size: 1rem; margin-right: 8px; display: flex; align-items: center; gap: 6px; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; z-index: 1001; }

/* -------------------------------------
 * Premium Split Hero Section with Background Slider
 * ------------------------------------- */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; padding: 140px 24px 80px 24px; overflow: hidden; background: var(--bg-dark); }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }

.hero-container { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-text { text-align: left; }

.hero-badge { 
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); 
  border: 1px solid var(--border-glass); padding: 8px 16px; border-radius: 50px; 
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; 
  letter-spacing: 2px; color: var(--color-brand-orange); margin-bottom: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}
.badge-dot { width: 6px; height: 6px; background-color: var(--color-brand-orange); border-radius: 50%; display: inline-block; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.hero-text h1 { font-size: 4.8rem; line-height: 1.05; margin-bottom: 24px; font-weight: 800; letter-spacing: -2px; }
.hero-text p { font-size: 1.2rem; max-width: 600px; margin-bottom: 40px; color: var(--text-secondary); line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; justify-content: flex-start; }

.hero-video-box { 
  width: 100%; height: 500px; 
  border-radius: var(--border-radius-lg); overflow: hidden; 
  box-shadow: 0 30px 70px rgba(0,0,0,0.6); 
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--bg-surface);
  transition: var(--transition);
}
.hero-video-box:hover { transform: translateY(-5px); border-color: rgba(243, 120, 33, 0.3); }
.hero-video-box video { width: 100%; height: 100%; object-fit: cover; }



/* Zig-Zag Architecture */
.zigzag-row { display: flex; align-items: center; gap: 64px; margin-bottom: 80px; }
.zigzag-row.reverse { flex-direction: row-reverse; }
.zigzag-text { flex: 1; }
.zigzag-image { flex: 1; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-glass); position: relative; }
.zigzag-image::before { content: ""; display: block; padding-bottom: 75%; }
.zigzag-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.zigzag-image:hover img { transform: scale(1.05); }

/* -------------------------------------
 * Premium Overlapping Fanning Stack Layout
 * ------------------------------------- */
.portfolio-stack {
  position: relative; flex: 1; height: 500px; display: flex;
  justify-content: center; align-items: center; width: 100%;
  overflow: visible; z-index: 10; margin-top: 40px;
}
.stack-card {
  position: absolute; border-radius: var(--border-radius-md); overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4); border: 4px solid var(--bg-dark);
  background: var(--bg-surface); transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer; z-index: 1;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.stack-card:hover img { transform: scale(1.04); }

.stack-card-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary); font-family: var(--font-heading); font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 3; transition: var(--transition);
}
.stack-card:hover .stack-card-tag { background: var(--color-brand-orange); color: var(--bg-dark); border-color: var(--color-brand-orange); }

/* Stack-Specific Offsets & Rotations */
/* 1. Award Stack (3 Images) */
.award-stack { max-width: 500px; }
.award-stack .stack-card { width: 80%; aspect-ratio: 4/3; }
.award-stack .card-1 { transform: translate(-40px, -35px) rotate(-6deg); z-index: 1; opacity: 0.9; }
.award-stack .card-2 { transform: translate(45px, 25px) rotate(4deg); z-index: 2; opacity: 0.95; }
.award-stack .card-3 { transform: translate(0px, 0px) rotate(-1deg); z-index: 3; }

/* Award Fanning Out on Stack Hover */
.award-stack:hover .card-1 { transform: translate(-90px, -60px) rotate(-12deg) scale(1.02); opacity: 1; }
.award-stack:hover .card-2 { transform: translate(90px, 50px) rotate(8deg) scale(1.02); opacity: 1; }
.award-stack:hover .card-3 { transform: translate(0px, 0px) rotate(0deg) scale(1.04); }


/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.glass-card { background: var(--bg-glass-light); border: 1px solid var(--border-glass); border-radius: var(--border-radius-md); padding: 40px; backdrop-filter: blur(10px); transition: var(--transition); box-shadow: var(--shadow-glass); display: flex; flex-direction: column; }
.glass-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.06); border-color: rgba(243, 120, 33, 0.3); }
.glass-card h4 { font-size: 1.5rem; margin-bottom: 16px; color: var(--color-brand-blue); }
.glass-card p { font-size: 1.05rem; line-height: 1.7; flex-grow: 1; }

/* Stall Image Cards */
.stall-card { padding: 0; overflow: hidden; }
.stall-img { height: 200px; width: 100%; object-fit: cover; }
.stall-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.stall-content h4 { color: var(--color-brand-blue); margin-bottom: 12px; }

/* -------------------------------------
 * Custom CTA Block (Yellow / Dark Split)
 * ------------------------------------- */
.cta-split-wrapper { display: flex; border-radius: var(--border-radius-md); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow-glass); }
.cta-yellow-box { flex: 0 0 35%; background-color: var(--color-brand-yellow); color: #333; padding: 48px 32px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.cta-yellow-box h3 { color: #1a1a1a; font-size: 2rem; margin-bottom: 16px; }
.cta-yellow-box p { font-size: 1.05rem; line-height: 1.6; font-weight: 500; }
.cta-image-box { flex: 1; position: relative; }
.cta-image-box img { width: 100%; height: 100%; object-fit: cover; }

.cta-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: rgba(0,0,0,0.3); padding: 48px; border-radius: var(--border-radius-md); border: 1px solid var(--border-glass); margin-bottom: 64px; }
.cta-bottom-left h2 { font-size: 2.8rem; line-height: 1.2; }
.cta-bottom-right p { font-size: 1rem; margin-bottom: 24px; color: var(--text-secondary); }

/* AlphaRise Polaroids */
.alpharise-polaroids {
  display: flex; justify-content: center; gap: 16px; margin-top: 48px; flex-wrap: wrap;
}
.polaroid-card {
  background: #fff; padding: 8px 8px 24px 8px; border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); width: 18%; aspect-ratio: 4/5;
  transition: var(--transition); cursor: pointer;
}
.polaroid-card img { width: 100%; height: 80%; object-fit: cover; border-radius: 2px; }

.alpharise-polaroids .polaroid-card:nth-child(1) { transform: translateY(15px) rotate(-5deg); }
.alpharise-polaroids .polaroid-card:nth-child(2) { transform: translateY(5px) rotate(-2deg); }
.alpharise-polaroids .polaroid-card:nth-child(3) { transform: translateY(0px) rotate(0deg); }
.alpharise-polaroids .polaroid-card:nth-child(4) { transform: translateY(5px) rotate(2deg); }
.alpharise-polaroids .polaroid-card:nth-child(5) { transform: translateY(15px) rotate(5deg); }

.alpharise-polaroids .polaroid-card:hover {
  transform: translateY(-10px) scale(1.08) rotate(0deg); 
  z-index: 10; box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Overriding individual card hovers to bring to top and zoom */
.portfolio-stack .stack-card:hover {
  z-index: 30 !important;
  transform: translate(var(--hover-offset-x, 0), var(--hover-offset-y, 0)) scale(1.08) rotate(0deg) !important;
  border-color: var(--color-brand-orange);
  box-shadow: 0 30px 80px rgba(243, 120, 33, 0.25);
  opacity: 1 !important;
}


/* Gallery & Completed Works 3-Column Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { overflow: hidden; border-radius: 8px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: var(--transition); }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }


.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(7, 11, 20, 0.95); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(10px); }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 90%; max-height: 90%; }
.lightbox-img { max-width: 100%; max-height: 90vh; border-radius: var(--border-radius-md); box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.lightbox-close { position: absolute; top: 32px; right: 40px; color: white; font-size: 3rem; cursor: pointer; background: none; border: none; }

/* Contact Form */
.quote-container { max-width: 700px; margin: 0 auto; background: var(--bg-glass-light); border: 1px solid var(--border-glass); padding: 48px; border-radius: var(--border-radius-lg); backdrop-filter: blur(10px); }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 16px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-glass); border-radius: var(--border-radius-sm); font-family: var(--font-body); font-size: 1rem; color: var(--text-primary); transition: var(--transition); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--color-brand-orange); background: rgba(0,0,0,0.4); }

/* HamroEvent App Sidebar Layout */
.app-showcase { background: var(--bg-surface); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; border-radius: var(--border-radius-lg); border: 1px solid var(--border-glass); padding: 64px; }
.app-logo-gradient { background: linear-gradient(135deg, #fca5a5 0%, #ec4899 50%, #f57c00 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.app-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.app-badges img { height: 48px; width: auto; cursor: pointer; transition: var(--transition); border-radius: 8px; }
.app-badges img:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.phone-frame { width: 260px; height: 520px; background: #000; border: 12px solid #1e293b; border-radius: 40px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8); overflow: hidden; display: flex; flex-direction: column; margin: 0 auto; }
.phone-screen { flex: 1; background: linear-gradient(135deg, #fca5a5, #ec4899); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }

/* Floating WhatsApp */
.whatsapp-float { position: fixed; bottom: 40px; right: 40px; width: 60px; height: 60px; background-color: #25d366; border-radius: 50px; text-align: center; box-shadow: 0px 4px 15px rgba(0,0,0,0.3); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0px 8px 25px rgba(37,211,102,0.4); }

/* ==========================================
 * RESPONSIVENESS (Mobile & Tablet)
 * ========================================== */
@media (max-width: 1200px) {
  .hero-container { gap: 32px; }
  .hero-text h1 { font-size: 3.5rem; }
  .hero-video-box { height: 500px; }
}

@media (max-width: 992px) {
  .hero-container, .zigzag-row, .zigzag-row.reverse, .app-showcase, .cta-bottom-row { 
    grid-template-columns: 1fr; 
    flex-direction: column; 
    gap: 40px; 
  }
  .hero-text { text-align: center; }
  .hero-text p { margin: 0 auto 32px auto; }
  .hero-buttons { justify-content: center; }
  .hero-video-box { height: 400px; width: 100%; max-width: 600px; margin: 0 auto; }
  .section { padding: 80px 24px; }
  .section-title { font-size: 2.2rem; }
  .nav-links, .nav-socials { display: none; }
  .mobile-menu-btn { display: block; }
  .app-showcase { padding: 40px 24px; text-align: center; }
  .app-badges { justify-content: center; }
  
  .cta-split-wrapper { flex-direction: column; }
  .cta-image-box { min-height: 300px; }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.5rem; }
  .hero-video-box { height: 300px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .portfolio-stack { height: 320px; }
  .award-stack:hover .card-1 { transform: translate(-45px, -30px) rotate(-12deg) scale(1.02); }
  .award-stack:hover .card-2 { transform: translate(45px, 25px) rotate(8deg) scale(1.02); }
  .alpharise-polaroids .polaroid-card { width: 45%; }
  .alpharise-polaroids .polaroid-card:nth-child(even) { transform: translateY(10px) rotate(3deg); }
  .alpharise-polaroids .polaroid-card:nth-child(odd) { transform: translateY(5px) rotate(-3deg); }
  .portfolio-stack .stack-card:hover { transform: translate(calc(var(--hover-offset-x, 0px) * 0.5), calc(var(--hover-offset-y, 0px) * 0.5)) scale(1.06) rotate(0deg) !important; }
  .quote-container { padding: 32px 24px; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 14px 24px; }
  .cta-bottom-left h2 { font-size: 2rem; }
}

/* -------------------------------------
 * Dedicated Work Gallery & Masonry Page
 * ------------------------------------- */
.filter-tabs {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-glass);
  padding: 10px; border-radius: 50px; box-shadow: var(--shadow-glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.filter-btn {
  background: transparent; border: none; color: var(--text-secondary);
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px; border-radius: 50px; cursor: pointer;
  transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-btn:hover { color: var(--color-brand-orange); background: rgba(255,255,255,0.03); }
.filter-btn.active { background: var(--color-brand-orange); color: var(--bg-dark); box-shadow: 0 5px 15px rgba(243, 120, 33, 0.25); }

/* Responsive CSS Columns Masonry */
.masonry-grid {
  column-count: 3; column-gap: 32px; width: 100%; overflow: visible;
}
.masonry-grid .gallery-item {
  display: inline-block; width: 100%; margin-bottom: 32px;
  aspect-ratio: auto;
}
.masonry-grid .gallery-item img { height: auto; max-height: 500px; }

@media (max-width: 992px) {
  .masonry-grid { column-count: 2; column-gap: 24px; }
  .masonry-grid .gallery-item { margin-bottom: 24px; }
}
@media (max-width: 576px) {
  .masonry-grid { column-count: 1; column-gap: 0; }
  .filter-tabs { border-radius: var(--border-radius-md); padding: 12px; width: 100%; }
  .filter-btn { width: 100%; text-align: center; }
}

/* Lightbox Carousel Navigation Arrows */
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass); color: white;
  width: 60px; height: 60px; border-radius: 50%;
  font-size: 2.5rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; z-index: 2010;
  transition: var(--transition); user-select: none;
}
.lightbox-arrow:hover { background: var(--color-brand-orange); color: var(--bg-dark); border-color: var(--color-brand-orange); box-shadow: 0 10px 20px rgba(243,120,33,0.3); }
.lightbox-arrow.prev { left: 40px; }
.lightbox-arrow.next { right: 40px; }

/* Lightbox Caption area */
.lightbox-caption {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass); border-radius: var(--border-radius-md);
  padding: 20px 32px; text-align: center; max-width: 90%; min-width: 320px;
  z-index: 2010; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.lightbox-caption .gallery-tag { margin-bottom: 6px; }
.lightbox-caption h4 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-primary); font-weight: 700; margin: 0; }
.lightbox-caption p { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

@media (max-width: 768px) {
  .lightbox-arrow { width: 50px; height: 50px; font-size: 2rem; }
  .lightbox-arrow.prev { left: 16px; }
  .lightbox-arrow.next { right: 16px; }
  .lightbox-caption { padding: 16px 24px; min-width: 260px; bottom: 20px; }
}

/* --- SEO & IMPACT UX UPGRADES --- */

/* 1. Sticky Header Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 2. WhatsApp Pulse Animation */
@keyframes pulse-ring {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  animation: pulse-ring 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.15) translateY(-5px);
  animation: none;
}

/* 3. Trusted By Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.marquee-container::before, .marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-card), transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-card), transparent);
}
.marquee-content {
  display: flex;
  animation: marquee-scroll 25s linear infinite;
  gap: 80px;
  padding: 0 40px;
}
.marquee-item {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  font-family: var(--font-heading);
}
.marquee-item:hover {
  opacity: 1;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 40px)); }
}


/* Responsive Award Stack */
@media (max-width: 768px) {
  .portfolio-stack {
    width: 280px;
    height: 380px;
  }
  .stack-card.card-1 { transform: rotate(-3deg) translateX(-10px); }
  .stack-card.card-2 { transform: rotate(3deg) translateX(10px); }
  .stack-card:hover { transform: scale(1.05) translateY(-10px) !important; z-index: 10; }
}
