/* Custom Styles for NexGen Global Services */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #b8941f);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e5c158, #d4af37);
}

/* Selection Color */
::selection {
    background: #d4af37;
    color: #0a1628;
}

/* Preloader */
#preloader {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Navbar Styles */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled .nav-link:hover {
    color: #d4af37;
}

/* Navigation Link Underline Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Service Card Hover Glow */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

/* Package Card Hover */
.package-card {
    transition: all 0.3s ease;
}

/* Market Card Hover */
.market-card {
    transition: all 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
}

/* Industry Tag Hover */
.industry-tag {
    transition: all 0.3s ease;
}

/* Partner Card */
.partner-card {
    transition: all 0.3s ease;
}

/* Team Card */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Form Input Focus */
input:focus,
textarea:focus,
select:focus {
    transform: translateY(-1px);
}

/* Footer newsletter input: ensure visible border on dark footer */
footer input[type="email"] {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background-color: rgba(255, 255, 255, 0.08);
}

footer input[type="email"]:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

footer button[type="submit"] {
    border: 1px solid #d4af37;
    border-left: none;
}

/* Button Press Effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Back to Top Button */
#back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

/* FAQ Accordion (if needed) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Hero background */
#home {
    background-attachment: scroll;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 2rem;
    }
}

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

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

/* Subtle pulse animation for hero decorations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

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

/* Fade Up Animation for fallback */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.8s ease forwards;
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.9s; }

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #e5c158 50%, #f0d878 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Box shadow utilities */
.shadow-gold {
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.shadow-navy {
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.2);
}

/* Ensure smooth AOS animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    #preloader {
        display: none !important;
    }
}
