:root {
    --bg-dark: #07090E;
    --bg-card: rgba(13, 18, 30, 0.4);
    --accent-primary: #6366F1;
    --accent-secondary: #06B6D4;
    --accent-emerald: #10B981;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);

    --metallic-light: #F8FAFC;
    --metallic-dark: #94A3B8;
    --text-main: #F8FAFC;
    --text-muted: #64748B;
    --text-light: #CBD5E1;
    --glass-bg: rgba(13, 18, 30, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.04);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Fallback variables for oklch interpolation */
    --in-oklab: ;
    --in-oklch: ;
}

@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

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

/* Base Utility Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.text-gradient {
    background: linear-gradient(135deg var(--in-oklab), var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    transform: translateZ(1000px);
    -webkit-transform: translateZ(1000px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.logo img.nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    z-index: 999;
    padding: 7rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    border-left: 1px solid var(--glass-border);
    border-radius: 0;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    background: rgba(7, 9, 14, 0.75);
    visibility: hidden;
}

.mobile-drawer.open {
    right: 0;
    visibility: visible;
}

.close-drawer-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-drawer-btn:hover {
    color: var(--accent-secondary);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--accent-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 0.55rem 1.4rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.glow-effect {
    position: relative;
    z-index: 1;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    z-index: -1;
    border-radius: 50px;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.8;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1.1;
    max-width: 650px;
    z-index: 10;
}

/* Capacity Badge */
.capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    width: max-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #10b981;
    border-radius: 50%;
    animation: badge-pulse 1.8s infinite ease-in-out;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

.hero-visuals {
    flex: 1;
    position: relative;
    height: 600px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 100%);
    filter: blur(40px);
    z-index: 0;
}

.hero-mockups {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-mac {
    transform: rotateX(6deg) rotateY(-8deg) translateZ(0);
    width: 100%;
    max-width: 440px;
}

.hero-phone {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 170px;
    border-width: 6px;
    border-radius: 24px;
    transform: rotateY(12deg) rotateX(6deg) translateZ(40px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.hero-phone::before {
    display: none; /* Hide notch in small phone */
}

.floating-bubble-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 3;
}

.floating-element {
    position: absolute;
    background: rgba(13, 18, 30, 0.95);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    user-select: none;
    color: var(--text-main);
    white-space: nowrap;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.floating-element i {
    font-size: 1.4rem;
    color: var(--accent-secondary);
}

.el-flutter {
    top: 10%;
    left: 2%;
}

.el-web {
    top: 45%;
    right: 2%;
}

.el-erp {
    top: 65%;
    left: 2%;
}

.el-security {
    bottom: 15%;
    left: 12%;
}

.el-ai {
    top: 5%;
    right: 8%;
}

.el-cloud {
    top: 25%;
    left: 32%;
}

.el-data {
    bottom: 12%;
    left: 22%;
}

.el-seo {
    bottom: 10%;
    right: 6%;
}

/* Sections Global */
section {
    padding: 120px 5%;
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Hardware compositing layer fix */
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open .service-card,
body.modal-open .card-icon,
body.modal-open .service-card h3,
body.modal-open .service-card p {
    transform: none !important;
    transition: none !important;
}

.service-card:hover {
    border-color: var(--metallic-light);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--metallic-dark);
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    transform: translateZ(20px);
}

.service-card p {
    color: var(--text-muted);
    transform: translateZ(10px);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.demo-link {
    color: var(--metallic-light);
    font-weight: 600;
    font-size: 0.95rem;
    position: absolute;
    bottom: 2rem;
    transition: color 0.3s ease;
}

.service-card:hover .demo-link {
    color: var(--metallic-dark);
}

/* About & Security Redesign */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.lead {
    font-size: 1.3rem;
    color: var(--metallic-light);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.mission-box {
    margin-top: 2.5rem;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--metallic-dark);
}

.mission-box h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.mission-box p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 0;
}

.about-security {
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.security-header {
    margin-bottom: 2rem;
    text-align: left;
}

.security-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-top: 1rem;
}

.security-list {
    list-style: none;
}

.security-list li {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.security-list li i {
    color: var(--metallic-dark);
    font-size: 1.5rem;
}

/* Tech Marquee */
.tech-marquee-wrapper {
    margin-top: 5rem;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.tech-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--metallic-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-marquee {
    display: flex;
    width: 200%;
}

.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite;
    gap: 3rem;
}

.marquee-content span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 1rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    white-space: nowrap;
}

.marquee-content span i {
    font-size: 1.5rem;
    color: var(--metallic-dark);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- PROOF SECTION --- */
.proof { padding: 4rem 5%; background: transparent; border-top: 1px solid var(--border-color); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; text-align: center; }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-family: var(--font-heading); font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; text-shadow: 0 0 30px rgba(99, 102, 241, 0.2); }
.stat-label { color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }

/* --- WORKFLOW SECTION --- */
.workflow { padding: 6rem 5%; max-width: 1200px; margin: 0 auto; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; position: relative; }

.workflow-line-progress {
    position: absolute;
    top: 25px;
    left: 12.5%;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    z-index: 0;
    box-shadow: 0 0 10px var(--accent-secondary);
    will-change: width;
}

.workflow-line-back {
    position: absolute;
    top: 25px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.workflow-card-wrapper {
    position: relative;
    padding-top: 25px;
}

.workflow-step {
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px;
    position: relative;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.workflow-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    z-index: 10;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.workflow-step h3 { margin-bottom: 1rem; color: var(--text-main); font-size: 1.25rem; font-family: var(--font-heading); }
.workflow-step p { color: var(--text-muted); font-size: 0.95rem; }

/* --- CTA SECTION --- */
.cta-section { padding: 8rem 5%; text-align: center; background: radial-gradient(circle at center, rgba(99,102,241,0.06) 0%, var(--bg-dark) 70%); border-top: 1px solid var(--border-color); }
.cta-box { max-width: 800px; margin: 0 auto; }
.cta-box h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-family: var(--font-heading); margin-bottom: 1.5rem; line-height: 1.1; color: var(--text-main); }
.cta-box p { color: var(--text-light); font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 3rem; line-height: 1.6; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;}

/* Showcase Section styling */
.showcase-section {
    padding: 120px 5%;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
                var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(8px);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.showcase-tab-content {
    display: none;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.showcase-tab-content.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.showcase-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.showcase-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.showcase-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.showcase-info p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.showcase-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.showcase-features li i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    width: 100%;
}

/* MacBook Mockup CSS */
.macbook-mockup {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.5s ease;
    will-change: transform;
}

.macbook-mockup:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

.mac-screen {
    background: #000;
    border: 12px solid #1f2022;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.mac-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.mac-base {
    background: linear-gradient(to bottom, #d2d5db, #9aa0a6);
    height: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.mac-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #55585d;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* iPhone Mockup CSS */
.iphone-mockup {
    width: 240px;
    border: 10px solid #1f2022;
    border-radius: 36px;
    aspect-ratio: 9/19;
    overflow: hidden;
    position: relative;
    background: #000;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
    transform: rotateY(12deg) rotateX(8deg);
    transition: transform 0.5s ease;
    will-change: transform;
}

.iphone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #1f2022;
    border-radius: 20px;
    z-index: 10;
}

/* iPad Mockup CSS */
.ipad-mockup {
    width: 100%;
    max-width: 440px;
    border: 14px solid #1f2022;
    border-radius: 24px;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #000;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s ease;
    will-change: transform;
}

.ipad-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.ipad-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ipad-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mouse Glow Spotlight Effects */
.service-card, .workflow-step, .demo-card {
    position: relative;
    overflow: hidden;
}

.service-card::after, .workflow-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(99, 102, 241, 0.08), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::after, .workflow-step:hover::after {
    opacity: 1;
}

.service-card *, .workflow-step * {
    position: relative;
    z-index: 2;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(7, 9, 14, 0.98);
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transform: translateZ(0); /* Safari fix */
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(50px);
    transition: transform 0.3s ease;
    margin: 4rem auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    color: var(--text-muted);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-secondary);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.demo-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.15);
}

.demo-card i {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.demo-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* Footer */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
    border-radius: 30px 30px 0 0;
    margin-top: 50px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-copy {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    .about-container {
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .workflow-grid {
        gap: 1rem;
    }
    .workflow-step {
        padding: 2.2rem 1.2rem 1.8rem;
    }
    .workflow-step h3 {
        font-size: 1.15rem;
    }
    .workflow-step p {
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow-grid { grid-template-columns: 1fr; gap: 4rem; }
    .workflow-line-back { display: none; }
    .workflow-line-progress { display: none !important; }
    .showcase-tab-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .showcase-info {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visuals {
        width: 100%;
        margin-top: 3rem;
        height: 380px;
    }

    .floating-bubble-container {
        display: none; /* Hide cluttered absolute bubbles on mobile */
    }
    
    .hero-mockups {
        transform: scale(0.85);
    }
    
    .hero-phone {
        right: 10%;
        bottom: 5%;
        width: 150px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .cta-box h2 {
        font-size: 2.2rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .showcase-tabs {
        flex-wrap: wrap;
        border-radius: 20px;
        max-width: 100%;
    }
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .hero-mockups {
        transform: scale(0.75);
    }
    .nav-cta-btn {
        display: none; /* Hide top CTA on extra small screens, keep hamburger */
    }
    .modal-content {
        padding: 2.5rem 1.2rem 2rem;
        width: 95%;
        margin: 2rem auto;
    }
    .modal-content h3 {
        font-size: 1.8rem;
    }
    .demo-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.8rem;
    }
    .close-btn {
        top: 1rem;
        right: 1.2rem;
        font-size: 1.8rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        padding: 3rem 1rem 6.5rem; /* Extra padding-bottom to clear the floating contact widget on mobile */
    }
}

/* Floating Contact Widget Styles */
.floating-contact {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.contact-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item.email {
    background: rgba(99, 102, 241, 0.25); /* Indigo glass */
}

.contact-item.whatsapp {
    background: rgba(16, 185, 129, 0.25); /* Emerald glass */
}

.contact-item i {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: scale(1.1) translateY(-5px);
}

.contact-item.email:hover {
    background: rgba(99, 102, 241, 0.8);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.contact-item.whatsapp:hover {
    background: rgba(16, 185, 129, 0.8);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.contact-item:hover i {
    transform: rotate(15deg);
}

.tooltip {
    position: absolute;
    right: 75px;
    background: rgba(7, 9, 14, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    color: white;
}

.contact-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@media (max-width: 600px) {
    .floating-contact {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.8rem;
    }
    
    .contact-item {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .tooltip {
        display: none; /* Hide tooltips on mobile */
    }
}