/* =====================
   GENERAL
===================== */
body {
    background: #ffffff;
    color: #0b1c2d;
    font-family: 'Inter', sans-serif;
}

/* =====================
   NAVBAR
===================== */
.zlynq-navbar {
    background: #ffffff;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar-scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}

.nav-link.active {
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd;
}

/* Navbar logo */
.zlynq-logo {
    height: 40px;
}

/* Social Icons */
.social-links {
    gap: 10px;
}

.social-icon {
    color: #105591;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
}


@media (max-width: 576px) {
    .zlynq-logo {
        height: 28px;
    }
}


/* =====================
   HERO SECTION (Premium)
===================== */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider wrapper */
.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Each slide */
.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Active slide */
.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slide images */
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide text overlay */
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    padding: 0 20px;
    max-width: 90%;
}


.slider-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons fixed */
.hero-buttons {
    position: absolute;
    bottom: 40px;
    width: 100%;
    z-index: 4;
}

/* Floating shapes behind */
.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.floating-shapes span {
    position: absolute;
    display: block;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: floatShapes 20s linear infinite;
}
.floating-shapes span:nth-child(1) { left:10%; top:20%; width:30px; height:30px; }
.floating-shapes span:nth-child(2) { left:80%; top:10%; width:20px; height:20px; }
.floating-shapes span:nth-child(3) { left:50%; top:70%; width:25px; height:25px; }
.floating-shapes span:nth-child(4) { left:30%; top:50%; width:35px; height:35px; }
.floating-shapes span:nth-child(5) { left:70%; top:80%; width:20px; height:20px; }

@keyframes floatShapes {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(10px); }
    50% { transform: translateY(20px) translateX(-10px); }
    75% { transform: translateY(-10px) translateX(15px); }
    100% { transform: translateY(0) translateX(0); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* Floating background shapes */
.floating-shapes span {
    position: absolute;
    display: block;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.08);
    animation: float 15s linear infinite;
    border-radius: 50%;
}

.floating-shapes span:nth-child(1) { top: 20%; left: 10%; }
.floating-shapes span:nth-child(2) { top: 60%; left: 80%; }
.floating-shapes span:nth-child(3) { top: 80%; left: 30%; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-40px); }
    100% { transform: translateY(0px); }
}

/* =====================
   IMAGE SLIDER
===================== */
.image-slider {
    position: relative;
    width: 460px;
    height: 320px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
}

/* All images stacked */
.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Only active image visible */
.slider-img.active {
    opacity: 1;
    z-index: 2;
}

/* =====================
   SECTIONS
===================== */
.services-section,
.about-section,
.values-section,
.core-services-section {
    padding: 80px 0;
    background: #ffffff;
}

/* =====================
   PREMIUM CARDS
===================== */
.service-card,
.value-card,
.about-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Hover effect */
.service-card:hover,
.value-card:hover,
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    background: #eaf4ff;        /* light blue */
    border-color: #cfe2ff;      /* subtle border */
}

/* Core services card center style */
.core-services-section .service-card {
    text-align: center;
}

/* =====================
   ICONS
===================== */
.value-icon,
.service-icon {
    font-size: 36px;
    color: #0d6efd;
    margin-bottom: 10px;
    display: block;
}

/* =====================
   TITLES
===================== */
.section-title {
    font-weight: 700;
    font-size: 30px;
    color: #021c44;
}

.section-subtitle {
    color: #185b96;
    font-size: 1px;
}

/* =====================
   BUTTONS
===================== */
.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0056d6);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link {
    color: #0b1c2d !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}


/* =====================
   FOOTER
===================== */
.zlynq-footer {
    background: #021c44;
    color: #fff;
    padding: 20px;
}

/* =====================
   SCROLL TOP
===================== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
}

/* =====================
   PAGE LOADER
===================== */
#pageLoader {
    position: fixed;
    inset: 0;
    background: #021c44;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#pageLoader.fade-out {
    opacity: 0;
    transform: scale(1.05);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade / slide animations */
.fade-in, .slide-up, .zoom-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.visible,
.slide-up.visible,
.zoom-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Zoom-in effect for images */
.zoom-in {
    transform: scale(0.9);
}

.zoom-in.visible {
    transform: scale(1);
}

/* Slight delay for staggered animations */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }


/* Timeline */
.timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 30px;
    border-left: 3px solid #0d6efd;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border-radius: 50%;
}

/* Counter */
.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d6efd;
}

/* Fade-in stagger */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* Counter Styling */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: #0d6efd; /* tech blue */
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.floating-shapes span {
    position: absolute;
    display: block;
    background: rgba(13, 110, 253, 0.2); /* light blue */
    border-radius: 50%;
    animation: floatShapes 10s linear infinite;
}

/* Random positions & sizes */
.floating-shapes span:nth-child(1) { left: 10%; top: 20%; animation-duration: 12s; width: 25px; height: 25px; }
.floating-shapes span:nth-child(2) { left: 80%; top: 10%; animation-duration: 15s; width: 15px; height: 15px; }
.floating-shapes span:nth-child(3) { left: 50%; top: 70%; animation-duration: 18s; width: 20px; height: 20px; }
.floating-shapes span:nth-child(4) { left: 30%; top: 50%; animation-duration: 20s; width: 30px; height: 30px; }
.floating-shapes span:nth-child(5) { left: 70%; top: 80%; animation-duration: 25s; width: 18px; height: 18px; }

/* Floating animation */
@keyframes floatShapes {
    0% { transform: translateY(0) translateX(0); opacity: 0.6; }
    25% { transform: translateY(-30px) translateX(10px); opacity: 0.8; }
    50% { transform: translateY(20px) translateX(-10px); opacity: 0.4; }
    75% { transform: translateY(-10px) translateX(15px); opacity: 0.7; }
    100% { transform: translateY(0) translateX(0); opacity: 0.6; }
}


/* Oval Shape for Title */
.oval-text {
    display: inline-block;
    padding: 20px 60px;
    border-radius: 50px; /* creates oval/pill shape */
    background: rgba(255, 255, 255, 0.2); /* semi-transparent white */
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(5px); /* modern glass effect */
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
}

/* Scrolling Text Wrapper */
.scrolling-text-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-top: 20px;
}

/* Scrolling Text */
.scrolling-text {
    display: inline-block;
    padding-left: 100%; /* start off-screen right */
    animation: scrollText 20s linear infinite;
    font-size: 1.25rem;
}

/* Animation keyframes */
@keyframes scrollText {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .oval-text { font-size: 1.8rem; padding: 15px 40px; }
    .scrolling-text { font-size: 1rem; }
}

/* Hover dropdown */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Mega menu style */
.mega-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Dropdown item spacing */
.dropdown-item {
    padding: 8px 15px;
    transition: 0.3s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}

/* HERO */
.partner-hero {
    background: url('../images/slider/technology.jpg') center/cover no-repeat;
    height: 60vh;
    position: relative;
}

.hero-overlay {
    background: rgba(8,24,40,0.75);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    color: white;
    font-size: 44px;
    font-weight: 700;
}

.hero-subtitle {
    color: #ddd;
    font-size: 18px;
    margin-top: 10px;
}


/* LOGO SLIDER */
.logo-slider {
    overflow: hidden;
    background: #fff;
    padding: 30px 0;
}

.logo-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 25s linear infinite;
}

.logo-track img {
    width: 150px;
    margin: 0 40px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.logo-track img:hover {
    filter: grayscale(0%);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* PARTNER CARDS */
.partners-section {
    padding: 80px 0;
    background: #f4f6f9;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.partner-card:hover {
    transform: translateY(-12px);
}

.partner-card img {
    width: 100px;
    margin-bottom: 15px;
}


/* STATS */
.stats-section {
    background: #081828;
    color: white;
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    text-align: center;
}

.stat-box h2 {
    font-size: 40px;
    color: #6c63ff;
}
.service-hero {
    background: url('../images/slider/technology.jpg') center/cover no-repeat;
    height: 55vh;
    position: relative;
}

.service-hero .overlay {
    background: rgba(0,0,0,0.6);
    height: 100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
}

.service-about {
    padding:80px 0;
}

.service-features {
    padding:80px 0;
    background:#f5f7fa;
}

.feature-card {
    background:white;
    padding:25px;
    border-radius:12px;
    text-align:center;
    transition:.3s;
}

.feature-card:hover {
    transform:translateY(-8px);
}

.service-cta {
    background:#081828;
    color:white;
    padding:60px 0;
}



/* =====================
   LIGHT MODE (Optional)
===================== */
body.light-mode {
    background: #f8f9fa;
    color: #111;
}

.services-hero {
    background: url('images/services-bg.jpg') center/cover no-repeat;
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-hero .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero {
    background: url('images/contact-bg.jpg') center/cover no-repeat;
    height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero .overlay {
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
}

.contact-card {
    background:white;
    border-radius:8px;
    transition:0.3s;
}

.contact-card:hover {
    transform:translateY(-5px);
}


/* ================= ADMIN AUTH STYLING ================= */

.auth-section {
    min-height: 100vh;
    background: url('../images/admin-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(8, 24, 40, 0.85);
}

.auth-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 40px;
    color: #fff;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.auth-card h3 {
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.auth-card .form-control {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
}

.auth-card .form-control:focus {
    background: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: none;
}

.auth-btn {
    background: linear-gradient(45deg, #007bff, #00c6ff);
    border: none;
    font-weight: 500;
    padding: 10px;
    transition: 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
}
