/* ==========================================
   GOOGLE FONT RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#050816;
    color:#fff;
    overflow-x:hidden;
    line-height:1.6;
    position:relative;
}

/* ==========================================
   VARIABLES
========================================== */

:root{

    --bg:#050816;
    --bg-secondary:#0b1226;
    --card:#111827;
    --card-hover:#18233f;

    --primary:#3b82f6;
    --primary-light:#60a5fa;

    --white:#ffffff;

    --text:#ffffff;
    --text-secondary:#94a3b8;

    --border:rgba(255,255,255,.08);

    --shadow:
    0 15px 40px rgba(0,0,0,.35);

    --glow:
    0 0 20px rgba(59,130,246,.35);

}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#070d1d;
}

::-webkit-scrollbar-thumb{
    background:#1d4ed8;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#3b82f6;
}

/* ==========================================
   BACKGROUND GRID
========================================== */

body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-5;

    background-image:
    linear-gradient(
    rgba(255,255,255,.025) 1px,
    transparent 1px),

    linear-gradient(
    90deg,
    rgba(255,255,255,.025) 1px,
    transparent 1px);

    background-size:50px 50px;
}

/* ==========================================
   CURSOR GLOW
========================================== */

.cursor-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999; /* Keeps trail visible above cards but below text selections */
}

/* Individual trail clone instances */
.cursor-trail-node {
    position: absolute;
    /* Dropped from 36px down to a precise 24px footprint */
    width: 24px;  
    height: 24px;
    
    /* Centered perfectly by dividing the new 24px size by 2 */
    margin-top: -12px;  
    margin-left: -12px;
    border-radius: 50%;
    
    background: #60a5fa; 
    
    /* Thinned out the black outline to 2px so the core stays visible */
    border: 2px solid #0f172a; 
    
    /* Tightened the comic offset shadows to match the micro dimensions */
    box-shadow: 2px 2px 0 #2563eb, 4px 4px 0 #0f172a;
    
    pointer-events: none;
    will-change: transform, opacity;
    
    /* Stays ultra-short and smooth */
    animation: cartoonSmoothPop 0.18s ease-out forwards;
}

@keyframes cartoonSmoothPop {
    0% {
        /* Starts completely invisible */
        transform: translate3d(0, 0, 0) scale(calc(var(--flick-scale, 1) * 0.3)) rotate(var(--random-rot, 0deg));
        opacity: 0;
    }
    20% {
        /* CHANGED: Maxes out at 0.75 opacity instead of 1 for a subtle transparent look */
        transform: translate3d(0, 0, 0) scale(var(--flick-scale, 1)) rotate(var(--random-rot, 0deg));
        opacity: 0.75; 
    }
    100% {
        /* Fades completely out back to 0 */
        transform: translate3d(0, 0, 0) scale(0.05) rotate(calc(var(--random-rot, 0deg) + 45deg));
        opacity: 0;
    }
}

/* ==========================================
   BACKGROUND BLURS
========================================== */

/* ==========================================
   CENTERED DUAL-TONE NEON GLOW BACKDROP
========================================== */
/* Shared layout values for both glow circles */
.blur-1, .blur-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1; /* Keeps them safely underneath your 3D canvas */
}

/* Outer Soft Blue Backdrop Aura */
.blur-1 {
    background: var(--primary); 
    width: 720px; 
    height: 720px;
    filter: blur(140px);
    opacity: 0.1;
}

/* Inner Vibrant Purple Core Accent */
.blur-2 {
    background: #0d29ca; /* Premium studio purple */
    width: 620px;        /* Made slightly smaller to look like a layered light core */
    height: 620px;
    filter: blur(110px); /* Slightly sharper blur for depth */
    opacity: 0.15;
}

/* ==========================================
   SECTION SPACING
========================================== */

section{
    padding:100px 8%;
}

.section-header{
    text-align:center;
    margin-bottom:70px;
}

.section-header span{

    color:var(--primary);

    font-size:.9rem;

    letter-spacing:3px;

    font-weight:600;
}

.section-header h2{

    font-size:3rem;

    margin-top:10px;

    margin-bottom:15px;
}

.section-header p{

    color:var(--text-secondary);

    max-width:700px;

    margin:auto;
}

/* ==========================================
   BUTTONS
========================================== */

.primary-btn,
.secondary-btn,
button{

    border:none;
    outline:none;

    cursor:pointer;

    font-family:inherit;

    transition:.35s ease;

    text-decoration:none;
}

.primary-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:15px 32px;

    border-radius:14px;

    background:linear-gradient(
    135deg,
    #2563eb,
    #3b82f6);

    color:#fff;

    font-weight:600;

    box-shadow:var(--glow);
}

.primary-btn:hover{

    transform:translateY(-4px);

    box-shadow:
    0 0 30px rgba(59,130,246,.5);
}

.secondary-btn{

    padding:15px 32px;

    border-radius:14px;

    border:1px solid var(--border);

    color:#fff;

    background:
    rgba(255,255,255,.04);
}

.secondary-btn:hover{

    background:
    rgba(255,255,255,.08);

    transform:translateY(-4px);
}

/* ==========================================
   HEADER
========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8%; 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(4, 6, 16, 0.85); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;

    /* Smooth Entrance Reveal on Page Load */
    animation: headerEntrance 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* --- ENTRANCE ANIMATION TIMELINE --- */
@keyframes headerEntrance {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

header.header {
    /* Your existing styles... */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari compatibility */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.logo{

    font-size:1.3rem;

    font-weight:700;

    color:#fff;
}

.navbar{

    display:flex;
    gap:40px;
}

.navbar a{

    text-decoration:none;

    color:#d8dee9;

    font-weight:500;

    position:relative;

    transition:.3s;
}

.navbar a:hover{
    color:#fff;
}

.navbar a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-8px;

    width:0%;

    height:2px;

    background:var(--primary);

    transition:.35s;
}

.navbar a:hover::after{
    width:100%;
}

.order-btn{

    padding:14px 28px;

    border-radius:14px;

    background:linear-gradient(
    135deg,
    #2563eb,
    #3b82f6);

    color:#fff;

    font-weight:600;

    box-shadow:
    0 0 15px rgba(59,130,246,.4);
}

.order-btn:hover{

    transform:translateY(-4px);

    box-shadow:
    0 0 30px rgba(59,130,246,.6);
}

.menu-toggle{

    display:none;

    font-size:1.8rem;

    cursor:pointer;
}

/* ==========================================
   HERO
========================================== */

.hero{

    min-height:100vh;

    display:grid;

    grid-template-columns:
    1.1fr .9fr;

    align-items:center;

    gap:70px;

    padding-top:140px;
}

/* LEFT */

.hero-content{
    max-width:700px;
}

.hero-tag{

    display:inline-block;

    padding:10px 18px;

    border-radius:50px;

    border:1px solid rgba(59,130,246,.3);

    background:
    rgba(59,130,246,.08);

    color:#60a5fa;

    margin-bottom:25px;

    font-size:.85rem;

    letter-spacing:2px;

    font-weight:600;
}

.hero-content h1{

    font-size:4.5rem;

    line-height:1.1;

    margin-bottom:25px;

    font-weight:800;
}

.changing-text{

    display:inline-block;

    color:var(--primary);

    text-shadow:
    0 0 20px rgba(59,130,246,.4);
}

.hero-content p{

    color:var(--text-secondary);

    font-size:1.1rem;

    margin-bottom:35px;

    max-width:620px;
}

.hero-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;
}

/* RIGHT */

.hero-image{

    display:flex;

    justify-content:center;

    align-items:center;
}

.floating-card{

    position:relative;

    width:100%;

    max-width:520px;

    border-radius:28px;

    overflow:hidden;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

    box-shadow:
    0 20px 50px rgba(0,0,0,.4);

    animation:
    float 6s ease-in-out infinite;
}

.floating-card img{

    width:100%;

    height:100%;

    display:block;

    object-fit:cover;
}

.card-overlay{

    position:absolute;

    left:0;
    bottom:0;

    width:100%;

    padding:30px;

    background:
    linear-gradient(
    transparent,
    rgba(0,0,0,.85));
}

.card-overlay h3{

    font-size:1.5rem;

    margin-bottom:8px;
}

.card-overlay p{

    color:#cbd5e1;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes float{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-18px);
    }

    100%{
        transform:translateY(0px);
    }
}

.fade-up{

    opacity:0;

    transform:
    translateY(40px);

    transition:
    .8s ease;
}

.fade-up.show{

    opacity:1;

    transform:
    translateY(0);
}

/* ==========================================
   FEATURED PORTFOLIO SECTION STYLING
========================================== */

.featured-portfolio {
    position: relative !important;
    
    /* Clean Midnight Dark Blue and Pure Black Gradient */
    background: linear-gradient(135deg, #020612 0%, #081426 50%, #000000 100%) !important;
    
    padding: 100px 4% 120px;
    overflow: hidden;
}

/* --- ANIMATED HEADER & TAG CONFIGURATION --- */
.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Upgraded Animated Glassmorphic Tag */
.portfolio-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff !important;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
    margin-bottom: 18px; /* Clean spacing above the H2 title */
    animation: portfolioTagPulse 3s ease-in-out infinite;
    will-change: border-color, box-shadow;
}

@keyframes portfolioTagPulse {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
    }
    50% {
        border-color: rgba(124, 58, 237, 0.6);
        box-shadow: 0 0 22px rgba(124, 58, 237, 0.35);
        color: #cbd5e1;
    }
}

.portfolio-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.portfolio-header p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

/* --- SCROLLING TRACK MECHANICS --- */
.portfolio-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1512px;
    margin: 0 auto;
}

.scroll-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 5px 30px;
    background: transparent !important; /* Safety layer ensuring no solid color blocks the gradient */
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-track {
    display: flex;
}

.scroll-group {
    display: flex;
    gap: 30px;
}

/* --- PORTFOLIO CARD & HOVER ANIMATIONS --- */
.portfolio-card {
    position: relative; /* Required anchor point for the top edge animated line */
    min-width: 340px;
    background: rgba(13, 13, 17, 0.65); /* Translucent plate to let the background gradient breathe through */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, border-color, box-shadow;
}

/* Animation Element: Top Edge Expanding Border Line */
.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0%; /* Hidden at center by default */
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent);
    transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 5;
}

.portfolio-card:hover {
    transform: translateY(-8px); /* Controlled vertical lift */
    background: rgba(17, 17, 22, 0.85);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(59, 130, 246, 0.15);
}

/* Expand the top line instantly on card hover */
.portfolio-card:hover::before {
    width: 100%;
}

.card-media {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.portfolio-card:hover .card-media img {
    transform: scale(1.05); /* Cinematic inner thumbnail zoom */
}

.portfolio-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    padding: 25px 25px 10px;
    margin: 0;
    transition: color 0.2s ease;
}

.portfolio-card:hover h3 {
    color: #a5b4fc; /* Active text color accent response */
}

.portfolio-card p {
    color: #94a3b8;
    padding: 0 25px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* --- Internal Card Button Styling --- */
.portfolio-card button {
    margin: 20px 25px 25px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.portfolio-card button:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* --- SCROLLING NAVIGATION ARROWS --- */
.portfolio-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(13, 13, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.arrow-left { left: -25px; }
.arrow-right { right: -25px; }

.portfolio-arrow:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

/* Hide navigation arrows on small screens to prioritize drag/swipe flow */
@media (max-width: 768px) {
    .portfolio-arrow { display: none; }
}

/* ==========================================
   PORTFOLIO FOOTER VIEW MORE BUTTON (COSMIC STYLE)
========================================== */

.portfolio-footer {
    text-align: center;
    margin-top: 50px;
}

.portfolio-view-more {
    position: relative;
    display: inline-block;
    padding: 15px 42px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2563eb 0%, #3a8eed 100%);
    background-size: 200% auto;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Pure CSS moving light sheen reflection effect overlay */
.portfolio-view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    z-index: 2;
}

.portfolio-view-more:hover {
    transform: translateY(-3px) scale(1.02);
    background-position: right center; /* Shifts the core colors smoothly */
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
}

/* Fires a fast light reflection swipe cleanly across the face of the button on hover */
.portfolio-view-more:hover::before {
    left: 100%;
    transition: left 0.5s ease-in-out;
}

.portfolio-view-more:active {
    transform: translateY(-1px) scale(0.99);
}

/* ==========================================
   COMPLETE PRODUCTION EXPERTISE SECTION 
   (All-in-One Block + Fast Top Edge Line Hover)
========================================== */

.services {
    position: relative;
    padding: 120px 8% 100px;
    background: #050816;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch;
}

/* Base Card Styling */
.service-card {
    background: rgba(13, 18, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 50px 35px 45px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1); /* Fast response */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* --- Upper Edge Line Animation Base --- */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0%; /* Starts hidden at the center */
    height: 2px;
    transform: translateX(-50%);
    transition: width 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

/* Upper Edge Line Hover Expand State */
.service-card:hover::before {
    width: 100%; /* Expands across the entire top edge instantly */
}

/* --- Brand Customization for Top Edge Lines --- */
.roblox-card::before {
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    box-shadow: 0 0 10px #2563eb;
}
.ps1-card::before {
    background: linear-gradient(90deg, transparent, #db2777, transparent);
    box-shadow: 0 0 10px #db2777;
}
.minecraft-card::before {
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
    box-shadow: 0 0 10px #72fa60;
}

/* Card Hover Background Shift */
.service-card:hover {
    background: rgba(17, 24, 42, 0.7);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Logo Sizing & Wrapper */
.service-logo-wrapper {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
}

.service-card-img {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), filter 0.2s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    will-change: transform, filter;
}

/* Accelerated 2.2s Idle Floating Animations */
.roblox-card .service-card-img {
    animation: floatingLogo 2.2s ease-in-out infinite;
}
.ps1-card .service-card-img {
    animation: floatingLogo 2.2s ease-in-out infinite;
    animation-delay: -0.73s;
}
.minecraft-card .service-card-img {
    animation: floatingLogo 2.2s ease-in-out infinite;
    animation-delay: -1.46s;
}

@keyframes floatingLogo {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(0.5deg); }
}

/* Custom Brand Neon Glow Effects on Hover */
.roblox-card:hover .service-card-img {
    transform: scale(1.06) translateY(-4px);
    filter: drop-shadow(0 0 25px rgba(37, 99, 235, 0.65));
}

.ps1-card:hover .service-card-img {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 0 25px rgba(219, 39, 119, 0.5));
}

.minecraft-card:hover .service-card-img {
    transform: scale(1.06) translateY(-4px);
    filter: drop-shadow(0 0 25px rgba(22, 163, 74, 0.6));
}

/* Special Rim Border for Minecraft Card */
.minecraft-card {
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.minecraft-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(59, 130, 246, 0.05);
}

/* Typography */
.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.service-card p {
    color: #94a3b8;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 35px;
    flex-grow: 1;
    max-width: 320px;
}

/* View Details Action Links */
.view-details-wrapper {
    margin-top: auto;
    width: 100%;
}

.view-details-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
    transition: color 0.2s ease;
}

.view-details-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #ffffff;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

.view-details-link::before {
    content: '';
    position: absolute;
    left: 10%;
    bottom: -4px;
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.15s;
    transform: scaleX(0.7);
}

/* Hover Actions for Link */
.service-card:hover .view-details-link {
    color: #60a5fa;
}

.service-card:hover .view-details-link::after {
    background: #60a5fa;
    transform: scaleX(1.1);
}

.service-card:hover .view-details-link::before {
    background: rgba(96, 165, 250, 0.6);
    transform: scaleX(0.95) translateY(1px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 6%;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .service-card {
        padding: 40px 25px 35px;
    }
}

/* ==========================================
   TESTIMONIALS
========================================== */

.testimonials{

    position:relative;
}

.testimonial-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:30px;
}

.testimonial-card{

    background:
    rgba(255,255,255,.03);

    border:
    1px solid var(--border);

    border-radius:24px;

    padding:35px;

    transition:.35s;
}

.testimonial-card:hover{

    transform:translateY(-8px);

    border-color:
    rgba(59,130,246,.3);

    background:
    rgba(255,255,255,.05);
}

.stars{

    font-size:1.2rem;

    color:#60a5fa;

    margin-bottom:18px;

    letter-spacing:3px;
}

.testimonial-card h3{

    margin-bottom:12px;
}

.testimonial-card p{

    color:var(--text-secondary);
}

/* ==========================================
   STATS SECTION
========================================== */

.stats{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;
}

.stat-card{

    text-align:center;

    padding:50px 30px;

    border-radius:24px;

    background:
    rgba(255,255,255,.03);

    border:
    1px solid var(--border);

    transition:.3s;
}

.stat-card:hover{

    transform:translateY(-8px);

    border-color:
    rgba(59,130,246,.25);
}

.stat-card h2{

    font-size:3rem;

    color:var(--primary);

    margin-bottom:10px;
}

.stat-card p{

    color:var(--text-secondary);

    font-size:1rem;
}

/* ==========================================
   CTA BANNER
========================================== */

.cta-banner{

    position:relative;

    border-radius:35px;

    overflow:hidden;

    padding:0;

    min-height:550px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;
}

.cta-banner img{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
}

.cta-banner::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
    rgba(5,8,22,.45),
    rgba(5,8,22,.88));
}

.cta-content{

    position:relative;

    z-index:2;

    max-width:850px;

    padding:60px;
}

.cta-content span{

    display:inline-block;

    margin-bottom:18px;

    letter-spacing:3px;

    font-size:.9rem;

    color:#60a5fa;

    font-weight:600;
}

.cta-content h2{

    font-size:4rem;

    line-height:1.1;

    margin-bottom:20px;
}

.cta-content p{

    font-size:1.15rem;

    color:#cbd5e1;

    margin-bottom:35px;
}

/* ==========================================
   SECTION DECORATIONS
========================================== */

.services::after,
.testimonials::after{

    content:"";

    position:absolute;

    width:250px;
    height:250px;

    border-radius:50%;

    background:
    radial-gradient(
    rgba(59,130,246,.12),
    transparent);

    filter:blur(60px);

    z-index:-1;
}

.services::after{

    right:-100px;
    top:150px;
}

.testimonials::after{

    left:-100px;
    bottom:0;
}

/* ==========================================
   PACKAGES SECTION
========================================== */

/* ==========================================
   UPGRADED PREMIUM PACKAGES SECTION
========================================== */

.packages {
    position: relative;
    padding: 120px 8% 120px;
    background: linear-gradient(180deg, #050816 0%, #03050f 100%);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch;
}

/* Base Card Upgrade */
.package-card {
    background: rgba(11, 18, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 32px;
    padding: 50px 35px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d; /* Enhances your existing JS tilt script */
}

/* Image Wrappers & Float Animations */
.package-image-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
}

.package-tier-image {
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    animation: floatingAsset 3s ease-in-out infinite;
}

@keyframes floatingAsset {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

/* Individual Tier Themes */
/* 1. Coal Tier */
.coal-tier {
    border-color: rgba(148, 163, 184, 0.1);
}
.coal-tier:hover {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(148, 163, 184, 0.08);
}
.coal-tier .package-tier-image { animation-delay: 0s; }

/* 2. Iron Tier (Featured) */
.iron-tier {
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(145deg, rgba(13, 24, 54, 0.55), rgba(7, 12, 32, 0.4));
}
.iron-tier .package-tier-image { animation-delay: -1s; }

/* 3. Diamond Tier */
.diamond-tier {
    border-color: rgba(6, 182, 212, 0.15);
}
.diamond-tier:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(6, 182, 212, 0.25);
}
.diamond-tier .package-tier-image { animation-delay: -2s; }

/* Typography & Hierarchy */
.package-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.package-subtitle {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 35px;
    font-weight: 500;
}

/* Feature List Upgrade */
.package-features {
    list-style: none;
    width: 100%;
    margin-bottom: 35px;
    text-align: left;
    padding-left: 10px;
}

.package-features li {
    padding: 10px 0;
    color: #cbd5e1;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.package-features li:last-child {
    border-bottom: none;
}

.feature-check {
    font-weight: 700;
    font-size: 1.1rem;
    color: #60a5fa;
}

.diamond-tier .feature-check {
    color: #22d3ee;
}

/* Pricing Layout */
.package-price-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 30px;
    font-family: sans-serif;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 4px;
    margin-right: 2px;
}

.price-number {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -1px;
}

/* Badges Configuration */
.package-badge {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-badge {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

/* Featured / Most Popular Layout Override */
.featured {
    transform: scale(1.04);
    border: 2px solid #2563eb;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.2);
    z-index: 2;
}

.featured:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(37, 99, 235, 0.35);
}

.featured .popular-badge {
    top: -14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 6px 18px;
    font-size: 0.78rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    border: none;
}

/* Call To Action Buttons */
.package-action-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.package-card:hover .package-action-btn {
    background: #ffffff;
    color: #050816;
    border-color: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.featured .package-action-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.featured:hover .package-action-btn {
    background: #ffffff;
    color: #050816;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive Adaptive Viewports */
@media (max-width: 1200px) {
    .package-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        max-width: 480px;
    }
    .featured {
        transform: none;
    }
    .featured:hover {
        transform: translateY(-6px);
    }
}

/* ==========================================
   WORKFLOW / TIMELINE
========================================== */

.workflow{
    position:relative;
}

.timeline{

    max-width:900px;

    margin:auto;

    position:relative;
}

.timeline::before{

    content:"";

    position:absolute;

    left:35px;

    top:0;

    width:3px;

    height:100%;

    background:
    linear-gradient(
    #2563eb,
    #60a5fa);
}

.timeline-item{

    position:relative;

    padding-left:110px;

    margin-bottom:70px;
}

.timeline-item:last-child{
    margin-bottom:0;
}

.timeline-icon{

    position:absolute;

    left:0;
    top:0;

    width:70px;
    height:70px;

    border-radius:50%;

    display:flex;

    align-items:center;
    justify-content:center;

    font-weight:700;

    font-size:1.2rem;

    color:#fff;

    background:
    linear-gradient(
    135deg,
    #2563eb,
    #60a5fa);

    box-shadow:
    0 0 20px rgba(59,130,246,.35);
}

.timeline-item h3{

    font-size:1.4rem;

    margin-bottom:10px;
}

.timeline-item p{

    color:var(--text-secondary);
}

/* ==========================================
   FOOTER
========================================== */

.footer{

    background:#070d1d;

    border-top:
    1px solid rgba(255,255,255,.05);

    padding:
    80px 8% 30px;
}

.footer-grid{

    display:grid;

    grid-template-columns:
    2fr 1fr 1fr 1fr;

    gap:50px;

    margin-bottom:50px;
}

.footer h3{

    margin-bottom:20px;
}

.footer h4{

    margin-bottom:20px;

    color:#fff;
}

.footer p{

    color:var(--text-secondary);

    margin-bottom:10px;
}

.footer a{

    display:block;

    text-decoration:none;

    color:var(--text-secondary);

    margin-bottom:12px;

    transition:.3s;
}

.footer a:hover{

    color:#fff;

    transform:translateX(5px);
}

.footer-bottom{

    text-align:center;

    padding-top:30px;

    border-top:
    1px solid rgba(255,255,255,.05);

    color:var(--text-secondary);
}

/* ==========================================
   REVEAL ANIMATIONS
========================================== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   HOVER EFFECTS
========================================== */

.portfolio-card,
.service-card,
.package-card,
.testimonial-card,
.stat-card{

    will-change:
    transform;
}

/* ==========================================
   IMAGE OVERLAY SHINE
========================================== */

.portfolio-card::before,
.package-card::before{

    pointer-events:none;
}

.portfolio-card::after{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:80px;
    height:100%;

    background:
    linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.12),
    transparent);

    transition:.8s;
}

.portfolio-card:hover::after{
    left:130%;
}

/* ==========================================
   RESPONSIVE - LARGE TABLETS
========================================== */

@media (max-width:1200px){

    .hero{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-content{
        margin:auto;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-image{
        margin-top:40px;
    }

    .package-grid{
        grid-template-columns:1fr;
    }

    .featured{
        transform:none;
    }

    .services-grid{
        grid-template-columns:1fr 1fr;
    }

    .testimonial-grid{
        grid-template-columns:1fr 1fr;
    }

    .stats{
        grid-template-columns:1fr;
    }
}

/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width:992px){

    section{
        padding:80px 6%;
    }

    .navbar{
        display:none;
    }

    .order-btn{
        display:none;
    }

    .menu-toggle{
        display:block;
    }

    .hero-content h1{
        font-size:3.5rem;
    }

    .section-header h2{
        font-size:2.5rem;
    }

    .cta-content h2{
        font-size:3rem;
    }

    .footer-grid{
        grid-template-columns:
        1fr 1fr;
    }

    .services-grid,
    .testimonial-grid{
        grid-template-columns:1fr;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */

@media (max-width:768px){

    .hero{
        min-height:auto;
    }

    .hero-content h1{
        font-size:2.8rem;
    }

    .hero-content p{
        font-size:1rem;
    }

    .hero-buttons{
        flex-direction:column;
        width:100%;
    }

    .primary-btn,
    .secondary-btn{
        width:100%;
    }

    .portfolio-card{
        min-width:290px;
    }

    .section-header h2{
        font-size:2rem;
    }

    .cta-content{
        padding:40px 20px;
    }

    .cta-content h2{
        font-size:2.2rem;
    }

    .timeline::before{
        left:25px;
    }

    .timeline-icon{
        width:50px;
        height:50px;
    }

    .timeline-item{
        padding-left:80px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:35px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width:480px){

    .header{
        padding:15px 5%;
    }

    section{
        padding:70px 5%;
    }

    .hero-content h1{
        font-size:2.2rem;
    }

    .hero-tag{
        font-size:.75rem;
    }

    .service-card,
    .package-card,
    .testimonial-card{
        padding:25px;
    }

    .package-card h2{
        font-size:2.3rem;
    }

    .stat-card h2{
        font-size:2.5rem;
    }
}

/* ==========================================
   SELECTION COLOR
========================================== */

::selection{

    background:
    rgba(59,130,246,.35);

    color:#fff;
}

/* ==========================================
   FOCUS STATES
========================================== */

button:focus,
a:focus{

    outline:none;

    box-shadow:
    0 0 0 3px rgba(59,130,246,.25);
}

/* ==========================================
   BUTTON EDGE-BLENDING CAPTURE
========================================== */

/* This prepares all interactive elements to trap and clip the trail clones */
.primary-btn, .secondary-btn, .order-btn, .portfolio-card button, .service-card button, .package-card button {
    position: relative; /* Essential for absolute positioning context inside */
    overflow: hidden;   /* Clips the glowing clone perfectly to the button's shape */
}

/* The special blending duplicate inside the button */
.btn-blend-node {
    position: absolute;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    border-radius: 50%;
    
    /* Mix-blend-mode creates an organic, chemical reaction look with the button colors */
    background: radial-gradient(circle, rgba(96, 165, 250, 0.8) 0%, transparent 60%);
    mix-blend-mode: screen; 
    filter: blur(5px);
    
    pointer-events: none;
    will-change: transform, opacity;
    transform: scale(1);
    opacity: 1;
    
    transition: transform 0.5s ease-out, 
                opacity 0.5s ease-out;
}

/* ==========================================
   FLOATING SETTINGS PANEL & TOGGLE SWITCH
========================================== */
.trail-settings-panel {
    position: fixed;
    bottom: 24px;
    left: 24px; /* Changed from right: 24px to lock it to the left side */
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    font-family: sans-serif;
    user-select: none;
}

.toggle-label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* The Switch Container */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

/* Hide default HTML checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The Slider Background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

/* The Moving Knob */
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Checked States (Active/On) */
.toggle-switch input:checked + .slider {
    background-color: #2563eb; 
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* ==========================================
   HERO TEXT VERTICAL SLIDE (NO-CLIP VERSION)
========================================== */
/* ==========================================
   HERO TEXT VERTICAL SLIDE (AUTO-SIZING GRID)
========================================== */
.hero-content h1 {
    display: block;       
    line-height: 1.4;     
}

.slide-text-wrapper {
    display: inline-grid;  /* Automatically expands to fit the widest word perfectly! */
    grid-template-columns: 1fr;
    height: 1.4em;        
    line-height: 1.4em;
    overflow: hidden;     /* Keeps hidden words cleanly tucked away */
    vertical-align: top;  
    color: #60a5fa;       
}

.slide-text {
    grid-area: 1 / 1;      /* Stacks all words exactly on top of each other without absolute positioning */
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%); 
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
}

/* State: Active & Fully Visible */
.slide-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* State: Exiting upstairs into the ceiling */
.slide-text.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* ==========================================
   SHIFT HERO CONTENT FURTHER TO THE RIGHT
========================================== */
.hero-content {
    /* Increased from 40px to 80px to drag it further right */
    padding-left: 100px; 
    box-sizing: border-box;
    margin-top: -90px;
}

/* Responsive safety valve: drops back to normal on mobile screens */
@media (max-width: 768px) {
    .hero-content {
        padding-left: 0; 
    }
}

/* ==========================================
   HERO STATS SECTION STYLING
========================================== */
.hero-stats {
    background: #0b0f19; /* Slightly darker midnight blue to separate sections */
    padding: 60px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Glassmorphic Cards */
.stat-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3); /* Soft accent glow on hover */
}

/* Typography */
.stat-number {
    display: inline-block;
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    font-family: sans-serif;
    margin: 0;
}

.stat-plus {
    font-size: 32px;
    font-weight: 800;
    color: #60a5fa; /* Your theme bright blue accent */
    margin-left: 2px;
}

.stat-label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr; /* Stacked list on phones */
        gap: 16px;
    }
}

/* ==========================================
   STANDALONE STATS SECTION STYLING
========================================== */
.stats-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Section backgrounds: You can use transparent or a dark accent color */
    background: #0b0f19; 
    
    /* Padding controls the vertical height & spacing around the stats row */
    padding: 60px 0; 
    
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;

    margin-top: -100px; 
    
    position: relative;
    z-index: 5; /* Keeps the cards rendering nicely over any background blurs */
}

.stats-container {
    width: 100%;
    max-width: 1100px;         /* Keeps the columns perfectly grouped and neat */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 even columns grid */
    gap: 40px;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Minimalist borderless item layout */
.stat-card {
    background: none !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
}

/* Typography Styles */
.stat-number {
    display: inline-block;
    font-size: 46px; 
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    font-family: sans-serif;
    letter-spacing: -0.5px;
}

.stat-plus {
    font-size: 32px;
    font-weight: 800;
    color: #60a5fa; 
    margin-left: 2px;
}

.stat-label {
    color: #64748b; 
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Grid Adapters */
@media (max-width: 992px) {
    .stats-section {
        padding: 40px 0;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr); /* Clean 2x2 grid layout on tablets */
    }
}

@media (max-width: 520px) {
    .stats-container {
        grid-template-columns: 1fr; /* Stacks completely vertically on phone screen sizes */
        gap: 28px;
    }
}

/* ==========================================
   PORTFOLIO SECTION
========================================== */
.featured-portfolio {
    padding: 100px 0;
    background: #0b0f19;
    overflow: hidden;
    width: 100%;
}

/* Header — centered, larger */
.portfolio-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.portfolio-header.in-view {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    font-weight: 600;
    margin-bottom: 20px;
}

.portfolio-header h2 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.portfolio-header p {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* Scroll wrapper — arrows sit on sides */
.portfolio-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.scroll-container {
    flex: 1;
    overflow: hidden;
    padding: 30px 0;
    cursor: grab;
    user-select: none;
    min-width: 0;
}

.scroll-container:active {
    cursor: grabbing;
}

.scroll-track {
    display: flex;
    width: max-content;
}

.scroll-group {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 0 8px;
}

/* ==========================================
   PORTFOLIO ARROW BUTTONS
========================================== */
.portfolio-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background 0.25s, border-color 0.25s, transform 0.2s, opacity 0.25s;
    z-index: 10;
    line-height: 1;
    margin: 0 12px;
}

.portfolio-arrow:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.65);
    transform: scale(1.12);
}

.portfolio-arrow:active {
    transform: scale(0.93);
}

.portfolio-arrow:disabled {
    opacity: 0.18;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   PORTFOLIO CARDS
========================================== */
.portfolio-card {
    box-sizing: border-box;
    flex: 0 0 340px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 16px;
    will-change: transform, opacity, box-shadow;

    /* Entry animation state — JS adds card-visible */
    opacity: 0;
    transform: translateY(50px) scale(0.96);
}

.portfolio-card.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animated-in state */
.portfolio-card.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.08);
}

.card-media {
    width: 100%;
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #1f2937;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.65s ease;
}

.portfolio-card:hover .card-media img {
    transform: scale(1.07);
}

.portfolio-card h3 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.portfolio-card p {
    color: #60a5fa;
    font-size: 13px;
    margin: 0 0 16px 0;
    min-height: 38px;
}

.portfolio-card button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.portfolio-card button:hover {
    background: #ffffff;
    color: #0b0f19;
    transform: translateY(-2px);
}

/* ==========================================
   PORTFOLIO FOOTER BUTTON
========================================== */
.portfolio-footer {
    text-align: center;
    margin-top: 60px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.portfolio-footer.in-view {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px) {
    .portfolio-header h2 {
        font-size: 2.2rem;
    }

    .portfolio-header p {
        font-size: 1rem;
    }

    .portfolio-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 6px;
    }

    .portfolio-card {
        flex: 0 0 280px;
    }
}

/* ==========================================
   HERO 3D MODEL
========================================== */
.hero-model-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Large container room */
    height: 850px;    
    margin: 0 auto;

    left: -60px;
}

#heroCanvas {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    display: block;
}

.model-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.model-loader.hidden {
    opacity: 0;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(59, 130, 246, 0.15);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.model-loader p {
    color: #60a5fa;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .hero-model-wrapper {
        height: 360px;
        max-width: 100%;
    }
}

/* ==========================================
   CINEMATIC FLOATING PARTICLES CANVAS
========================================== */
.hero {
    position: relative; /* Keeps canvas locked inside the hero area */
}

#bgParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;          /* Places it safely behind text and your 3D canvas */
    pointer-events: none; /* CRITICAL: Allows mouse drags to pass right through to your 3D model! */
}

/* Ensure content blocks float perfectly over the canvas layer */
.hero-content,
.hero-image {
    position: relative;
    z-index: 1;
}

/* ==========================================
   CUSTOM TESTIMONIALS SECTION STYLING
========================================== */

.testimonials {
    position: relative;
    padding: 100px 4% 120px;
    background: radial-gradient(circle at 50% 40%, #111432 0%, #070919 60%, #04050f 100%);
    overflow: hidden;
}

/* --- ANIMATED HEADER TAG --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-tag-wrapper {
    margin-bottom: 18px;
}

.section-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
    animation: tagPulse 3s ease-in-out infinite;
    will-change: border-color, box-shadow;
}

@keyframes tagPulse {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
    }
    50% {
        border-color: rgba(124, 58, 237, 0.6);
        box-shadow: 0 0 22px rgba(124, 58, 237, 0.35);
        color: #cbd5e1;
    }
}

/* 5-Column Grid Layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 1620px; /* Increased from 1512px to make the container wider */
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

/* Base Card Panels */
.testimonial-card {
    background: rgba(13, 13, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 35px 20px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

/* Top Edge Hover Border Animation */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent);
    transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 5;
}

/* Card Hover Elevation */
.testimonial-card:hover {
    background: #111116;
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.testimonial-card:hover::before {
    width: 100%;
}

/* Glowing Avatar Dynamic Ring */
.avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease;
    will-change: transform, box-shadow;
}

.testimonial-card:hover .avatar-wrapper {
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.7);
}

.client-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a24;
    display: block;
    will-change: transform;
}

/* ===================================================
   NEW: HIGH-ENERGY STAGGERED FLOATING SYSTEM 
=================================================== */
.testimonials-grid .testimonial-card:nth-child(1) .client-avatar {
    animation: floatAvatar 2.4s ease-in-out infinite;
    animation-delay: 0s;
}
.testimonials-grid .testimonial-card:nth-child(2) .client-avatar {
    animation: floatAvatar 2.4s ease-in-out infinite;
    animation-delay: -0.48s; /* Perfectly offset phase */
}
.testimonials-grid .testimonial-card:nth-child(3) .client-avatar {
    animation: floatAvatar 2.4s ease-in-out infinite;
    animation-delay: -0.96s;
}
.testimonials-grid .testimonial-card:nth-child(4) .client-avatar {
    animation: floatAvatar 2.4s ease-in-out infinite;
    animation-delay: -1.44s;
}
.testimonials-grid .testimonial-card:nth-child(5) .client-avatar {
    animation: floatAvatar 2.4s ease-in-out infinite;
    animation-delay: -1.92s;
}

@keyframes floatAvatar {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); } /* Smooth micro-zoom float */
}

/* Typography Hierarchy */
.client-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    word-break: break-word;
}

.client-company {
    font-size: 0.88rem;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 12px;
    display: inline-block;
}

/* Star Rating Micro-Bounce Hover */
.star-rating {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.testimonial-card:hover .star-rating {
    transform: scale(1.12);
}

/* Review Text Content */
.review-text {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    font-weight: 400;
    transition: color 0.2s ease;
}

.testimonial-card:hover .review-text {
    color: #cbd5e1;
}

/* --- HERO COSMIC ACTION BUTTON --- */
.testimonials-actions {
    text-align: center;
    margin-top: 55px;
    width: 100%;
}

.view-more-btn {
    position: relative;
    display: inline-block;
    padding: 15px 42px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    background-size: 200% auto;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.view-more-btn span {
    position: relative;
    z-index: 3;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: none;
    z-index: 2;
}

.view-more-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background-position: right center;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
}

.view-more-btn:hover::before {
    left: 100%;
    transition: left 0.45s ease-in-out;
}

.view-more-btn:active {
    transform: translateY(-1px) scale(0.99);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1400px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 960px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .testimonials {
        padding: 70px 5% 80px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .view-more-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

html {
    scroll-behavior: auto !important; /* Forces the browser to stop fighting Lenis */
}

/* Accessibility Best Practice: Respects users who turn off animations in their OS */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Fixed UI Box */
.scroll-control-panel {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(13, 13, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toggle-label {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    user-select: none;
}

/* Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50%;
}

/* Checked Blue State */
input:checked + .slider {
    background-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* ==========================================
   CENTERED IMAGE OVERLAY CTA SECTION
========================================== */
.centered-showcase-section {
    position: relative;
    padding: 140px 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    overflow: hidden;
    background: #050816; /* Fills outer container */
}

/* Background image card frame centered */
.showcase-backdrop-wrapper {
    position: absolute;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: 580px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(59, 130, 246, 0.1);
    z-index: 1;
}

.showcase-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.7) contrast(1.05);
}

/* Dimming gradient mask so that text in front stays perfectly legible */
.showcase-dimming-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 8, 22, 0.4) 0%, rgba(5, 8, 22, 0.85) 90%);
    pointer-events: none;
}

/* Foreground content stack layered directly over image center */
.showcase-content-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Line 1: Blue upper text */
.showcase-blue-tag {
    color: #60a5fa; /* Your site's primary-light color variable */
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: inline-block;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

/* Line 2: Main Title (Bold) */
.showcase-bold-title {
    font-size: 4rem;
    font-weight: 800; /* Ultra ultra-bold font weight */
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* Line 3: Normal Grey Text below */
.showcase-grey-desc {
    color: #94a3b8; /* Your site's text-secondary variable */
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Line 4: Interactive CTA Button */
.showcase-action-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.showcase-action-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.65);
}

/* --- ENTRANCE ANIMATION LOGIC --- */
.scale-up-element {
    opacity: 0;
    transform: scale(0.92);
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

.text-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

/* Intersection observer trigger states */
.centered-showcase-section.activated .scale-up-element {
    opacity: 1;
    transform: scale(1);
}

.centered-showcase-section.activated .text-fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering the text blocks slightly */
.centered-showcase-section.activated .text-fade-up:nth-child(1) { transition-delay: 0.2s; }
.centered-showcase-section.activated .text-fade-up:nth-child(2) { transition-delay: 0.3s; }
.centered-showcase-section.activated .text-fade-up:nth-child(3) { transition-delay: 0.4s; }
.centered-showcase-section.activated .text-fade-up:nth-child(4) { transition-delay: 0.5s; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .showcase-bold-title {
        font-size: 2.8rem;
    }
    .showcase-backdrop-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 580px) {
    .showcase-bold-title {
        font-size: 2.2rem;
    }
    .showcase-grey-desc {
        font-size: 1rem;
    }
    .centered-showcase-section {
        padding: 80px 4%;
    }
}

/* 2. Add these styles to your styles.css file to prepare layers for the curtain reveal */
.centered-showcase-section {
    position: relative;
    z-index: 1;
}

#packages-section {
    position: relative;
    z-index: 2;
    background: #0b0c10; /* Match your studio theme background color */
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.6);
}


/* ==========================================
   UPGRADED WORKFLOW TIMELINE SYSTEM
========================================== */

.workflow {
    position: relative;
    padding: 120px 8% 120px;
    background: linear-gradient(180deg, #03050f 0%, #050816 100%);
    overflow: hidden;
}

/* Central Neon Track Engine */
.timeline {
    max-width: 1000px;
    margin: 50px auto 0;
    position: relative;
}

/* Glowing Neon Streamer Line */
.timeline::before {
    content: "";
    position: absolute;
    left: 45px;
    top: 20px;
    width: 4px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, 
        #2563eb 0%, 
        #60a5fa 30%, 
        #a78bfa 60%, 
        #db2777 100%
    );
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4), 0 0 30px rgba(219, 39, 119, 0.2);
    border-radius: 10px;
}

/* Individual Row Anchor */
.timeline-item {
    position: relative;
    padding-left: 120px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Dual-Layer Animated Icons */
.timeline-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid #2563eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(59, 130, 246, 0.2);
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: #60a5fa;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.step-emoji {
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* Glassmorphic Description Cards */
.timeline-content-card {
    background: rgba(11, 18, 38, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 30px 35px;
    width: 100%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Micro-sheen reflection animation on content card */
.timeline-content-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.06), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.timeline-content-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-content-card p {
    color: #94a3b8;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0;
}

.timeline-content-card p strong {
    color: #60a5fa;
    font-weight: 600;
}

/* ==========================================
   INTERACTIVE HOVER STATES
========================================== */

.timeline-item:hover .timeline-icon {
    border-color: #60a5fa;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.5), inset 0 0 20px rgba(96, 165, 250, 0.3);
}

.timeline-item:hover .step-emoji {
    transform: scale(1.15) rotate(-5deg);
}

.timeline-item:hover .timeline-content-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.05);
}

.timeline-item:hover .timeline-content-card::before {
    left: 150%;
    transition: left 0.7s ease-in-out;
}

/* Alternate glow themes for special payment milestone steps */
.timeline-item:nth-child(4) .timeline-icon {
    border-color: #a78bfa;
}
.timeline-item:nth-child(4):hover .timeline-icon {
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.5);
}

/* ==========================================
   SCROLL REVEAL FUNCTIONAL DELAYS
========================================== */

/* Automatically hooks into your existing JavaScript reveal engine */
.timeline-item.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item.reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Dynamic Stagger Loops */
.timeline-item:nth-child(1) { transition-delay: 0.05s; }
.timeline-item:nth-child(2) { transition-delay: 0.10s; }
.timeline-item:nth-child(3) { transition-delay: 0.15s; }
.timeline-item:nth-child(4) { transition-delay: 0.20s; }
.timeline-item:nth-child(5) { transition-delay: 0.25s; }
.timeline-item:nth-child(6) { transition-delay: 0.30s; }

/* ==========================================
   RESPONSIVE LAYOUT CONSTRAINTS
========================================== */

@media (max-width: 768px) {
    .timeline::before {
        left: 25px;
    }
    .timeline-item {
        padding-left: 75px;
        margin-bottom: 40px;
    }
    .timeline-icon {
        width: 60px;
        height: 60px;
    }
    .step-num {
        font-size: 0.65rem;
    }
    .step-emoji {
        font-size: 1.2rem;
    }
    .timeline-content-card {
        padding: 22px 25px;
    }
    .timeline-content-card h3 {
        font-size: 1.25rem;
    }
    .timeline-item:hover .timeline-content-card {
        transform: translateX(4px);
    }
}

/* ==========================================
   ISOLATED PREMIUM FAQ STYLES
========================================== */
.faq-section {
    position: relative;
    padding: 100px 8% 120px;
    background: #050816;
    overflow: hidden;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-tag-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.faq-header p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

.faq-grid-wrapper {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Base Card State with Hidden Initial Visibility for Scroll Effect */
.faq-card {
    background: rgba(11, 18, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    
    /* Native CSS Slide-Up Animation Rules */
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1),
                background 0.3s, border-color 0.3s;
}

/* This class gets added automatically by our independent JS observer */
.faq-card.faq-show-ready {
    opacity: 1;
    transform: translateY(0);
}

/* Neon Top Glow Effect on Hover/Active */
.faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, transparent);
    box-shadow: 0 0 10px #3b82f6;
    transition: width 0.35s ease;
}

.faq-card:hover {
    background: rgba(17, 24, 42, 0.7);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.faq-card:hover::before,
.faq-card.faq-open::before {
    width: 100%;
}

/* Trigger Controls */
.faq-toggle-btn {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    gap: 15px;
}

.faq-title-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}

.faq-emoji-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-card:hover .faq-emoji-icon {
    transform: scale(1.2) rotate(6deg);
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.25s ease;
}

.faq-card:hover .faq-question-text,
.faq-card.faq-open .faq-question-text {
    color: #60a5fa;
}

/* Clean Morphing Plus-to-Minus Icon */
.faq-icon-plus {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon-plus::before,
.faq-icon-plus::after {
    content: '';
    position: absolute;
    background-color: #94a3b8;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s;
}

.faq-icon-plus::before { width: 14px; height: 2px; }
.faq-icon-plus::after { width: 2px; height: 14px; }

.faq-card:hover .faq-icon-plus::before,
.faq-card:hover .faq-icon-plus::after {
    background-color: #fff;
}

/* Interactive transformation states */
.faq-card.faq-open .faq-icon-plus::after {
    transform: rotate(90deg);
    opacity: 0;
}
.faq-card.faq-open .faq-icon-plus::before {
    background-color: #60a5fa;
    transform: rotate(180deg);
}

/* Advanced CSS Grid Height Animation (Zero Jitter/Lag) */
.faq-dropdown-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-card.faq-open .faq-dropdown-panel {
    grid-template-rows: 1fr;
}

.faq-inner-body {
    overflow: hidden;
}

.faq-inner-body p {
    padding: 0 28px 24px 70px;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-inner-body strong {
    color: #fff;
}

/* Mobile Responsiveness styling */
@media (max-width: 768px) {
    .faq-section { padding: 60px 5%; }
    .faq-header h2 { font-size: 2rem; }
    .faq-toggle-btn { padding: 18px 20px; }
    .faq-inner-body p { padding: 0 20px 20px 20px; }
}

/* ==========================================
   REMOVE DIVIDER LINE BETWEEN QUESTION & ANSWER
========================================== */
.faq-card .faq-toggle-btn {
    border-bottom: none !important;
    box-shadow: none !important;
}

.faq-card .faq-dropdown-panel,
.faq-card .faq-inner-body {
    border-top: none !important;
}

/* Fixes any potential default browser or template lines leaking in */
.faq-card hr, 
.faq-card .faq-toggle-btn::after {
    display: none !important;
}

/* ==========================================================================
   PREMIUM STUDIO CONTACT SECTION - POSITION & RESPONSIVE GRID ENGINE
   ========================================================================== */

.contact-section {
    position: relative !important;
    background: #050816 !important;
    padding: 120px 8% !important;
    overflow: hidden;
    width: 100%;
}

/* Background Atmospheric Glow Orbs */
.contact-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Master Layout Container */
.contact-container {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- Left Column: Context Branding Matrix --- */
.contact-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-tag-pill {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}

.contact-description {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Anchors & Detail Action Cards */
.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.contact-detail-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(11, 18, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.contact-detail-card:hover {
    background: rgba(17, 24, 42, 0.6);
    transform: translateY(-2px);
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Customized Responsive Image Scaling Wrapper for discord.png */
.contact-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Keeps the image matching code styling defaults */
    transition: filter 0.3s ease;
}

.contact-card-text {
    display: flex;
    flex-direction: column;
}

.contact-card-text span {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-card-text strong {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 600;
}

/* Hover Variations */
.contact-detail-card.discord-accent:hover { 
    border-color: rgba(114, 137, 218, 0.4); 
    box-shadow: 0 10px 20px rgba(114, 137, 218, 0.05); 
}
.contact-detail-card.discord-accent:hover strong { color: #5865F2; }
.contact-detail-card.discord-accent:hover .contact-icon-img {
    filter: drop-shadow(0 0 4px #5865F2);
}

.contact-detail-card.email-accent:hover { 
    border-color: rgba(59, 130, 246, 0.4); 
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.05); 
}
.contact-detail-card.email-accent:hover strong { color: #60a5fa; }

/* Status Pulsing Glow */
.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80 !important;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: livePulseEffect 1.8s infinite;
}

@keyframes livePulseEffect {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* --- Right Column: Glassmorphic Input Brief --- */
.contact-form-column {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-glass-form-card {
    background: rgba(11, 18, 38, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 45px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.contact-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Color Synchronization Match Rule */
.contact-input-group input,
.contact-input-group select,
.contact-input-group textarea {
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

/* Placeholder and unselected matching inner description text color */
.contact-input-group input::placeholder,
.contact-input-group textarea::placeholder,
.contact-input-group select:invalid {
    color: #94a3b8 !important; 
    opacity: 1;
}

.contact-input-group input:hover,
.contact-input-group select:hover,
.contact-input-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Focused Highlight States */
.contact-input-group input:focus,
.contact-input-group select:focus,
.contact-input-group textarea:focus {
    background: rgba(5, 8, 22, 0.9);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

/* Dropdown Choice Arrow Styling Hook */
.contact-input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 45px;
}

.contact-input-group select option {
    background-color: #0b1226;
    color: #fff;
}

/* Re-targets explicit invalid choices inside dropdown array lists */
.contact-input-group select option[value=""][disabled] {
    color: #94a3b8 !important;
}

.contact-input-group textarea {
    resize: none;
}

/* Form Action Element Alignment */
.contact-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    outline: none;
    padding: 16px 24px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 15px rgba(96, 165, 250, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover .btn-arrow {
    transform: translateX(5px) scale(1.1);
}

/* --- Active Scroll Entry Reveal States --- */
.contact-section.contact-activated .contact-info-column,
.contact-section.contact-activated .contact-form-column {
    opacity: 1;
    transform: translateX(0);
}

/* --- Responsive System Constraints --- */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-main-title { font-size: 2.2rem; }
    .contact-glass-form-card { padding: 30px; }
}

@media (max-width: 580px) {
    .contact-section { padding: 80px 5%; }
    .contact-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* --- Submission Alerts & Timeline Actions --- */
.contact-dynamic-alert {
    margin-top: 22px;
    padding: 16px 20px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    color: #4ade80;
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    word-wrap: break-word;
    
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-dynamic-alert.reveal-alert-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes buttonPulseScale {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); opacity: 0.85; }
    100% { transform: scale(1); }
}

.contact-submit-btn.processing-pipeline {
    animation: buttonPulseScale 1s infinite ease-in-out;
}

/* ==========================================
   UPGRADED STUDIO LOGO & HEADER SYNC
========================================== */
.logo-wrapper {
    display: flex;
    align-items: center;
    /* Removed max-height restriction to allow image to expand freely */
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.studio-logo-img {
    height: 75px; /* Increased from 44px to make it significantly larger and clearer */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.2));
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

/* Subtle hover interaction to emphasize the logo */
.logo-wrapper:hover .studio-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 20px rgba(96, 165, 250, 0.45));
}

/* ==========================================
   PREMIUM STUDIO FOOTER STYLING
========================================== */
.premium-footer {
    position: relative;
    background: #03050f;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 90px 8% 0px;
    overflow: hidden;
    z-index: 10;
}

/* Ambient Purple & Blue Radial Backdrop Blurs for the Footer */
.footer-blur-accent-1,
.footer-blur-accent-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.06;
}

.footer-blur-accent-1 {
    background: var(--primary);
    width: 300px;
    height: 300px;
    left: -50px;
    bottom: -50px;
}

.footer-blur-accent-2 {
    background: #7c3aed;
    width: 250px;
    height: 250px;
    right: 5%;
    top: 20px;
}

/* Core Main Structural Grid */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 0.9fr);
    gap: 50px;
    max-width: 1350px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Column Elements layout blueprint */
.footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-spacer {
    margin-bottom: 20px;
}

.brand-bio-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    max-width: 340px;
    margin-bottom: 22px;
}

/* Live Operational Grid Status Pill */
.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: operationalPulse 2s infinite ease-in-out;
}

@keyframes operationalPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Text & Title Layout Blueprint inside columns */
.footer-block-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    letter-spacing: -0.2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 400;
    transition: color 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* Static Contact Info fields inside column 4 */
.footer-contact-item {
    font-size: 0.96rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-contact-time {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 14px;
}

/* Copyright Base Horizontal Ribbon Row */
.footer-copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 28px 0;
    width: 100%;
}

.copyright-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1350px;
    margin: 0 auto;
    font-size: 0.86rem;
    color: #64748b;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.legal-separator {
    color: rgba(255, 255, 255, 0.05);
    user-select: none;
}

/* Responsive Grid Adapters for Small Viewports */
@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .premium-footer {
        padding: 70px 6% 0px;
    }
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .copyright-bar-content {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================
   HEADER LOGO SIZING ADJUSTMENT
========================================== */
.header .logo-wrapper {
    display: flex;
    align-items: center;
}

.header .studio-logo-img {
    /* Change this value to adjust the header logo size independently */
    height: 50px; 
    
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.2));
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

/* Hover feedback animation for the header logo */
.header .logo-wrapper:hover .studio-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 20px rgba(96, 165, 250, 0.45));
}


/* ==========================================
   FOOTER LOGO SIZING ADJUSTMENT 
========================================== */
.premium-footer .studio-logo-img {
    /* Keeps the footer logo at a clean, balanced proportion */
    height: 55px; 
    
    width: auto;
    object-fit: contain;
}


/* --- Responsive Adjustments for Mobile Screens --- */
@media (max-width: 640px) {
    .header .studio-logo-img {
        height: 60px; /* Scales down smoothly so it doesn't crowd mobile menus */
    }
    .premium-footer .studio-logo-img {
        height: 45px;
    }
}

.footer-social-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}

.social-icon-img {
    width: 32px;  /* Adjust size as needed */
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.social-icon-img:hover {
    transform: scale(1.1); /* Subtle hover animation */
}

/* --- Glowing Social Icon Menu Layout --- */

.footer-social-menu {
    display: flex;
    gap: 16px;            /* Even spacing between boxes */
    align-items: center;
    margin-top: 22px;     /* Correct alignment below the bio text */
}

.social-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;  /* Clean rounded box appearance */
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Snappy bounce animation */
}

.social-icon-img {
    width: 22px;          /* Perfectly scaled inside the 46px box */
    height: 22px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* --- Brand Glow & Hover Animations --- */

/* Instagram: Neon Pink/Orange Glow */
.social-icon-link.instagram:hover {
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.8);
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.6), 
                inset 0 0 8px rgba(225, 48, 108, 0.3);
    transform: translateY(-5px);
}

/* YouTube: Neon Red Glow */
.social-icon-link.youtube:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 
                inset 0 0 8px rgba(255, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* Discord: Blurple Glow */
.social-icon-link.discord:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.8);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6), 
                inset 0 0 8px rgba(88, 101, 242, 0.3);
    transform: translateY(-5px);
}

/* Internal icon scaling effect during hover */
.social-icon-link:hover .social-icon-img {
    transform: scale(1.12);
}

/* --- Glowing Social Icon Menu Layout --- */

.footer-social-menu {
    display: flex;
    gap: 12px;            /* Tight, clean spacing for the links column */
    align-items: center;
    margin-top: 20px;     /* Leaves comfortable breathing room below "Pipeline Active" */
}

.social-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;  /* Clean rounded appearance */
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Snappy bounce effect */
}

.social-icon-img {
    width: 20px;          /* Perfectly scaled inside the 42px container */
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* --- Brand Specific Neon Glow Hover Effects --- */

/* Instagram Glow */
.social-icon-link.instagram:hover {
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.8);
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.55), 
                inset 0 0 8px rgba(225, 48, 108, 0.25);
    transform: translateY(-4px);
}

/* YouTube Glow */
.social-icon-link.youtube:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.55), 
                inset 0 0 8px rgba(255, 0, 0, 0.25);
    transform: translateY(-4px);
}

/* Discord Glow */
.social-icon-link.discord:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.8);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.55), 
                inset 0 0 8px rgba(88, 101, 242, 0.25);
    transform: translateY(-4px);
}

/* Internal icon pop on hover */
.social-icon-link:hover .social-icon-img {
    transform: scale(1.1);
}

/* --- High-Contrast Electric Blue CTA Button (Sleek & Controlled Glow) --- */

.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;                  /* Reduced from 10px */
    padding: 10px 24px;        /* Balanced reduction from 12px 30px */
    font-size: 14px;           /* Slightly crisper, down from 15px */
    font-weight: 700;    
    font-family: inherit;
    color: #ffffff;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    
    /* Premium high-voltage cyan/blue gradient */
    background: linear-gradient(135deg, #0052d4 0%, #4364f7 50%, #6fb1fc 100%);
    border: none;
    border-radius: 50px;
    
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* IDLE ANIMATION 1: Subtle electric breathing pulse */
    animation: blueGlowPulse 2.5s infinite ease-in-out;
}

/* Shimmer overlay layer */
.order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35), /* Marginally softened sheen */
        transparent
    );
    transform: skewX(-20deg);
    z-index: -1;

    /* IDLE ANIMATION 2: Automatic shimmer sweep */
    animation: periodicShimmer 4.5s infinite ease-in-out;
}

/* --- Blue Idle Keyframe Definitions --- */

/* Pulses the size with a much tighter, lowered edge glow shadow */
@keyframes blueGlowPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(67, 100, 247, 0.25), 
                    inset 0 -2px 0px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.02.5); /* Tighter physical breath */
        box-shadow: 0 6px 16px rgba(0, 210, 255, 0.45), 
                    inset 0 -2px 0px rgba(0, 0, 0, 0.2);
    }
}

/* Sweeps the light reflection across, then pauses */
@keyframes periodicShimmer {
    0% { left: -130%; }
    12% { left: 130%; }  
    100% { left: 130%; } 
}


/* --- Hover & Interaction States (Overrides Idle) --- */

.order-btn:hover {
    animation: none; /* Stops the idle loop cleanly on hover */
    
    background: linear-gradient(135deg, #002285 0%, #00c6ff 100%);
    transform: translateY(-2px) scale(1.04);
    
    /* Clean, defined hover glow without over-blooming the edges */
    box-shadow: 0 6px 18px rgba(0, 210, 255, 0.5), 
                inset 0 -2px 0px rgba(0, 0, 0, 0.15);
}

.order-btn:hover::before {
    animation: none;
    left: 130%;
    transition: left 0.5s ease;
}

/* Arrow emoji interaction */
.order-btn .btn-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-btn:hover .btn-icon {
    transform: translateX(4px) scale(1.15); /* Controlled accent shift */
}

/* Physical click state */
.order-btn:active {
    transform: translateY(-0.5px) scale(1.01);
    box-shadow: 0 3px 8px rgba(0, 210, 255, 0.3);
}

/* Floating Helper Button Styling */
.floating-helper-btn {
    position: fixed;
    right: 20px;
    /* Positioned perfectly at the bottom. We will adjust Chatbase to sit above this. */
    bottom: 20px; 
    z-index: 999999; /* Ensures it stays on top of canvas elements */
    
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    
    background: rgba(11, 18, 38, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-helper-btn:hover {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.floating-helper-btn svg {
    transition: transform 0.3s ease;
}

.floating-helper-btn:hover svg {
    transform: translateY(2px);
}

/* Target and tweak the Chatbase launcher bubble */
#chatbase-bubble-button {
    bottom: 40px !important;
    right: 45px !important;            /* Moved slightly left from the edge (default/balanced position) */
    transform: scale(1.05) !important;  
    transform-origin: bottom right !important;
    transition: transform 0.2s ease-in-out !important;
    z-index: 999999 !important;
}

/* Subtle hover effect */
#chatbase-bubble-button:hover {
    transform: scale(1.1) translateY(-2px) !important;
}

/* Update your existing block to include this transition rule */
/* --- Branded Premium Message Cloud --- */
/* --- Branded Premium Message Cloud --- */
.ai-message-cloud {
    position: fixed;
    right: 130px;                      
    bottom: 30px;                      
    z-index: 999998;
    
    background: rgba(11, 18, 38, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 32px 14px 16px;       
    max-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    /* DEFAULT STATE: Completely hidden on initial paint */
    opacity: 0;
    transform: translateX(15px) scale(0.95);
    
    /* THE GLITCH FIX: CSS transitions interpolate perfectly mid-animation.
       If a user scrolls up/down rapidly, it catches the current frame and smoothly reverses.
    */
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    pointer-events: none; /* Prevents invisible blocking clicks */
}

/* STATE 1: Loaded & Active (At the top of the page) */
.ai-message-cloud.cloud-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* STATE 2: Faded Out (Scrolled down the page) */
.ai-message-cloud.cloud-fade {
    opacity: 0;
    transform: translateX(12px) scale(0.92);
    pointer-events: none;
}

/* --- Internal typography adjustments --- */
.ai-message-cloud p {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Speech bubble arrow */
.ai-message-cloud::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(11, 18, 38, 0.75);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Close button */
.close-cloud-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.close-cloud-btn:hover {
    color: #ffffff;
}

/* ==========================================
   PORTFOLIO LIGHTBOX POPUP MODAL
========================================== */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2500; /* Keeps it directly over everything else */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active Open State */
.portfolio-modal.active {
    visibility: visible;
    opacity: 1;
}

/* Dark Frosted Blur Background Overlay */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 15, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Modal Core Box Container */
.modal-content {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 850px;
    width: 100%;
    overflow: hidden;
    z-index: 2501;
    box-shadow: var(--shadow), var(--glow);
    transform: scale(0.92) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Responsive Image Layout Box */
.modal-media {
    width: 100%;
    background: #02040a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-media img {
    width: 100%;
    max-height: 62vh;
    object-fit: contain;
    display: block;
}

/* Bottom Text Details Section */
.modal-info {
    padding: 25px 30px;
    background: rgba(13, 18, 35, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.modal-info p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Rounded Glossy Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(5, 8, 22, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    z-index: 2510;
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {
    .portfolio-modal {
        padding: 12px;
    }
    .modal-content {
        border-radius: 16px;
    }
    .modal-info {
        padding: 18px 20px;
    }
    .modal-info h3 {
        font-size: 1.25rem;
    }
    .modal-info p {
        font-size: 0.88rem;
    }
}

