/**
 * Modern AI Startup Redesign - Abstract Prussian Blue Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Advanced Viewport-Relative Scaling System */
    /* Base: 16px at 1440px -> 1.11vw */
    /* Minimum: 15px for small desktops */
    /* Maximum: 24px for 4K+ displays to maintain premium feel */
    font-size: clamp(15px, 1.11vw, 24px);

    /* Refined Color Palette */
    --prussian-blue: #0B3C5D;
    --sky-blue: #328CC1;
    --gold-leaf: #FFD700; 
    --ivory-black: #1D2731;
    
    --bg-main: #FFFFFF; 
    --bg-secondary: #F8FAFC; 
    --text-main: var(--ivory-black);
    --text-muted: #4a5568;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(11, 60, 93, 0.1);
    --shadow-soft: 0 10px 30px rgba(11, 60, 93, 0.08);
}

/* Fluid Container Scaling */
.container {
    width: 92%; /* Dynamic gutter */
    max-width: 85rem; /* ~1360px */
    margin-right: auto;
    margin-left: auto;
}

@media screen and (min-width: 1600px) {
    .container { max-width: 95rem; } /* Progressive scaling for WQHD */
}

@media screen and (min-width: 2000px) {
    .container { max-width: 110rem; } /* Progressive scaling for 4K */
}

@media screen and (min-width: 3000px) {
    .container { max-width: 140rem; } /* Progressive scaling for Ultrawide 5K+ */
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.text-sky { color: var(--sky-blue) !important; }
.text-gold { color: var(--gold-leaf) !important; }
.text-prussian { color: var(--prussian-blue) !important; }

.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vh, 6rem) 0;
    background: linear-gradient(135deg, var(--ivory-black) 0%, #132738 50%, var(--ivory-black) 100%);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: drift-bg 60s linear infinite;
    z-index: 0;
}

.neural-canvas {
    display: none;
}

@keyframes drift-bg {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 500px; }
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 9.375rem;
    background: linear-gradient(to top, var(--bg-main) 0%, transparent 100%);
    z-index: 1;
}

.display-hero {
    font-size: clamp(2rem, 4.5vw, 3.8rem) !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 0.5em;
    color: white;
}

.display-section {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5em;
    color: var(--prussian-blue);
}

.typing-container {
    display: inline-block;
}

.typing-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
}

.typing-text.block-1 {
    width: 0;
    animation: typing1 1s steps(20, end) forwards;
}

.typing-text.block-2 {
    width: 0;
    opacity: 0;
    animation: typing2 1.2s steps(20, end) 1s forwards;
}

@keyframes typing1 {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes typing2 {
    from { width: 0; opacity: 1; }
    to { width: 100%; opacity: 1; }
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1.25rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 1.875rem 3.75rem rgba(0, 0, 0, 0.4), 0 0 2.5rem rgba(50, 140, 193, 0.2);
    overflow: hidden;
    transform: perspective(62.5rem) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    width: 100%;
}

.dashboard-preview:hover {
    transform: perspective(62.5rem) rotateY(-5deg) rotateX(2deg) translateY(-0.625rem);
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9375rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.dashboard-body {
    padding: clamp(1rem, 2vw, 1.5rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 0.9375rem;
    min-height: 18.75rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.dash-card.main {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(50, 140, 193, 0.1), transparent);
}

.dash-bar {
    background: rgba(50, 140, 193, 0.2);
    border-radius: 4px;
    margin-bottom: 8px;
}

.dash-bar.active { background: var(--sky-blue); }

.logo-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.logo-track {
    display: flex;
    width: max-content; 
    animation: scroll 30s linear infinite;
    align-items: center;
}

.logo-item {
    padding: 0 30px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-item .trusted-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item:hover {
    transform: scale(1.03);
}

.logo-item:hover .trusted-logo {
    opacity: 1;
}

.client-logo {
    height: 70px;
    width: auto;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

.vision-card {
    background: #ffffff;
    border: 1px solid rgba(11, 60, 93, 0.1);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 60, 93, 0.1);
    border-color: rgba(11, 60, 93, 0.2);
}

.vision-icon {
    width: 60px;
    height: 60px;
    background: rgba(50, 140, 193, 0.1);
    color: var(--sky-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.vision-card:hover .vision-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--sky-blue);
    color: #fff;
}

/* Expanded Layout Utilities */
.container-fluid.px-lg-12 {
    padding-left: 10% !important;
    padding-right: 10% !important;
}

.px-lg-10 {
    padding-left: 8% !important;
    padding-right: 8% !important;
}

.icon-box-large {
    width: 80px;
    height: 80px;
    background: rgba(50, 140, 193, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-hover-expand {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.card-hover-expand:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 60px rgba(11, 60, 93, 0.1) !important;
    border-color: var(--sky-blue) !important;
}

.card-hover-expand:hover .icon-box-large {
    background: var(--sky-blue);
    color: white !important;
    transform: rotate(-5deg);
}

.bg-ivory-dark {
    background-color: var(--ivory-black) !important;
    color: #fff;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--gold-leaf);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
}

.btn-gold {
    background: var(--gold-leaf);
    border: none;
    color: var(--ivory-black);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    background: #FFE133;
}

.bg-gradient-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.orb-1 {
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--sky-blue), transparent);
}

.orb-2 {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--gold-leaf), transparent);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Spacing */
.py-section {
    padding-top: clamp(3rem, 10vh, 6rem);
    padding-bottom: clamp(3rem, 10vh, 6rem);
}

/* Vision Cards */
.vision-card {
    background: #ffffff;
    border: 1px solid rgba(11, 60, 93, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.vision-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gold-leaf);
    transition: width 0.4s ease;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 60, 93, 0.1);
    border-color: rgba(11, 60, 93, 0.2);
}

.vision-card:hover::after {
    width: 100%;
}

.vision-icon {
    width: 60px;
    height: 60px;
    background: rgba(50, 140, 193, 0.1);
    color: var(--sky-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.vision-card:hover .vision-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--sky-blue);
    color: #fff;
}

/* Why Choose Us Cubes */
#why-choose-us {
    isolation: isolate;
}

.wcu-bg-elements {
    overflow: hidden;
}

.wcu-bg-elements::before,
.wcu-bg-elements::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    will-change: transform, opacity;
}

.wcu-bg-elements::before {
    width: min(42vw, 500px);
    height: min(42vw, 500px);
    top: -20%;
    left: -10%;
    background: radial-gradient(circle at 30% 30%, rgba(50, 140, 193, 0.16) 0%, rgba(50, 140, 193, 0) 68%);
    animation: wcuGlowDriftA 16s ease-in-out infinite;
}

.wcu-bg-elements::after {
    width: min(34vw, 420px);
    height: min(34vw, 420px);
    right: -6%;
    bottom: -22%;
    background: radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0) 70%);
    animation: wcuGlowDriftB 18s ease-in-out infinite;
}

.wcube {
    position: absolute;
    background: rgba(50, 140, 193, 0.07);
    border: 1px solid rgba(50, 140, 193, 0.16);
    border-radius: 12px;
    animation: float-cube 15s infinite linear;
    z-index: 0;
}

.wcube-1 { width: 150px; height: 150px; top: -50px; left: -50px; animation-duration: 25s; }
.wcube-2 { 
    width: 80px; height: 80px; bottom: 20%; right: 10%; animation-duration: 18s;
    background: rgba(255, 215, 0, 0.03); border-color: rgba(255, 215, 0, 0.08);
}
.wcube-3 { width: 120px; height: 120px; top: 65%; left: 40%; animation-duration: 30s; animation-direction: reverse; }

@keyframes float-cube {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes wcuGlowDriftA {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate3d(24px, 18px, 0) scale(1.08); opacity: 0.82; }
}

@keyframes wcuGlowDriftB {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate3d(-18px, -22px, 0) scale(1.06); opacity: 0.76; }
}

@media (prefers-reduced-motion: reduce) {
    .wcu-bg-elements::before,
    .wcu-bg-elements::after,
    .wcube {
        animation: none !important;
    }
}

/* Glass Card Enhanced & Specific Variants */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.07);
    z-index: 10;
}

/* Sky Theme Card */
.glass-card-sky {
    border-color: rgba(50, 140, 193, 0.3) !important;
}
.glass-card-sky:hover {
    border-color: var(--sky-blue) !important;
    box-shadow: 0 20px 40px rgba(50, 140, 193, 0.25), 0 0 20px rgba(50, 140, 193, 0.1);
}

/* Gold Theme Card */
.glass-card-gold {
    border-color: rgba(255, 215, 0, 0.3) !important;
}
.glass-card-gold:hover {
    border-color: var(--gold-leaf) !important;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.25), 0 0 20px rgba(255, 215, 0, 0.1);
}

.bg-ivory-dark .glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Contact Section & Form */
.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-leaf);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-ring-gold:focus {
    border-color: var(--gold-leaf) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25) !important;
}

.tracking-wide { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.15em; }

.hover-sky:hover { color: var(--sky-blue) !important; }

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.premium-toast {
    background: rgba(29, 39, 49, 0.95);
    backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(50, 140, 193, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
    opacity: 0;
    pointer-events: auto;
    min-width: 20rem;
}

.premium-toast.visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(50, 140, 193, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-blue);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.toast-message {
    font-size: 0.8rem;
    opacity: 0.8;
}


