/* styles.css */
:root {
    --primary-color: #5165f3;      /* Bright blue */
    --secondary-color: #565C8A;    /* Muted blue-gray */
    --dark-color: #111431;         /* Deep navy blue */
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #4CAF50;
    
    /* Light mode colors */
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --header-bg: #ffffff;
    --footer-bg: #0F1439;          /* Dark blue */
    --footer-text: #ffffff;
    --section-bg: #f8f9fa;
    --shadow-color: rgba(17, 20, 49, 0.1); /* Navy blue shadow */
    --input-bg: #ffffff;
    --accent-light: #171B40;       /* Medium navy blue */
}

.dark-mode {
    /* Dark mode colors */
    --bg-color: #111431;           /* Deep navy blue */
    --text-color: #e0e0e0;
    --card-bg: #171B40;            /* Medium navy blue */
    --border-color: #2a2e5c;       /* Dark blue-gray */
    --header-bg: #0F1439;          /* Dark blue */
    --footer-bg: #0A0E2A;          /* Even darker blue */
    --footer-text: #e0e0e0;
    --section-bg: #151937;         /* Slightly lighter navy */
    --shadow-color: rgba(0, 0, 0, 0.4);
    --input-bg: #1d2148;
    --dark-color: #565C8A;         /* Muted blue-gray */
}

/* Base Background - Added the requested gradient */
body {
  margin: 0;
  height: 100vh;
  /* Dark base color */
  background-color: #020617; 
  /* Strategic radial glows to match the image hotspots */
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 10% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(37, 99, 235, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Dark mode override for the base background */
.dark-mode body {
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 10% 40%, rgba(37, 99, 235, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #4058e0; /* Darker blue */
    color: white;
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle-container {
    margin-left: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s, transform 0.3s;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(30deg);
}

.theme-toggle i {
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: scale(0);
}

.dark-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: scale(0);
}

.dark-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: scale(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-color));
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
}

.hero-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.hero-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(81, 101, 243, 0.3);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 50px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Banner Section */
.banner-section {
    padding: 80px 0;
}

.banner-container {
    position: relative;
    max-width: 100%;
    margin: 50px auto 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px var(--shadow-color);
    background-color: var(--card-bg);
}

.banner {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    background-color: #f0f0f0;
    animation: fadeIn 0.5s ease-in;
}

.banner.active {
    display: block;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: crisp-edges;
}

.banner:hover img {
    transform: scale(1.02);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.9) 100%);
    color: white;
    padding: 40px 30px 30px;
}

.banner-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.banner-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.banner-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.banner-controls button:hover {
    background-color: #4058e0;
}

.banner-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Long Video Section */
.long-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(81, 101, 243, 0.9);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: background-color 0.3s;
}

.video-card:hover .play-btn {
    background-color: rgba(81, 101, 243, 1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.video-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.video-tags span {
    background-color: rgba(81, 101, 243, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: rgba(23, 27, 64, 0.95);
    border-radius: 10px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ccc;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Short Videos Section */
.short-videos {
    background-color: var(--section-bg);
}

.short-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.short-video-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: block;
    color: inherit;
}

.short-video-item:hover {
    transform: translateY(-5px);
}

.short-video-thumb {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.short-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.short-video-item:hover .short-video-thumb img {
    transform: scale(1.05);
}

.short-video-play {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.short-video-info {
    padding: 15px;
}

.short-video-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--text-color);
}

.short-video-creator {
    display: flex;
    align-items: center;
    margin-top: 10px;
    color: var(--gray-color);
}

.short-video-creator img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.load-more-btn {
    display: block;
    margin: 0 auto;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.load-more-btn:hover {
    background-color: #4058e0;
    transform: translateY(-2px);
}

/* Software Section */
.clients-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.clients-section .section-title {
    margin-bottom: 50px;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}

.logo {
    width: 140px;
    height: 140px;
    background: var(--card-bg);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.logo img {
    width: 70%;
    height: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

/* Payment Section */
.payment-section {
    padding: 50px 0;
}

.payment-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.payment-cards {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--border-color);
}

.payment-cards::-webkit-scrollbar {
    height: 8px;
}

.payment-cards::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

.payment-cards::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.payment-cards::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.payment-card {
    flex: 0 0 auto;
    width: 200px;
    height: 140px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.payment-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--shadow-color);
    transform: translateY(-5px);
}

.payment-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.card ul {
    list-style: none;
    padding: 0;
}

.card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
}

.card li:last-child {
    margin-bottom: 0;
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.tool {
    width: 100%;
    height: 140px;
    background: var(--card-bg);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.tool.wide {
    grid-column: span 2;
}

.tool.dark {
    background: var(--card-bg);
}

.tool img {
    width: 70%;
    height: auto;
    transition: all 0.3s ease;
}

.tool:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 20px 60px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.contact-info h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 2rem;
}

.contact-info p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.contact-details i {
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* RIGHT */
.right {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.right h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.qr-box {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.qr-box img {
    width: 200px;
    height: 200px;
}

.qr-text {
    color: var(--gray-color);
    margin-bottom: 25px;
}

.tg-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.tg-btn:hover {
    background: #4058e0;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px var(--shadow-color);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .theme-toggle-container {
        margin-top: 10px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .contact-wrapper {
        padding: 30px;
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        padding: 20px 15px 15px;
    }
    
    .banner-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .long-video-grid {
        grid-template-columns: 1fr;
    }
    
    .banner {
        aspect-ratio: 16 / 9;
    }
    
    .payment-card {
        width: 160px;
        height: 100px;
    }
    
    .tool {
        height: 100px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .qr-box img {
        width: 150px;
        height: 150px;
    }
}