/* =========================================================================
   BASE STYLES & VARIABLES
   ========================================================================= */
:root {
    /* Colors - Ultra Premium Minimalist Palette */
    --primary: #FFFFFF;
    --primary-dark: #E2E2E2;
    --primary-light: rgba(255, 255, 255, 0.15);
    --secondary: #FFFFFF;
    --text-main: #FFFFFF;
    --text-muted: #A1A1A6;
    --bg-main: #000000;
    --bg-light: #000000;
    --bg-dark: #000000;
    --card-bg: #151516;
    --border: rgba(255, 255, 255, 0.15);
    --white: #FFFFFF;
    
    /* UI Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
    overflow-x: hidden; /* Fix iOS mobile horizontal scroll bug */
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white p, .text-white .section-desc { color: rgba(255, 255, 255, 0.8); }
.text-white h1, .text-white h2, .text-white h3 { color: var(--white); }
.bg-light { background-color: var(--bg-light); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.bg-dark { background-color: var(--bg-dark); }
.bg-primary { background-color: var(--primary); }
.bg-premium-contact {
    background: linear-gradient(135deg, #050505 0%, #17153B 50%, #2E236C 100%);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.bg-premium-contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 0%, rgba(190, 142, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 100%, rgba(67, 97, 238, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.opacity-80 { opacity: 0.8; }
.z-relative { position: relative; z-index: 2; }

/* Generic Video Background Section */
.section-with-video {
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.section-with-video .container {
    position: relative;
    z-index: 3; /* Above the overlay */
}

.section-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    /* Basic parallax effect using attachment fixed doesn't work well on video, 
       so we use a standard absolute positioning. For true parallax on video we'd need JS, 
       but for now it forms a beautiful full-screen animated background. */
}

/* Adjust overlay color to make text readable */
.section-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Dark overlay */
    z-index: 2;
    pointer-events: none;
}

/* Grid System */
.grid {
    display: grid;
    gap: 32px;
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-main);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--border);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--bg-main);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Removed overflow: hidden so the hand can "pop out" and overlap */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Move text to the left */
    gap: 40px; /* Adjust gap */
    position: relative;
    z-index: 2;
    padding-right: 50%; /* Make space for the 3D element */
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 5; /* Lower than the visual */
    position: relative;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, #FFFFFF, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Spline positioning */
.spline-iframe {
    width: 100%;
    height: 100%;
    transform: scale(1.3) translateY(5%) translateX(10%); /* Move 3D element to the right */
    transform-origin: center right; /* Anchor to the right */
    clip-path: inset(0px 0px 60px 0px); /* Hide the "Built with Spline" logo at the bottom */
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.6;
}

.blur-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.4); /* Deep primary glow */
    top: -200px;
    right: -100px;
}

.blur-2 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.3); /* Purple ambient glow */
    bottom: -100px;
    left: -100px;
}

.animated-blob {
    animation: floatBlob 15s ease-in-out infinite alternate;
}

.animated-blob-reverse {
    animation: floatBlobReverse 18s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
    100% { transform: translate(50px, -50px) scale(0.9); }
}

@keyframes floatBlobReverse {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(0.9); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Section Headers */
.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.125rem;
}

/* Value Props (Cards) */
.cards-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

/* Pricing Section */
.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 40px;
    text-align: center;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    color: #000000;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.price .currency {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-desc {
    font-size: 0.9rem;
    margin-bottom: 32px;
    height: 48px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.pricing-features ul li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 12px;
}

/* Process Slider Section */
.process-slider-container {
    min-height: 100vh;
    position: relative;
    background-color: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.process-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.process-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.process-bg-item.is-active {
    opacity: 1;
}

.process-bg-item img.bg-img,
.process-bg-item video.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%); /* Lighter overlay to fix "black block" */
    z-index: 2;
}

.process-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* Offset for header */
}

.section-header-process {
    text-align: center;
    margin-bottom: 40px;
}

.process-slider-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--bg-main);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.process-steps {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 350px;
    perspective: 1000px;
}

.process-step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px) rotateX(10deg);
    width: 100%;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0) rotateX(0deg);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--white);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-title {
    font-size: 2rem;
    margin-bottom: 16px;
    color: white;
    font-weight: 700;
}

.step-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-family: var(--font-heading);
}

.bg-gradient-1 { background: linear-gradient(135deg, #FF9A9E, #FECFEF); color: #333; }
.bg-gradient-2 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.bg-gradient-3 { background: linear-gradient(135deg, #84fab0, #8fd3f4); color: #333; }

.client-name {
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-company {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Portfolio Gallery */
.portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    border: 1px solid var(--border);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-image {
    height: 240px;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .img-placeholder {
    transform: scale(1.05);
}

.bg-gradient-portfolio-1 { background: linear-gradient(to right, #fa709a 0%, #fee140 100%); }
.bg-gradient-portfolio-2 { background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-portfolio-3 { background: linear-gradient(to right, #43e97b 0%, #38f9d7 100%); }

.portfolio-content {
    padding: 24px;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* Portfolio section is visible */
/* #portfolio {
    display: none !important;
} */

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.accordion-item:hover {
    background: #161618;
    border-color: rgba(255, 255, 255, 0.15);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 0 24px 24px;
}

/* Contact Section & Form */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-form-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background-color: rgba(0, 0, 0, 0.4);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.contact-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer .logo {
    color: var(--white);
}

.footer h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.social-icons a:hover {
    background: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.privacy-link:hover {
    color: var(--white);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 9999; /* Insanely high to ensure it never gets covered by anything */
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================================================
   ANIMATIONS (Triggered by JS)
   ========================================================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(8px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 1024px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 991px) {
    .hero-container {
        flex-direction: column-reverse; /* Put the text UNDER the robot on smaller screens */
        text-align: center;
        padding-top: 40px;
        padding-right: 0; /* Remove right padding on mobile */
    }
    .hero-content {
        max-width: 100%;
        margin-top: 50px; /* Reduced margin to minimize overlap */
        z-index: 5;
    }
    .hero-visual {
        width: 100% !important; /* Adjust width for mobile */
        right: 0 !important;
        height: 500px !important; /* Adjust height for mobile */
        margin-top: 0; /* Remove negative margin causing overlap */
        position: relative !important; /* Stack elements instead of overlapping */
    }
    .spline-iframe {
        /* Tablet: Push the robot more left inside the huge canvas so it stays near the center */
        transform: scale(1.6) translateX(-5%) !important;
    }
    .cards-grid, .pricing-grid, .testimonials-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process carousel remains 100vw, no changes needed for tablets except perhaps height */
    .process-carousel {
        height: 600px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 40px 24px;
        transition: left 0.3s ease;
        align-items: flex-start;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav.nav-active {
        left: 0;
    }
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin-bottom: 24px;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .cards-grid, .pricing-grid, .testimonials-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-visual {
        width: 100% !important; /* Adjust width for mobile */
        right: 0 !important;
        height: 400px !important; /* Adjust height for mobile */
        margin-top: 0; /* Remove negative margin causing overlap */
        position: relative !important; /* Stack elements instead of overlapping */
    }
    .spline-iframe {
        /* Mobile: Adjust scale and position to fit screen */
        transform: scale(1.5) translate(0%, 0%) !important;
        transform-origin: center center;
    }
    .section {
        padding: 60px 0;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .process-steps {
        height: 480px;
    }
    .process-step {
        padding: 24px 16px;
        width: 100%; 
        top: 50%; 
    }
    .process-slider-area {
        flex-direction: column;
        gap: 20px;
    }
    .slider-btn {
        display: none; /* Hide arrows on mobile, prioritize dots/swiping */
    }
    .section-header-process .section-title {
        font-size: 1.8rem;
    }
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    .step-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    .step-desc {
        font-size: 1rem;
    }
}
