@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-brand {
    font-size: 3rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 1s ease-in-out;
}

.loader-brand span {
    color: #22c55e;
}

/* Capsule Animation */
.capsule-loader {
    width: 60px;
    height: 30px;
    position: relative;
    animation: spinCapsule 2s infinite ease-in-out;
    display: flex;
}

.capsule-half-1, .capsule-half-2 {
    width: 30px;
    height: 30px;
    background: #2563eb;
}

.capsule-half-1 {
    border-radius: 30px 0 0 30px;
    animation: openCapsuleLeft 2s infinite ease-in-out;
}

.capsule-half-2 {
    background: #22c55e;
    border-radius: 0 30px 30px 0;
    animation: openCapsuleRight 2s infinite ease-in-out;
}

@keyframes spinCapsule {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes openCapsuleRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes openCapsuleLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Transitions */
.fade-in {
    opacity: 0;
    animation: fadeInPage 0.8s ease-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Page Transitions */
.fade-in {
    opacity: 0;
    animation: fadeInPage 0.8s ease-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Background Typography Outline Effect */
.text-outline-bg {
    color: transparent;
    -webkit-text-stroke: 2px rgba(148, 163, 184, 0.4);
    font-family: 'Montserrat', sans-serif;
}

.hover-letter {
    display: inline-block;
    cursor: default;
    transition: color 0.25s ease, -webkit-text-stroke 0.25s ease, text-shadow 0.25s ease;
    margin-inline: -1px;
    position: relative;
    z-index: 0;
}

/* Active: fully filled with teal, raised z-index so it overlaps neighbors */
.hover-letter.is-active {
    color: #14b8a6 !important;
    -webkit-text-stroke: 2px #14b8a6 !important;
    text-shadow:
        0 0 40px rgba(20, 184, 166, 0.6),
        2px 0 0 rgba(20, 184, 166, 0.4),
        -2px 0 0 rgba(20, 184, 166, 0.4);
    z-index: 2;
}

/* Immediate siblings: half-filled bleed effect */
.hover-letter.is-near {
    color: rgba(20, 184, 166, 0.45) !important;
    -webkit-text-stroke: 2px rgba(20, 184, 166, 0.6) !important;
    text-shadow: 0 0 20px rgba(20, 184, 166, 0.25);
    z-index: 1;
}

/* Second-degree siblings: faint glow */
.hover-letter.is-far {
    color: rgba(20, 184, 166, 0.15) !important;
    -webkit-text-stroke: 2px rgba(20, 184, 166, 0.25) !important;
    z-index: 0;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-spin-slow {
    animation: spin 10s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.group:hover .animate-float-hover {
    animation: float 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.6); }
}

.animate-glow-pulse {
    animation: glowPulse 3s infinite;
}

/* Nav Link GD Box Hover Effect */
.nav-link-gd {
    position: relative;
    padding: 0.5rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.nav-link-gd:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(34, 197, 94, 0.08) 100%);
    box-shadow: 
        0 10px 25px -5px rgba(37, 99, 235, 0.1),
        0 8px 10px -6px rgba(37, 99, 235, 0.1),
        inset 0 0 0 1px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb !important;
}

/* Transparent Navbar Hover (at top of Home) */
#navbar:not(.bg-white) .nav-link-gd:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
}

.nav-link-gd::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0;
}

.nav-link-gd:hover::after {
    width: 30%;
    opacity: 1;
}

/* Active State for GD Link */
.nav-link-gd.nav-link-active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb !important;
    font-weight: 700;
}

/* Active State for GD Link when Navbar is transparent (Dark background overlay) */
#navbar:not(.bg-white) .nav-link-gd.nav-link-active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #34d399 !important; /* Vibrant green to stand out over dark/blue overlays */
}

.nav-link-gd.nav-link-active::after {
    width: 40%;
    opacity: 1;
}

/* Mobile Nav Link GD Effect */
.mobile-nav-link-gd {
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    display: block;
    width: 100%;
}

.mobile-nav-link-gd:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    border-left-color: #2563eb;
    padding-left: 1.75rem;
    color: #2563eb !important;
}

.mobile-nav-link-gd.nav-link-active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
    border-left-color: #2563eb;
    color: #2563eb !important;
    font-weight: 700;
    padding-left: 1.75rem;
}


/* Hero shimmer keyframe (used inline on 'Private Limited' span) */
@keyframes heroShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hide scrollbars for horizontal slider elements on mobile viewports */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sticky Footer Support */
html {
    background-color: #f8fafc;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#footer-placeholder {
    margin-top: auto;
}

/* Infinite Category Marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.animate-marquee-container:hover .animate-marquee {
    animation-play-state: paused;
}
