:root {
    --primary: #007AFF;
    --primary-dark: #0056b3;
    --accent: #5856D6;
    /* iOS Purple */
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    --bg-color: #F5F5F7;
    /* Apple System Gray 6 */
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #1D1D1F;
    --text-secondary: #86868B;
    --nav-height: 64px;
    --mobile-nav-height: 88px;
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--mobile-nav-height);
    padding-top: var(--nav-height);
    overflow-x: hidden;
}

/* Animated Background Mesh */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(0, 122, 255, 0.08), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(88, 86, 214, 0.08), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(52, 199, 89, 0.08), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(255, 149, 0, 0.08), transparent 40%);
    filter: blur(40px);
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Utilities */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.btn {
    border: none;
    padding: 14px 28px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: -0.01em;
}

.btn:active {
    transform: scale(0.96);
}

.btn:hover {
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 800;
}

/* Desktop Navigation */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: transform 0.3s;
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    gap: 12px;
    color: var(--text-main);
}

.logo img {
    height: 60px;
   
}

.nav-links {
    display: none;
    gap: 32px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-main);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* Mobile Bottom Nav - Float Style */
.mobile-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 70px;
    z-index: 1000;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    gap: 4px;
    width: 50px;
    transition: all 0.2s;
}

.mobile-nav-item ion-icon {
    font-size: 24px;
    transition: transform 0.2s;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active ion-icon {
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

/* Main Content */
.page {
    padding: 20px;
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Animations using Intersection Observer classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.hero-title {
    font-size: 48px;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #1D1D1F 0%, #424245 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual-3d {
    margin-top: 60px;
    height: 350px;
    position: relative;
    perspective: 1000px;
}

.device-mockup {
    width: 300px;
    height: 600px;
    /* Cropped */
    background: #fff;
    border-radius: 40px;
    border: 8px solid #1D1D1F;
    margin: 0 auto;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: rotateX(20deg) rotateY(-10deg) rotateZ(5deg) translateY(50px);
    transition: transform 0.5s ease;
    position: relative;
}

.device-mockup:hover {
    transform: rotateX(10deg) rotateY(-5deg) rotateZ(2deg) translateY(40px);
}

.device-screen {
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=600&q=80') center/cover;
}

/* Bento Grid Services */
.bento-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.bento-card {
    background: white;
    border-radius: var(--radius-l);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.bento-card.blue .bento-icon {
    background: linear-gradient(135deg, #007AFF, #00C6FF);
}

.bento-card.purple .bento-icon {
    background: linear-gradient(135deg, #5856D6, #AF52DE);
}

.bento-card.dark .bento-icon {
    background: linear-gradient(135deg, #1C1C1E, #3A3A3C);
}

.bento-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Bento Spans */
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 300px);
    }

    .span-2 {
        grid-column: span 2;
    }

    .span-row-2 {
        grid-row: span 2;
    }

    .hero-title {
        font-size: 72px;
    }

    .hero-wrapper {
        padding: 100px 0 60px;
    }
}

/* Marquee */
.marquee-wrapper {
    overflow: hidden;
    background: white;
    padding: 40px 0;
    margin: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-size: 20px;
    font-weight: 700;
    color: #ceced2;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    background: #1D1D1F;
    color: #f5f5f7;
    padding: 80px 20px 40px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.6;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.5;
}

/* Service Detail Updates */
.service-hero {
    background: var(--text-main);
    color: white;
    padding: 80px 40px;
    border-radius: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.service-hero h1 {
    background: none;
    -webkit-text-fill-color: white;
    color: white;
    margin-bottom: 10px;
}

.service-hero p {
    color: rgba(255, 255, 255, 0.7);
}