/* CK GridLynx - Custom Styles */
/* Brand Colors: Navy #1A4B8C, Teal #59C0C6, Purple #3C2E70 */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0B1121;
}

::-webkit-scrollbar-thumb {
    background: #1E2D45;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #59C0C6;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #1E2D45 #0B1121;
}

/* Navbar styling */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

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

@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

/* Utility Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

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

.animate-slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

.animate-scroll-dot {
    animation: scroll-dot 1.5s ease-in-out infinite;
}

/* Gradient Text - matches logo teal-to-navy gradient */
.gradient-text {
    background: linear-gradient(135deg, #59C0C6 0%, #1A4B8C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.15em;
}


/* Card Hover Effect */
.card-hover {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 12px 40px rgba(89, 192, 198, 0.15);
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text Selection */
::selection {
    background-color: #59C0C6;
    color: #0B1121;
}

::-moz-selection {
    background-color: #59C0C6;
    color: #0B1121;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #59C0C6;
    box-shadow: 0 0 0 3px rgba(89, 192, 198, 0.1);
}

/* Fade In Animation */
.fade-in {
    animation: fade-in 0.6s ease-out;
}

/* Active nav link */
.nav-link.active {
    color: #1A4B8C;
    font-weight: 700;
    border-bottom: 2px solid #59C0C6;
}

/* Reusable branded hover for nav/footer links */
.nav-hover {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-hover:hover {
    background-color: #1A4B8C;
    color: #fff;
}

/* Responsive image helpers */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure body doesn't scroll horizontally on mobile */
body {
    overflow-x: hidden;
}

/* Better touch targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    #mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
