/* ============================================
   UK Turks — Modern Animations & Visual Styles
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ========================
   Glassmorphism Navbar
   ======================== */
.navbar {
    background: rgba(38, 36, 49, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 201, 219, 0.12) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35) !important;
    transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

.navbar.scrolled {
    background: rgba(38, 36, 49, 0.97) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.55) !important;
}

/* Animated underline on nav links */
.navbar .nav-item .nav-link {
    position: relative;
}

.navbar .nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c9db, #b90066);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.navbar .nav-item .nav-link:hover::after {
    width: 70%;
}

/* ============================
   Header — Keep background.jpg
   ============================ */
.header {
    position: relative;
    overflow: hidden;
    padding-top: 10rem;
    padding-bottom: 9rem;
}

/* Animated gradient overlay on top of the background image */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 201, 219, 0.18) 0%,
        rgba(47, 44, 61, 0.55) 45%,
        rgba(185, 0, 102, 0.14) 100%
    );
    background-size: 300% 300%;
    animation: gradient-shift 14s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header .container {
    position: relative;
    z-index: 2;
}

/* ========================
   Floating Particles
   ======================== */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particle-rise linear infinite;
}

@keyframes particle-rise {
    0%   { transform: translateY(0) scale(0.5) rotate(0deg);   opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) scale(1.2) rotate(360deg); opacity: 0; }
}

/* ========================
   Entrance Animations
   ======================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(45px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-45px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(45px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animate-fadeInUp    { animation: fadeInUp    0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fadeInLeft  { animation: fadeInLeft  0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fadeInRight { animation: fadeInRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.35s; }
.delay-3 { animation-delay: 0.55s; }
.delay-4 { animation-delay: 0.75s; }
.delay-5 { animation-delay: 0.95s; }

/* ========================
   Glowing Rotating Text
   ======================== */
.header h1 #js-rotating {
    animation: text-glow 2.5s ease-in-out infinite;
}

@keyframes text-glow {
    0%,  100% { text-shadow: 0 0 20px rgba(0, 201, 219, 0.35); }
    50%        { text-shadow: 0 0 45px rgba(0, 201, 219, 0.85), 0 0 70px rgba(0, 201, 219, 0.25); }
}

/* ========================
   Enhanced Buttons
   ======================== */
.btn-solid-lg {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    box-shadow: 0 4px 18px rgba(0, 201, 219, 0.28) !important;
    transform: translateY(0);
}

.btn-solid-lg:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 32px rgba(0, 201, 219, 0.48) !important;
}

/* Shimmer sweep effect */
.btn-solid-lg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -110%;
    width: 55%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-22deg);
    transition: left 0.65s ease;
}

.btn-solid-lg:hover::after {
    left: 160%;
}

/* Soft pulse on the first CTA button */
.header .btn-solid-lg:first-child {
    animation: btn-pulse 3.5s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%,  100% { box-shadow: 0 4px 18px rgba(0, 201, 219, 0.3); }
    50%        { box-shadow: 0 4px 32px rgba(0, 201, 219, 0.65), 0 0 55px rgba(0, 201, 219, 0.15); }
}

/* ========================
   Version Badges
   ======================== */
.version-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: default;
    line-height: 1.4;
}

a.version-badge {
    cursor: pointer;
}

.version-badge.badge-cyan {
    background: rgba(0, 201, 219, 0.1);
    border: 1px solid rgba(0, 201, 219, 0.35);
    color: #00c9db !important;
}

.version-badge.badge-pink {
    background: rgba(185, 0, 102, 0.1);
    border: 1px solid rgba(185, 0, 102, 0.35);
    color: #ff4dac !important;
}

a.version-badge.badge-cyan:hover {
    background: rgba(0, 201, 219, 0.22);
    box-shadow: 0 4px 18px rgba(0, 201, 219, 0.3);
    transform: translateY(-2px);
    color: #fff !important;
}

a.version-badge.badge-pink:hover {
    background: rgba(185, 0, 102, 0.22);
    box-shadow: 0 4px 18px rgba(185, 0, 102, 0.3);
    transform: translateY(-2px);
    color: #fff !important;
}

/* ========================
   Floating Phone Image
   ======================== */
.header-image-wrapper {
    animation: float-phone 7s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes float-phone {
    0%,  100% { transform: translateY(0px) rotate(-1deg); }
    50%        { transform: translateY(-18px) rotate(1deg); }
}

/* ========================
   Scroll Indicator Arrows
   ======================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.scroll-indicator span {
    display: block;
    width: 16px;
    height: 16px;
    border-right: 2px solid rgba(0, 201, 219, 0.6);
    border-bottom: 2px solid rgba(0, 201, 219, 0.6);
    transform: rotate(45deg);
    animation: scroll-arrow 1.8s ease infinite;
}

.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; opacity: 0.6; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; opacity: 0.3; }

@keyframes scroll-arrow {
    0%   { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

/* ============================
   Features Section
   ============================ */
.features-section {
    padding: 6.5rem 0 5.5rem;
    background: linear-gradient(180deg, #28253a 0%, #201d2f 100%);
    position: relative;
    overflow: hidden;
}

/* Top divider line */
.features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 219, 0.45), rgba(185, 0, 102, 0.3), transparent);
}

/* Subtle background glow blobs */
.features-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 201, 219, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #00c9db;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.section-title {
    color: #f1f1f8;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00c9db, #b90066);
    margin: 0 auto 3.5rem;
    border-radius: 2px;
    animation: divider-grow 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.4s;
}

@keyframes divider-grow {
    from { width: 0; opacity: 0; }
    to   { width: 50px; opacity: 1; }
}

/* ========================
   Feature Cards
   ======================== */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Top gradient bar — expands on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c9db, #b90066);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    pointer-events: none;
}

/* Glow halo behind card */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    opacity: 0;
    box-shadow: 0 0 50px rgba(0, 201, 219, 0.08) inset;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    background: rgba(0, 201, 219, 0.04);
    border-color: rgba(0, 201, 219, 0.18);
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after  { opacity: 1; }

/* Icon circle */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 201, 219, 0.1);
    border: 1px solid rgba(0, 201, 219, 0.2);
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: #00c9db;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-icon .iconify {
    font-size: 1.75rem;
    display: block;
}

.feature-card:hover .feature-icon {
    background: rgba(0, 201, 219, 0.18);
    border-color: rgba(0, 201, 219, 0.4);
    box-shadow: 0 0 30px rgba(0, 201, 219, 0.3);
    transform: scale(1.12) rotate(6deg);
}

.feature-card h5 {
    color: #f1f1f8;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: rgba(241, 241, 248, 0.65);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.feature-card .card-link {
    margin-top: 1.25rem;
    display: inline-flex;
}

/* ========================
   Scroll Reveal
   ======================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   Modern Footer
   ======================== */
.footer.bg-dark-blue {
    background: linear-gradient(180deg, #1d1a2b 0%, #141222 100%) !important;
    border-top: none;
    padding-top: 4rem;
    padding-bottom: 1rem;
    position: relative;
}

.footer.bg-dark-blue::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 219, 0.4), rgba(185, 0, 102, 0.35), transparent);
}

.footer h6 {
    color: #00c9db !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 201, 219, 0.15);
    display: inline-block;
}

.footer a:hover {
    color: #00c9db !important;
    text-decoration: none;
}

/* Copyright bar */
.copyright.bg-dark-blue {
    background: rgba(14, 12, 22, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 991.98px) {
    .header { padding-top: 8rem; padding-bottom: 6rem; }
    .header-image-wrapper { margin-top: 2.5rem; }
    .features-section { padding: 5rem 0 4rem; }
}

@media (max-width: 575.98px) {
    .feature-card { padding: 2rem 1.25rem 1.75rem; }
    .section-title { font-size: 1.65rem; }
    .version-badges { justify-content: flex-start; }
    .scroll-indicator { display: none; }
}
