@font-face {
    font-family: 'Alata';
    src: url('/assets/fonts/Alata-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Alata', sans-serif;
}

/* Navigation Links */
.nav-link {
    font-family: 'Alata', sans-serif;
    color: rgb(255, 255, 255);
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
}

.nav-link:hover {
    color: rgb(59, 130, 246);
}

.nav-link-mobile {
    display: block;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: rgb(255, 255, 255);
    border-radius: 0.375rem;
    transition-property: color, background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.nav-link-mobile:hover {
    color: rgb(59, 130, 246);
    background-color: rgba(30, 41, 59, 0.7);
}

/* Logo Text Styling */
.logo-text {
    font-family: 'Alata', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-text .hirawat {
    color: #3b82f6;
}

.logo-text .tech {
    color: #10b981;
}

/* Sticky Banner */
.sticky-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Floating Navbar */
.floating-navbar {
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    margin: 3rem auto 1rem;
    max-width: 90%;
    width: 800px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-image: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 100%);
}

/* Hero Feature Icon Animations */
.hero-feature .w-12,
.hero-feature .w-16 {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature:hover .w-12,
.hero-feature:hover .w-16 {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-feature img {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}

.hero-feature:hover img {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Consistent section spacing */
section {
    padding: 5rem 0;
}

section h2 {
    margin-bottom: 1.5rem;
    font-family: 'Alata', sans-serif;
}

section p {
    font-family: 'Alata', sans-serif;
    line-height: 1.6;
}

/* Mobile Hero Adjustments */
@media (max-width: 640px) {
    .hero-content {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .hero-headline {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        background-color: rgba(0, 0, 0, 0.3);
        padding: 0.5rem;
        border-radius: 0.5rem;
        display: inline-block;
    }

    .animatedText {
        height: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .animatedText span {
        font-size: 2rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-features {
        padding-top: 1.5rem;
    }

    .hero-feature {
        margin-bottom: 1rem;
    }

    .hero-cta {
        padding-top: 1rem;
    }
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

@keyframes fade-in-opacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in-opacity {
    animation: fade-in-opacity 0.4s ease-out forwards;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

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

.animate-scroll-logos {
    animation: scroll-logos 30s linear infinite;
}

@keyframes scroll-testimonials {
    to {
        transform: translate(calc(-50% - 1rem));
    }
}

.animate-scroll {
    animation: scroll-testimonials 30s linear infinite;
}

.animatedText {
    position: relative;
    display: block;
    height: 1.5em;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    font-family: 'Alata', sans-serif;
}

.animatedText span {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    display: block;
    transform: translateX(-50%);
    left: 50%;
    margin: 0 auto;
}

.animatedText span.visible {
    opacity: 1;
}

/* Define colors for each span */
.animatedText .animate1 {
    color: #3b82f6;
}

.animatedText .animate2 {
    color: #8b5cf6;
}

.animatedText .animate3 {
    color: #ec4899;
}

.animatedText .animate4 {
    color: #f97316;
}

.animatedText .animate5 {
    color: #10b981;
}

/* Loading Animation Styles - Critical for initial page load */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-spinner {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.loading-logo {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hirawat {
    color: #3b82f6;
}

.tech {
    color: #f59e0b;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(90%);
        opacity: 0.7;
    }
    50% {
        transform: scale(110%);
        opacity: 1;
    }
    100% {
        transform: scale(90%);
        opacity: 0.7;
    }
}

.loading-hidden {
    opacity: 0;
    visibility: hidden;
}