:root {
    --background: #ffffff;
    --foreground: #1D1D1B;
    --primary: #1E1D59;
    --secondary: #00AEEF;
    --accent: #F8FAFC;
    --muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border: rgba(30, 29, 89, 0.1);

    --bs-font-sans-serif: 'Inter', sans-serif;
    --bs-body-color: var(--foreground);
    --bs-body-bg: var(--background);
    --bs-primary: var(--primary);
    --bs-secondary: var(--secondary);
}

body {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    overflow-x: hidden;
    color: var(--foreground);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #1E1D59 0%, #0077b6 50%, #00AEEF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ls-wide {
    letter-spacing: 0.1em;
}

.ls-wider {
    letter-spacing: 0.2em;
}

.fs-7 {
    font-size: 0.85rem;
}

/* Navbar */
.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: all 0.5s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link {
    color: rgba(30, 29, 89, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.logo-img {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

/* Buttons */
.apple-button {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.apple-button:active {
    transform: scale(0.96);
}

.apple-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px 0 rgba(31, 38, 135, 0.1);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Section Specifics */
/* Hero */
#hero {
    min-height: 100vh;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: blur(3px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #fff, transparent 50%, #fff);
}

.badge-custom {
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1px solid rgba(30, 29, 89, 0.05);
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 174, 239, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0);
    }
}

.play-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 174, 239, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn:hover .play-icon-circle {
    background: var(--secondary);
    color: white;
}

/* About Icons */
.icon-box-soft {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(30, 29, 89, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services Gradients */
.service-icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.gradient-blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.gradient-purple {
    background: linear-gradient(135deg, #9333ea, #3b82f6);
}

.gradient-cyan {
    background: linear-gradient(135deg, #0891b2, #10b981);
}

.gradient-indigo {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
}

.gradient-rose {
    background: linear-gradient(135deg, #e11d48, #f97316);
}

.gradient-dark {
    background: linear-gradient(135deg, #334155, #0f172a);
}

/* Marquee / Partners */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 4rem 0;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 35s linear infinite;
    gap: 0;
    align-items: center;
}

.partner-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    min-width: 220px;
    padding: 0 1rem;
    margin: 0;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
    height: 140px;
}

.partner-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

.partner-item img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.marquee-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.marquee-overlay.left {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.marquee-overlay.right {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

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

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

/* Note: JS duplicate of items needed for valid infinite marquee, 
   the keyframe assumes content is doubled and length is long enough */

/* Contact Section */
#contact {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.contact-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(30, 29, 89, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 174, 239, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 29, 89, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 29, 89, 0.2);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 29, 89, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(30, 29, 89, 0.15);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon-wrapper {
    flex-shrink: 0;
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-quote {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 29, 89, 0.05) 0%, rgba(0, 174, 239, 0.05) 100%);
    border-radius: 1.5rem;
    border-left: 4px solid var(--primary);
    margin-top: 2rem;
}

.quote-icon {
    color: var(--primary);
    opacity: 0.3;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 29, 89, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.contact-form-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 29, 89, 0.2);
}

/* Form Styles */
.form-control,
.form-select {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(30, 29, 89, 0.1);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
    border-color: var(--secondary);
    background: #fff;
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(30, 29, 89, 0.2);
    background: #fff;
}

.contact-submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(30, 29, 89, 0.3) !important;
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Footer links */
.hover-primary:hover {
    color: var(--primary) !important;
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .partner-item {
        width: 180px;
        min-width: 180px;
        height: 120px;
        padding: 0 0.75rem;
    }

    .partner-item img {
        max-height: 120px;
    }

    .marquee-container {
        padding: 2.5rem 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-info-item {
        padding: 1rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    .partner-item {
        width: 240px;
        min-width: 240px;
        height: 150px;
    }

    .partner-item img {
        max-height: 150px;
    }
}