/* Octmi Design System */
:root {
    /* Premium Dark Palette */
    --bg-primary: #050505;
    --text-primary: #FFFFFF;
    --text-muted: #A1A1AA;
    /* Cool Gray */
    --accent: #3B82F6;
    /* Electric Blue */

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(20, 20, 20, 0.6);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(to right, #FFFFFF, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1F2937, #000000);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #374151, #111827);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
    /* Blue glow hint */
    border-color: rgba(255, 255, 255, 0.2);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Remove horizontal space from header and footer */
header .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

header nav {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Footer overrides removed to fix alignment */

header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    /* Consistent padding */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Underline effect on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn {
    color: #fff !important;
    /* Ensure button text is white */
}

.nav-links .btn::after {
    display: none;
    /* No underline for buttons */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

#global-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Let clicks pass through to content */
    z-index: -1;
    /* Sit securely behind all content and backgrounds */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 100%;
    /* Allows heading to expand fully */
}

.hero h1 {
    font-size: 5.5rem;
    /* Slightly smaller so "We Build Digital Entities" fits one line */
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero p {
    font-size: 1.35rem;
    /* Reduced from 2rem for a better visual hierarchy */
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}


.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: #0dcaf0;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}

.hero-eyebrow span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0dcaf0;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: #0dcaf0;
    margin-left: 4px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.hero-stat-row {
    display: flex;
    gap: 40px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.hero-stat .num {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #0dcaf0, #8A2BE2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Social Proof */
.social-proof {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-item:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Services Grid */
.services {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(30, 30, 30, 0.8);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--text-primary);
    color: #000;
    animation: iconFloat 2.5s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background: transparent;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--text-primary);
    text-decoration: none;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        align-items: flex-start;
        padding-top: 140px;
        /* Adjusts the distance between header and hero text */
        min-height: 70vh;
        /* Increased to push social proof further down */
    }

    /* Scale typography down so the visual formatting (e.g. 2 lines) precisely mirrors desktop */
    .hero h1 {
        font-size: 1.6rem;
        /* Ensures "We Build Digital Entities" always fits on one horizontal line on phones */
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .mobile-menu-btn {
        display: block !important;
        background: transparent;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1100;
        position: relative;
    }

    .social-proof {
        padding: 1.5rem 0;
    }

    /* Responsive social icons only */
    .social-grid {
        flex-wrap: nowrap !important;
        justify-content: space-evenly !important;
        overflow-x: hidden !important;
        padding: 0 1rem;
        padding-bottom: 0;
        width: 100%;
    }

    .social-item {
        justify-content: center;
    }

    .social-item span {
        display: none !important;
        /* Hide text on mobile */
    }

    .social-item i {
        width: 28px !important;
        /* Make icons larger since text is gone */
        height: 28px !important;
    }

    /* Force the services into a 2x2 grid instead of 1-column stack, mirroring desktop grid feel */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .service-card {
        padding: 1rem !important;
    }

    .service-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 1rem !important;
    }

    .service-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-card p {
        font-size: 0.75rem !important;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        z-index: 1050;
    }

    .nav-links.active a {
        font-size: 1.5rem;
    }


}




/* Cart UI Styles */
.cart-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    margin-left: 1.5rem;
}

.cart-icon-link:hover {
    color: var(--accent-cyan);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ef4444;
    /* subtle red */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.cart-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--accent-cyan);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Progress Milestone (Breadcrumbs) */
.progress-milestone {
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.progress-milestone ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.progress-milestone .breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-milestone .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.progress-milestone .breadcrumb-item a:hover {
    color: var(--text-primary);
}

.progress-milestone .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    line-height: 1;
}

.progress-milestone .breadcrumb-item.active {
    color: var(--accent);
    font-weight: 500;
}

/* ── FADE-IN ANIMATIONS ────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}