@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --brand-blue: #1A56A6;
    --brand-red: #E31E24;
    --brand-slate: #0F172A;
    --text-main: #475569;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 100;
    pointer-events: none;
    z-index: 9999;
}

.ambient-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-blue) 0%, transparent 60%);
    filter: blur(140px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    animation: blob-float 30s infinite alternate ease-in-out;
}

@keyframes blob-float {
    0% {
        transform: translate(-10%, -10%) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(20%, 30%) rotate(180deg) scale(1.3);
    }
}

.logo-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brand-blue), var(--brand-red), transparent);
    width: 60%;
    opacity: 0.15;
    z-index: 1;
    transform: rotate(-15deg);
    pointer-events: none;
}

.curved-red-laser,
.curved-blue-laser {
    position: absolute;
    width: 100%;
    height: 150px;
    background-repeat: repeat-x;
    background-size: 1000px 150px;
    z-index: 1;
    pointer-events: none;
    animation: wave-drift 10s infinite linear;
    will-change: background-position-x;
}

.curved-red-laser {
    background-image: url("data:image/svg+xml,%3Csvg width='1000' height='150' viewBox='0 0 1000 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 75 Q 250 150 500 75 T 1000 75' stroke='%23E31E24' stroke-width='4' fill='none' opacity='0.9'/%3E%3C/svg%3E");
    filter: blur(6px) drop-shadow(0 0 25px rgba(227, 30, 36, 0.9));
    opacity: 0.3;
}

.curved-blue-laser {
    background-image: url("data:image/svg+xml,%3Csvg width='1000' height='150' viewBox='0 0 1000 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 75 Q 250 0 500 75 T 1000 75' stroke='%231A56A6' stroke-width='4' fill='none' opacity='0.9'/%3E%3C/svg%3E");
    filter: blur(6px) drop-shadow(0 0 25px rgba(26, 86, 166, 0.9));
    opacity: 0.25;
    animation-delay: -5s;
    animation-duration: 15s;
}

@keyframes wave-drift {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1000px;
    }
}

.section-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(26, 86, 166, 0.08), transparent 70%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.organic-blend {
    clip-path: ellipse(120% 100% at 50% 100%);
}

.organic-blend-top {
    clip-path: ellipse(120% 100% at 50% 0%);
}

#hero {
    position: relative;
    background-color: white;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('hero-constellation-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 10;
}

.scanning-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(26, 86, 166, 0.05), transparent);
    transform: skewX(-25deg);
    animation: scan 15s infinite linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-slate);
    background: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(26, 86, 166, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(227, 30, 36, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(26, 86, 166, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(227, 30, 36, 0.1) 0px, transparent 50%);
    background-size: 200% 200%;
    animation: mesh-drift 15s infinite alternate ease-in-out;
    overflow-x: hidden;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

@keyframes mesh-drift {
    0% {
        background-position: 0% 0%;
    }

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

@media (max-width: 767px) {
    body {
        animation: none !important;
        background-position: 50% 50% !important;
    }
    .ambient-blob {
        animation: none !important;
        display: none !important;
    }
    .scanning-beam {
        animation: none !important;
        display: none !important;
    }
    .curved-red-laser, .curved-blue-laser {
        animation: none !important;
        opacity: 0.1 !important;
    }
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.04em;
    font-weight: 900;
}

/* --- Mobile App-Like Navigation Bar --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 0 15px;
    animation: slide-up-nav 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up-nav {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 25px; opacity: 1; }
}

.nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--brand-slate);
    text-decoration: none;
    transition: 0.3s;
    flex: 1;
}

.nav-item-mobile i {
    font-size: 1.2rem;
}

.nav-item-mobile span {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-item-mobile.active {
    color: var(--brand-blue);
}

.nav-item-mobile.active i {
    transform: translateY(-5px);
    text-shadow: 0 5px 15px rgba(26, 86, 166, 0.2);
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 110px !important;
    }
}

/* --- NEW MINIMALIST CURSOR --- */
#custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--brand-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
    box-shadow: 0 0 15px var(--brand-blue), 0 0 30px rgba(26, 86, 166, 0.4);
}

#cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(26, 86, 166, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

.cursor-hover {
    width: 80px !important;
    height: 80px !important;
    background: rgba(26, 86, 166, 0.05) !important;
    border-color: var(--brand-blue) !important;
}

/* --- Progress Line --- */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--brand-blue), var(--brand-red));
    width: 0%;
    z-index: 999999;
    box-shadow: 0 0 20px rgba(26, 86, 166, 0.6);
}

/* --- Background VFX --- */
.starfield {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 100% 0%, #ffffff 0%, #f1f5f9 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: var(--brand-blue);
    border-radius: 50%;
    opacity: 0.1;
    animation: star-float var(--d) linear infinite;
}

@keyframes star-float {
    from {
        transform: translateY(100vh) scale(1);
    }

    to {
        transform: translateY(-100vh) scale(1.5);
    }
}

/* --- Navigation --- */
header {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px) saturate(200%);
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-link {
    position: relative;
}

.nav-link.nav-active, .mobile-nav-link.nav-active {
    color: var(--brand-blue) !important;
    text-shadow: 0 0 15px rgba(26, 86, 166, 0.1);
}

.nav-link { position: relative; }
.mobile-nav-link { position: relative; }

.nav-link.nav-active::after, .mobile-nav-link.nav-active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--brand-blue);
    box-shadow: 0 0 8px rgba(26, 86, 166, 0.3);
    transform-origin: center;
    border-radius: 20px;
    animation: nav-active-underline 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes nav-active-underline {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

/* --- Premium Typography --- */
.hero-title {
    font-size: clamp(2.8rem, 10vw, 8rem);
    line-height: 0.9;
    text-shadow: 0 0 50px rgba(26, 86, 166, 0.05);
}

.section-title {
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--brand-slate) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-reveal {
    animation: blur-in-reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blur-in-reveal {
    from {
        filter: blur(30px);
        opacity: 0;
        transform: scale(0.95) translateY(60px);
    }

    to {
        filter: blur(0);
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- High-End Cards --- */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(25px) saturate(220%);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 2rem;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    will-change: transform, opacity;
}

@media (min-width: 768px) {
    .glass-card {
        border-radius: 3.5rem;
    }
}

.glass-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: white;
    box-shadow: 0 40px 80px rgba(26, 86, 166, 0.12), 0 0 20px rgba(26, 86, 166, 0.05);
    border-color: var(--brand-blue);
}

/* --- Buttons --- */
.btn-ultimate {
    background: var(--brand-blue);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    transition: 0.4s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    box-shadow: 0 15px 40px rgba(26, 86, 166, 0.2);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .btn-ultimate {
        padding: 1.6rem 3.8rem;
        border-radius: 1.5rem;
        font-size: 0.8rem;
    }
}

.btn-ultimate::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn-ultimate:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-ultimate:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(26, 86, 166, 0.3);
}

.btn-secondary {
    border: 2px solid var(--brand-slate);
    padding: 1.6rem 3.8rem;
    border-radius: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.4s;
}

.btn-secondary:hover {
    background: var(--brand-slate);
    color: white;
}

/* --- Floating Animation --- */
.ui-floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .reveal {
        transform: translateY(80px) rotateX(10deg);
        filter: blur(20px);
        transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
}

/* --- Tech Node Animations --- */
.pulse-glow {
    box-shadow: 0 0 0 0 rgba(26, 86, 166, 0.4);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    70% {
        box-shadow: 0 0 0 15px rgba(26, 86, 166, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 86, 166, 0);
    }
}

.pulse-glow-red {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    70% {
        box-shadow: 0 0 0 15px rgba(227, 30, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0);
    }
}

.scanning-glow {
    animation: scanning 3s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

@keyframes scanning {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* --- Contact Form --- */
.input-minimal {
    width: 100%;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.input-minimal:focus {
    outline: none;
    background: white;
    border-color: var(--brand-blue);
    box-shadow: 0 10px 30px rgba(26, 86, 166, 0.05);
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--brand-blue), var(--brand-red));
    border-radius: 10px;
}