/* 404 Page */
.error-404-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0rem 0;
  background: #ededed;
}

.error-404-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.error-404-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404-graphic .blob {
  width: clamp(220px, 32vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #52DDC4, #7B3FF2);
  filter: blur(20px) saturate(1.2);
  opacity: 0.85;
}

.error-404-content .kicker {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A0F1C;
  margin-bottom: 0.5rem;
}

.error-404-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  color: #0A0F1C;
  margin: 0 0 1rem 0;
}

.error-404-subtitle {
  font-size: 1.25rem;
  color: #363336;
  margin-bottom: 2rem;
}

.error-404-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-404 {
  background: #52DDC4;
  color: #0A0F1C;
  border: none;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-secondary-404 {
  background: transparent;
  color: #0A0F1C;
  border: 2px solid #0A0F1C;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 900px) {
  .error-404-inner { grid-template-columns: 1fr; text-align: center; }
  .error-404-graphic { order: -1; }
}
/* ==========================================================================
   Block Styles
   ========================================================================== */

/* ==========================================================================
   Hero Block
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--blaze-secondary);
    margin: 0;
    margin-top: -80px; /* Compensate for fixed header */
    padding-top: 80px; /* Add padding to account for header */
}

/* Full Width Hero */
.alignfull.hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    /* Performance optimizations for all browsers */
    will-change: auto;
    backface-visibility: hidden;
}

/* Firefox-specific video optimizations */
@supports (-moz-appearance: none) {
    .hero-video {
        /* Force hardware acceleration in Firefox */
        transform: translate3d(-50%, -50%, 0);
        -moz-transform: translate3d(-50%, -50%, 0);
        /* Improve rendering performance */
        image-rendering: auto;
        -moz-image-rendering: auto;
    }
}

/* Fallback Background Image */
.hero-section .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.5);
    z-index: 1;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    padding-top: 4rem; /* Add some top padding for better spacing */
}

/* When header is transparent and overlapping */
.has-transparent-header .hero-content {
    padding-top: calc(80px + 4rem); /* Account for header height + spacing */
}

/* Admin bar considerations for hero section */
.admin-bar .hero-section {
    margin-top: -112px; /* Account for header + admin bar */
    padding-top: 112px;
}

@media screen and (max-width: 782px) {
    .admin-bar .hero-section {
        margin-top: -126px; /* Account for header + mobile admin bar */
        padding-top: 126px;
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.2;
    color: white;
    margin: 0 0 2rem 0;
    max-width: 1300px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-button.primary {
    background: var(--blaze-primary);
    color: white;
    border-color: var(--blaze-primary);
}

.hero-button.primary:hover {
    background: transparent;
    color: var(--blaze-primary);
}

.hero-button.outline {
    background: transparent;
    color: white;
    border-color: white;
}

.hero-button.outline:hover {
    background: white;
    color: var(--blaze-secondary);
}

/* ==========================================================================
   Hero Title Slider - Corrected Version
   ========================================================================== */

/* Title Slider Container */
.hero-title-slider {
    position: relative;
    height: auto;
    min-height: 1.2em;
}

/* Base title styles for CSS animation approach */
.hero-title-slider .hero-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    opacity: 0;
    /* Remove the manual transition since we're using CSS animations */
    will-change: opacity;
    transform: translateZ(0); /* Force GPU acceleration */
}

/* For CSS-only animation (recommended) */
.hero-title-slider.count-2 .hero-title {
    animation: fade2 8s infinite;
}

.hero-title-slider.count-2 .hero-title:nth-child(1) { animation-delay: 0s; }
.hero-title-slider.count-2 .hero-title:nth-child(2) { animation-delay: 4s; }

@keyframes fade2 {
    0%, 50%, 100% { opacity: 0; }
    5%, 45% { opacity: 1; }
}

/* For 3 titles */
.hero-title-slider.count-3 .hero-title {
    animation: fade3 12s infinite;
}

.hero-title-slider.count-3 .hero-title:nth-child(1) { animation-delay: 0s; }
.hero-title-slider.count-3 .hero-title:nth-child(2) { animation-delay: 4s; }
.hero-title-slider.count-3 .hero-title:nth-child(3) { animation-delay: 8s; }

@keyframes fade3 {
    0%, 33.33%, 100% { opacity: 0; }
    5%, 28.33% { opacity: 1; }
}

/* For 4 titles */
.hero-title-slider.count-4 .hero-title {
    animation: fade4 16s infinite;
}

.hero-title-slider.count-4 .hero-title:nth-child(1) { animation-delay: 0s; }
.hero-title-slider.count-4 .hero-title:nth-child(2) { animation-delay: 4s; }
.hero-title-slider.count-4 .hero-title:nth-child(3) { animation-delay: 8s; }
.hero-title-slider.count-4 .hero-title:nth-child(4) { animation-delay: 12s; }

@keyframes fade4 {
    0%, 25%, 100% { opacity: 0; }
    5%, 20% { opacity: 1; }
}

/* Fallback for JavaScript approach (if using the old method) */
.hero-title-slider .hero-title.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Ensure smooth rendering */
.hero-title-slider .hero-title {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title-slider {
        min-height: 2.4em;
    }
    
    .hero-title-slider .hero-title {
        white-space: normal;
    }
}

/* ==========================================================================
   Services Block
   ========================================================================== */
.blaze-services-block {
    padding: 5rem 0;
    background: white;
}

.blaze-services-block.alignfull {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Section Header */
.section-header {
    text-align: center;

    margin: 0 auto 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--blaze-secondary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Card */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--blaze-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* Service Content */
.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blaze-secondary);
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--blaze-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

/* ==========================================================================
   CTA Block
   ========================================================================== */
.blaze-cta-block {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blaze-cta-block.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* CTA Content */
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
    /* Hero Mobile */
    .hero-content {
        padding: 120px 1.5rem 2rem; /* Adjusted for mobile */
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
    
    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* CTA Mobile */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}


/* ==========================================================================
   Wave Hero Block  –  Animation-ready version
   ========================================================================== */

/* ---------- 1 | Layout shell ------------------------------------------- */
.wave-hero-section{
    padding:6rem 0;
    min-height:60vh;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
}
.wave-hero-section.alignfull{
    width:100vw;
    position:relative;
    left:50%; right:50%;
    margin-left:-50vw; margin-right:-50vw;
}
.wave-hero-container{
    max-width:1400px;
    margin:0 auto;
    padding:0 3rem;
    width:100%;
}
.wave-hero-content{
    display:grid;
    grid-template-columns:1.5fr 400px;
    gap:5rem;
    align-items:center;
}

/* ---------- 2 | Text panel -------------------------------------------- */
.wave-hero-small-heading{
    font-family:var(--font-primary);
    font-weight:400;
    font-size:2.5rem;
    line-height:1.2;
    margin:0 0 1rem;
    letter-spacing:-.02em;
}

/* Main headline: 3-D context + SplitText span styles */
.wave-hero-main-heading{
    font-family:var(--font-primary);
    font-weight:900;
    font-size:clamp(2rem,3.5vw,3rem);
    line-height:1.1;
    margin:0 0 2.5rem;
    text-transform:uppercase;
    letter-spacing:-.03em;

    /* NEW — 3-D context for character flips */
    perspective:900px;
    transform-style:preserve-3d;
}
.wave-hero-main-heading .char{
    display:inline-block;               /* independent transforms   */
    color:transparent;                  /* start as outline only    */
    -webkit-text-stroke:2px currentColor;

    /* gradient flood-fill */
    background:linear-gradient(90deg,
              var(--accent,#ff8b00) 0%,
              #7b61ff 100%) no-repeat;
    background-size:200% 100%;
    background-position:100% 0;         /* hidden → revealed        */

    will-change:transform,background-position;
}

.wave-hero-description{
    font-family:var(--font-primary);
    font-weight:400;
    font-size:1.5rem;
    line-height:1.5;
    letter-spacing:-.02em;
}

/* ---------- 3 | Graphic panel ----------------------------------------- */
.wave-hero-graphic{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.wave-hero-graphic svg,
.wave-hero-graphic img{
    width:100%;
    max-width:400px;
    height:auto;
    display:block;
    pointer-events:none;          /* keep cursor UX crisp */
}

/* Original CSS “wave” keyframes kept for fallback */
.wave-hand{
    max-width:350px;
    animation:wave 2s ease-in-out infinite;
    transform-origin:70% 70%;
}
@keyframes wave{
    0%,100%{transform:rotate(0deg)}
    25%    {transform:rotate(-10deg)}
    75%    {transform:rotate(10deg)}
}

/* ---------- 4 | ScrollTrigger helper ---------------------------------- */
.wave-hero-section.is-pinned{overflow-x:hidden}

/* ---------- 5 | Responsive tweaks ------------------------------------ */
@media (max-width:1200px){
    .wave-hero-content{grid-template-columns:1fr 350px; gap:4rem}
    .wave-hero-small-heading{font-size:2.25rem}
    .wave-hero-main-heading{font-size:clamp(1.75rem,3vw,2.5rem)}
    .wave-hero-description{font-size:1.375rem}
}
@media (max-width:1024px){
    .wave-hero-content{grid-template-columns:1fr 300px; gap:3rem}
    .wave-hero-small-heading{font-size:2rem}
    .wave-hero-main-heading{font-size:clamp(1.5rem,3vw,2.25rem)}
    .wave-hero-description{font-size:1.25rem}
}
@media (max-width:768px){
    .wave-hero-section{padding:4rem 0; min-height:auto}
    .wave-hero-container{padding:0 1.5rem}
    .wave-hero-content{grid-template-columns:1fr; gap:3rem; text-align:center}
    .wave-hero-small-heading{font-size:1.75rem; margin-bottom:.75rem}
    .wave-hero-main-heading{font-size:clamp(1.5rem,5vw,2rem); margin-bottom:2rem}
    .wave-hero-description{font-size:1.125rem; margin:0 auto}
    .wave-hero-graphic{max-width:250px; margin:0 auto}
    .wave-hand{max-width:200px}
}

.wave-hero-content--full {
    display: block;
}

.wave-hero-content--full .wave-hero-description {
    max-width: none;
}

/* ==========================================================================
   Services Showcase Block - Enhanced with Decorative Shapes
   ========================================================================== */

.services-showcase-block {
    overflow: hidden;
}

.services-showcase-block.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Individual Service Row */
.service-showcase-row {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Full height for better impact */
@media (min-width: 768px) {
    .service-showcase-row {
        min-height: 80vh;
    }
}

/* Background Container */
.service-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Video Background */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    object-fit: cover;
    z-index: 0;
}

/* Background Image */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Background Overlay */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* Animated Gradient Background */
.animated-gradient {
    width: 100%;
    height: 100%;
    opacity: 0.95;
    position: relative;
}

/* Gradient Variations */
.gradient-orange .animated-gradient {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FFB84D 100%);
}

.gradient-purple .animated-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #A78BFA 100%);
}

.gradient-blue .animated-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #60A5FA 100%);
}

.gradient-pink .animated-gradient {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 50%, #FBCFE8 100%);
}

.gradient-green .animated-gradient {
    background: linear-gradient(135deg, #10B981 0%, #34D399 50%, #86EFAC 100%);
}

.gradient-teal .animated-gradient {
    background: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 50%, #5EEAD4 100%);
}

.gradient-indigo .animated-gradient {
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 50%, #A5B4FC 100%);
}

.gradient-yellow .animated-gradient {
    background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 50%, #FEF3C7 100%);
}

.gradient-red .animated-gradient {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 50%, #FCA5A5 100%);
}

/* Animated Shapes Overlay (gradient circles) */
.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.animated-shapes::before,
.animated-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatShape 15s ease-in-out infinite;
}

.animated-shapes::before {
    width: 30vw;
    height: 30vw;
    top: 10%;
    right: 10%;
}

.animated-shapes::after {
    width: 20vw;
    height: 20vw;
    bottom: 10%;
    left: 15%;
    animation-delay: -7.5s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(20px, 10px) scale(0.9);
    }
}

/* Decorative Shape Overlay */
.decorative-shape {
    position: absolute;
    z-index: 1;
    color: var(--shape-color);
    pointer-events: none;
    opacity: 0.8;
}

.decorative-shape svg {
    width: 100%;
    height: 100%;
}

/* Shape Positions */
.shape-top-left .decorative-shape {
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
}

.shape-top-right .decorative-shape {
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
}

.shape-bottom-left .decorative-shape {
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
}

.shape-bottom-right .decorative-shape {
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
}

.shape-center-left .decorative-shape {
    top: 50%;
    left: -5%;
    transform: translateY(-50%);
    width: 35%;
    height: 35%;
}

.shape-center-right .decorative-shape {
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 35%;
    height: 35%;
}

/* Shape Animations */
.shape-style-scribble .decorative-shape {
    animation: rotateShape 20s ease-in-out infinite;
}

.shape-style-blob .decorative-shape {
    animation: morphBlob 15s ease-in-out infinite;
}

.shape-style-dots .decorative-shape {
    animation: pulseShape 10s ease-in-out infinite;
}

@keyframes rotateShape {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes morphBlob {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    33% {
        transform: scale(1.1) rotate(120deg);
    }
    66% {
        transform: scale(0.9) rotate(240deg);
    }
}

@keyframes pulseShape {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

/* Content Wrapper */
.service-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
}

/* Content Card */
.service-content-card {
    background: white;
    padding: 4rem 3.5rem;
    border-radius: 20px;
    max-width: 600px;
    min-height: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Text Position Variations */
.text-left .service-content-card {
    margin-right: auto;
}

.text-right .service-content-card {
    margin-left: auto;
}

.text-center .service-content-card {
    margin: 0 auto;
    text-align: center;
}

/* Hover Effect */
.service-showcase-row:hover .service-content-card {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Typography */
.service-small-heading {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
    letter-spacing: -0.01em;
}

.service-main-heading {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--blaze-secondary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.service-description {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    flex-grow: 1;
}

/* Arrow Link */
.service-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-top: auto;
    color: var(--blaze-secondary);
    transition: all 0.3s ease;
    align-self: flex-end;
}

.text-center .service-link-arrow {
    align-self: center;
}

.service-link-arrow:hover {
    color: var(--blaze-primary);
    transform: translateX(5px);
}

.service-link-arrow svg {
    width: 36px;
    height: 36px;
}

.service-link-arrow circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.service-link-arrow path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Continuous motion overlay */
.service-showcase-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255,255,255,0.03) 100px,
            rgba(255,255,255,0.03) 200px
        );
    animation: slidePattern 30s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes slidePattern {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(200px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .service-content-wrapper {
        padding: 2rem;
    }
    
    .service-content-card {
        padding: 3rem 2.5rem;
        min-height: 350px;
    }
    
    .service-main-heading {
        font-size: 2.25rem;
    }
    
    .service-description {
        font-size: 1.125rem;
    }
    
    /* Adjust shape sizes for tablets */
    .decorative-shape {
        opacity: 0.6;
    }
    
    .shape-top-left .decorative-shape,
    .shape-top-right .decorative-shape,
    .shape-bottom-left .decorative-shape,
    .shape-bottom-right .decorative-shape {
        width: 35%;
        height: 35%;
    }
}

@media (max-width: 768px) {
    .service-showcase-row {
        min-height: 80vh;
    }
    
    .service-content-wrapper {
        padding: 1.5rem;
    }
    
    .service-content-card {
        padding: 2.5rem 2rem;
        max-width: 100%;
        min-height: auto;
    }
    
    .service-main-heading {
        font-size: 2rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    /* All cards centered on mobile */
    .text-left .service-content-card,
    .text-right .service-content-card {
        margin: 0 auto;
        text-align: center;
    }
    
    /* Reduce animation complexity on mobile */
    .animated-shapes {
        display: none;
    }
    
    /* Hide decorative shapes on mobile for better performance */
    .decorative-shape {
        display: none;
    }
}

/* ==========================================================================
   Contact Form Block
   ========================================================================== */

.contact-form-block {
    padding: 4rem 0; /* add top/bottom spacing */
    position: relative;
    overflow: visible;
}

/* Container wrapper for proper width */
.contact-form-block.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Inner container with max-width matching other sections */
.contact-form-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0; /* removed inner horizontal padding */
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* The actual purple box */
.contact-form-colored-box {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 30px;
    padding: 1rem; /* small inner padding */
    position: relative;
}

/* Inner container with background */
.contact-form-inner {
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    padding: 0; /* ensure no duplicate padding rule */
}

/* Decorative Shapes */
.decorative-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #7EFF00;
    top: -150px;
    left: 10%;
    opacity: 0.8;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #FF006E;
    top: -200px;
    right: 30%;
    opacity: 0.8;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #FF006E;
    bottom: -125px;
    right: 10%;
    opacity: 0.8;
}

/* Container */
.contact-form-container {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding: 0; /* remove container horizontal padding */
}

.contact-form-container a {
    color: #EC268E !important;
    font-weight: 600;
}

/* Content Grid */
.contact-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    min-height: 400px;
}

/* Text Content */
.contact-text {
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}



/* Google Maps Integration - Enhanced Modern Style */
.contact-map-container {
    margin-top: 2.5rem;
    position: relative;
}

.contact-map-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-map-wrapper:hover {
    transform: none;
    box-shadow: inherit;
}

.contact-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(123, 63, 242, 0.1) 0%, 
        rgba(0, 212, 170, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.contact-map {
    width: 100%;
    height: 350px;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.15);
}



/* Enhanced Map Style Variations */
.contact-form-block.has-map .contact-map-wrapper::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 4;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.contact-form-block.has-map .contact-map-wrapper:hover::after {
    opacity: 0;
    transform: none;
}

/* Map Corner Accent */
.contact-map-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, 
        var(--button-color) 0%, 
        var(--text-color) 50%, 
        var(--button-color) 100%);
    border-radius: 25px;
    z-index: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.contact-form-block.has-map .contact-map-wrapper:hover::before {
    opacity: 0.3;
}

/* Map Loading State */
.contact-map.loading {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-map.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(123, 63, 242, 0.2);
    border-top: 3px solid var(--button-color);
    border-radius: 50%;
    animation: mapSpin 1s linear infinite;
}

@keyframes mapSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Responsive Map */
@media (max-width: 768px) {
    .contact-map {
        height: 280px;
    }
    
    .contact-map-container {
        margin-top: 2rem;
    }
    
    .contact-map-wrapper {
        border-radius: 20px;
    }
    
    .contact-map-wrapper:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .contact-map {
        height: 250px;
    }
}

.contact-small-heading {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.contact-main-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.contact-description {
    font-size: 1.375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-subtext {
    font-size: 1.375rem;
    opacity: 0.8;
}

/* Form Wrapper */
.contact-form-wrapper {
    background: transparent;
}

/* Custom Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: white;
    border: none;
    border-radius: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #666;
    opacity: 1;
}

/* Textarea specific */
.form-textarea {
    border-radius: 1rem;
    resize: vertical;
    min-height: 100px;
    padding: 1.25rem 1.5rem;
}

/* Submit Button */
.form-submit {
    margin-top: 0.5rem;
    text-align: left;
}

.submit-button {
    background: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    width: 50%;
}

.submit-button:hover {
    transform: translateY(-3px);
}

/* Contact Form 7 Specific Fixes */
.contact-form-block .wpcf7 {
    width: 100%;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide screen-reader-response (only for assistive tech) */
.contact-form-block .screen-reader-response {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    word-wrap: normal !important;
}

.contact-form-block .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Remove CF7 default paragraph tags and breaks */
.contact-form-block .wpcf7-form p {
    margin: 0;
}

.contact-form-block .wpcf7-form br {
    display: none;
}

.contact-form-block .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-block .wpcf7-form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: white;
    border: none;
    border-radius: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.contact-form-block .wpcf7-form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-form-block .wpcf7-textarea {
    border-radius: 1rem;
    resize: vertical;
    min-height: 100px;
    padding: 1.25rem 1.5rem;
}

/* Checkbox styling for consistent spacing */
.contact-form-block .wpcf7-checkbox {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}



.contact-form-block .wpcf7-checkbox .wpcf7-list-item {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: #333;
    cursor: pointer;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--button-color);
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    flex-shrink: 0;
    min-width: 18px;
    min-height: 18px;
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked {
    background-color: var(--button-color);
    border-color: var(--button-color);
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: 1rem;
    font-family: var(--font-primary);
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.contact-form-block .wpcf7-submit {
    background: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    width: 50%;
    text-align: center;
}

.contact-form-block .wpcf7-submit:hover {
    transform: translateY(-3px);
}

/* Align submit button wrapper to left */
.contact-form-block .wpcf7-form p:last-of-type {
    text-align: left;
}

/* Remove spinner wrapper paragraph */
.contact-form-block .wpcf7-spinner {
    display: none;
}

/* Validation Styles */
.contact-form-block .wpcf7-not-valid {
    border: 2px solid #ff6b6b;
}

.contact-form-block .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    display: block;
}

/* Success message styling */
.contact-form-block .wpcf7-mail-sent-ok {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 2px solid #28a745;
}

/* Error message styling */
.contact-form-block .wpcf7-validation-errors,
.contact-form-block .wpcf7-acceptance-missing {
    background-color: rgba(255, 107, 107, 0.15);
    color: #dc3545;
    border: 2px solid #ff6b6b;
}

/* Spam/mail failed message styling */
.contact-form-block .wpcf7-spam-blocked,
.contact-form-block .wpcf7-mail-sent-ng {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 2px solid #ffc107;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-form-inner {
        padding: 0;
    }
    
    .contact-form-colored-box {
        padding: 0;
    }
    
    .contact-form-content {
        gap: 3rem;
    }
    
    .contact-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .contact-form-block {
        padding: 2rem 0;
    }
    
    .contact-form-inner {
        padding: 0;
    }
    
    .contact-form-colored-box {
        border-radius: 20px;
        padding: 0;
    }
    
    .contact-form-container {
        padding: 0;
    }
    
    .contact-form-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
        align-items: stretch;
    }
    
    .contact-text {
        padding-right: 0;
        align-self: flex-start;
    }
    
    .contact-small-heading {
        font-size: 1.75rem;
    }
    
    .contact-main-heading {
        font-size: 1.75rem;
    }
    
    .contact-description,
    .contact-subtext {
        font-size: 1.125rem;
    }
    
    .contact-address-content {
        font-size: 1rem;
    }
    
    .form-control,
    .contact-form-block .wpcf7-form-control {
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
    }
    
    .submit-button,
    .contact-form-block .wpcf7-submit {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        width: auto;
        min-width: 150px;
    }
    
    /* Hide shapes on mobile */
    .decorative-shapes {
        display: none;
    }
}

/* ==========================================================================
   Logo Carousel Block
   ========================================================================== */

.logo-carousel-block {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.logo-carousel-block.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Container */
.logo-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    
}

/* Heading */
.logo-carousel-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 3rem;
    text-align: left;
}

/* Carousel Wrapper */
.logo-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -3rem;
    padding: 0 3rem;
}

/* Carousel Track */
.logo-carousel-track {
    display: flex;
    width: fit-content;
}

/* Logo Items Container */
.logo-carousel-items {
    display: grid;
    grid-template-columns: repeat(var(--logos-per-view, 5), 1fr);
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
}

/* For autoplay mode, we need fixed width items */
.logo-carousel-wrapper[data-autoplay="true"] .logo-carousel-items {
    display: flex;
    width: max-content;
    gap: 4rem;
}

.logo-carousel-wrapper[data-autoplay="true"] .logo-item {
    width: calc((100vw - 6rem) / var(--logos-per-view, 5) - 4rem);
    max-width: 250px;
}

/* Individual Logo Item */
.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-item a:hover {
    transform: scale(1.05);
}

/* Client Logo */
.client-logo {
    /*max-height: 80px; */
    width: auto;
    /* max-width: 200px; */
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Grayscale Effect */
.grayscale-effect .client-logo {
    filter: grayscale(100%);
    opacity: 0.7;
}

.grayscale-effect .logo-item:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Gradient Overlays */
.carousel-gradient-left,
.carousel-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 1;
}

.carousel-gradient-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-color, #FFFFFF) 0%, transparent 100%);
}

.carousel-gradient-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-color, #FFFFFF) 0%, transparent 100%);
}

/* Autoplay Animation */
.logo-carousel-wrapper[data-autoplay="true"] .logo-carousel-track {
    animation: scroll-logos var(--duration, 30s) linear infinite;
}

.logo-carousel-wrapper[data-pause="true"]:hover .logo-carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Manual Navigation */
.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--heading-color);
    background: transparent;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--heading-color);
    color: white;
}

.carousel-prev svg,
.carousel-next svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .logo-carousel-container {
        padding: 0 2rem;
    }
    
    .logo-carousel-wrapper {
        margin: 0 -2rem;
        padding: 0 2rem;
        --logos-per-view: 4 !important;
    }
    
    .logo-carousel-items {
        gap: 2rem;
    }
    
    .logo-carousel-wrapper[data-autoplay="true"] .logo-item {
        width: calc((100vw - 4rem) / 4 - 3rem);
    }
    
    .client-logo {
        max-height: 60px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .logo-carousel-block {
        padding: 3rem 0;
    }
    
    .logo-carousel-container {
        padding: 0 1.5rem;
    }
    
    .logo-carousel-wrapper {
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
        --logos-per-view: 2 !important;
    }
    
    .logo-carousel-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .logo-carousel-items {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .logo-carousel-wrapper[data-autoplay="true"] .logo-item {
        width: calc((100vw - 3rem) / 2 - 1.5rem);
    }
    
    .client-logo {
        max-height: 50px;
        max-width: 120px;
    }
    
    .carousel-gradient-left,
    .carousel-gradient-right {
        width: 50px;
    }
}


/* ==========================================================================
   Services Carousel 3D - Portal Dimensions Concept (Fixed Heights)
   ========================================================================== */

.services-carousel-3d {
    position: relative;
    width: 100%;
    height: 700px; /* Fixed height instead of 100vh */
    max-height: 80vh; /* Prevent from being too tall */
    background: #000;
    overflow: hidden;
    cursor: crosshair;
}

/* Cosmic Background */
.services-carousel-3d::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(120, 50, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 50, 120, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at center, #1a0033 0%, #000 60%);
    animation: cosmic-drift 30s ease-in-out infinite;
}

@keyframes cosmic-drift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

/* Dimensional Space Container */
.carousel-3d-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Portal Ring Container */
.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Individual Portal Card */
.service-3d-card {
    position: absolute;
    width: 280px;
    height: 280px;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: opacity 0.8s ease;
    opacity: 0.6;
	--float-y: 0px;
    --float-x: 0px;
}

.service-3d-card.active {
    opacity: 1;
}

/* Portal Container */
.portal-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

/* Portal Frame - The Swirling Vortex */
.portal-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.8) 70%);
    box-shadow: 
        0 0 50px rgba(120, 50, 255, 0.6),
        inset 0 0 50px rgba(255, 50, 120, 0.4);
}

/* Vortex Swirl Effect */
.portal-vortex {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(120, 50, 255, 0.3),
        rgba(255, 50, 120, 0.5),
        rgba(50, 255, 220, 0.3),
        transparent
    );
    animation: vortex-spin 4s linear infinite;
    filter: blur(1px);
    mix-blend-mode: screen;
}

.service-3d-card.active .portal-vortex {
    animation-duration: 2s;
}

@keyframes vortex-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Portal Edge Rings */
.portal-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(120, 50, 255, 0.4);
    box-shadow: 
        0 0 15px currentColor,
        inset 0 0 15px currentColor;
}

.portal-ring:nth-child(2) {
    transform: scale(1.05);
    animation: ring-pulse 3s ease-in-out infinite;
    opacity: 0.6;
}

.portal-ring:nth-child(3) {
    transform: scale(1.1);
    animation: ring-pulse 3s ease-in-out infinite 1s;
    opacity: 0.3;
}

.portal-ring:nth-child(4) {
    transform: scale(1.15);
    animation: ring-pulse 3s ease-in-out infinite 2s;
    opacity: 0.2;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Portal Inner Dimension */
.portal-dimension {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-radius: 50%;
    overflow: hidden;
    transform: translateZ(-50px);
}

/* Parallax Layers Inside Portal */
.dimension-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.dimension-layer-1 {
    transform: translateZ(-20px) scale(1.1);
    opacity: 0.9;
}

.dimension-layer-2 {
    transform: translateZ(-60px) scale(1.2);
    opacity: 0.6;
}

.dimension-layer-3 {
    transform: translateZ(-100px) scale(1.4);
    opacity: 0.3;
}

/* Video or Image Background */
.portal-video {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    object-fit: cover;
    filter: hue-rotate(20deg) brightness(0.7) contrast(1.2);
    mix-blend-mode: screen;
}

/* Portal Energy Particles */
.portal-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

.energy-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(0.5px);
}

/* Service Content Below Portal */
.portal-content {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    transition: all 0.5s ease;
    width: 250px;
    padding: 0 1rem;
}

.service-3d-card.active .portal-content {
    bottom: -90px;
}

/* Service Title */
.portal-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    text-shadow: 
        0 0 10px rgba(120, 50, 255, 0.8),
        0 0 20px rgba(120, 50, 255, 0.4);
}

/* Service Description */
.portal-description {
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.3;
    max-width: 200px;
    margin: 0 auto;
}

/* Portal Activation Effect */
.service-3d-card.active .portal-frame {
    box-shadow: 
        0 0 80px rgba(120, 50, 255, 1),
        inset 0 0 60px rgba(255, 50, 120, 0.6);
}

.service-3d-card.active .portal-container {
    transform: scale(1.05) translateZ(20px);
}

/* Portal Hover Effect */
.service-3d-card.hovering .portal-frame {
    box-shadow: 
        0 0 60px rgba(120, 50, 255, 0.8),
        inset 0 0 40px rgba(255, 50, 120, 0.5);
}

/* Light Beams */
.portal-beams {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-3d-card.active .portal-beams {
    opacity: 0.6;
}

.light-beam {
    position: absolute;
    width: 1px;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    top: 50%;
    left: 50%;
    transform-origin: top center;
}

.light-beam:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.light-beam:nth-child(2) { transform: translateX(-50%) rotate(45deg); }
.light-beam:nth-child(3) { transform: translateX(-50%) rotate(90deg); }
.light-beam:nth-child(4) { transform: translateX(-50%) rotate(135deg); }
.light-beam:nth-child(5) { transform: translateX(-50%) rotate(180deg); }
.light-beam:nth-child(6) { transform: translateX(-50%) rotate(225deg); }
.light-beam:nth-child(7) { transform: translateX(-50%) rotate(270deg); }
.light-beam:nth-child(8) { transform: translateX(-50%) rotate(315deg); }

/* Navigation */
.carousel-3d-navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(120, 50, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-dot::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(120, 50, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.carousel-dot.active::after {
    transform: translate(-50%, -50%) scale(1);
}

.carousel-dot.active {
    border-color: rgba(255, 50, 120, 0.8);
    box-shadow: 0 0 10px rgba(255, 50, 120, 0.6);
}

/* Cosmic Dust Particles */
.cosmic-dust {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    animation: dust-float 20s linear infinite;
}

@keyframes dust-float {
    0% {
        transform: translateY(100%) translateX(-50px);
        opacity: 0;
    }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% {
        transform: translateY(-100%) translateX(50px);
        opacity: 0;
    }
}

/* Empty State */
.carousel-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.carousel-empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(120, 50, 255, 0.8);
}

.carousel-empty-state p {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Portal Expansion Animation */
@keyframes portal-expansion {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.service-3d-card.expanding .portal-container {
    animation: portal-expansion 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-carousel-3d {
        height: 600px;
    }
    
    .service-3d-card {
        width: 240px;
        height: 240px;
    }
    
    .portal-content {
        bottom: -70px;
        width: 220px;
    }
    
    .portal-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .services-carousel-3d {
        height: 550px;
    }
    
    .service-3d-card {
        width: 200px;
        height: 200px;
    }
    
    .portal-content {
        bottom: -60px;
        width: 180px;
    }
    
    .portal-title {
        font-size: 1rem;
    }
    
    .portal-description {
        font-size: 0.7rem;
    }
    
    .cosmic-dust {
        display: none; /* Hide particles on mobile for performance */
    }
}

@media (max-width: 480px) {
    .services-carousel-3d {
        height: 500px;
        min-height: 450px;
    }
    
    .service-3d-card {
        width: 160px;
        height: 160px;
    }
    
    .portal-content {
        bottom: -50px;
    }
    
    .carousel-3d-navigation {
        bottom: 1rem;
    }
}



