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

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
    border: 2px solid var(--bg-card);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

::-webkit-scrollbar-thumb:active {
    background: #e6601c; /* Darker orange for active state */
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--bg-card);
}

:root {
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --bg-card-hover: #f1f3f5;
    --text-primary: #212529;
    --text-secondary: #495057;
    --accent-orange: #f87431;
    --accent-blue: #4b6bfb;
    --accent-red: #dc3545;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gradient {
    color: var(--accent-blue);
}

.text-center { text-align: center; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fix unintended hover effects during scroll */
.disable-hover,
.disable-hover * {
    pointer-events: none !important;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

/* Header & Nav */
header {
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

header .container {
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(75, 107, 251, 0.3);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

/* Cart Icon */
.cart-icon-container {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Auth Items */
.password-input-container {
    position: relative;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.password-toggle-btn:hover {
    color: var(--accent-blue);
}

.forgot-password-link {
    display: block;
    text-align: right;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.password-strength-meter {
    height: 4px;
    width: 100%;
    background: #eee;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.auth-item .btn-sm {
    padding: 5px 15px;
    border: 1px solid var(--accent-orange);
    border-radius: 4px;
    color: var(--accent-orange);
    transition: 0.3s;
}

.auth-item .btn-sm:hover, .auth-item .btn-sm.active {
    background: var(--accent-orange);
    color: #000;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
}

.profile-name {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.profile-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.85rem;
}

.profile-logout {
    background: transparent;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--nav-height) + 60px); /* Increased spacing from nav */
    padding-bottom: 60px;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(75, 107, 251, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(75, 107, 251, 0.2);
    background: #3a56d4;
    color: #fff;
}

.btn-secondary {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 0 20px rgba(248, 116, 49, 0.2);
}

.btn-secondary:hover {
    background: #e6601c;
    box-shadow: 0 10px 30px rgba(248, 116, 49, 0.2);
    color: #fff;
}

.btn-outline {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Store Page specific button styles */
.add-to-cart, .buy-now, .coming-soon, .product-card .btn {
    padding: 8px 15px;
    font-size: 0.75rem;
    min-width: 110px;
    text-align: center;
    width: auto;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Cart Page responsiveness */
.cart-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: 8px;
    background: var(--bg-card);
}

.cart-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cart-summary {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-top: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-to-cart, .buy-now {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Animations */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch; /* Ensures all cards in a row have the same height */
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* Subtle shadow for depth */
}

.feature-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card h3 {
    min-height: 40px; /* Ensures consistent heading height */
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 116, 49, 0.03);
    opacity: 0;
    transition: 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 25px;
    background: rgba(248, 116, 49, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex; /* Use flexbox to center the icon */
    align-items: center;
    justify-content: center;
}

/* Download Section */
.download-section {
    background: var(--bg-card);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.download-box {
    background: rgba(0, 0, 0, 0.02);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Professional shadow */
}

.security-badges .badge {
    background: rgba(0, 0, 0, 0.03);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 5px;
}

.security-badges .badge i {
    color: var(--accent-orange);
}

/* How It Works (Steps) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: rgba(0, 0, 0, 0.01);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: #fff;
    font-weight: bold;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Screenshots */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.screenshot-item {
    aspect-ratio: 16/9;
    background: #f1f3f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.screenshot-item:hover {
    border-color: var(--accent-orange);
    transform: scale(1.02);
}

.screenshot-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.screenshot-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* FAQ / Support */
details {
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

details:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Loader Animation */
.loader {
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top: 3px solid var(--accent-orange);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Common Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.logo span { color: var(--accent-orange); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col h3 {
    font-size: 0.9rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    text-align: left;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.footer-col ul li {
    margin-bottom: 12px;
    display: block;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-col ul li a i {
    transition: 0.3s;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.fa-whatsapp { color: #25D366; }
.fa-telegram { color: #0088cc; }
.fa-discord { color: #5865F2; }
.fa-youtube { color: #FF0000; }
.fa-envelope { color: var(--accent-blue); }

/* Global Social Icon Hover Effects */
a:hover i.fa-whatsapp { color: #128C7E !important; transform: scale(1.2); }
a:hover i.fa-telegram { color: #0077b5 !important; transform: scale(1.2); }
a:hover i.fa-discord { color: #404eed !important; transform: scale(1.2); }
a:hover i.fa-youtube { color: #c4302b !important; transform: scale(1.2); }
a:hover i.fa-envelope { color: #d93025 !important; transform: scale(1.2); }

.footer-col ul li a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #888;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transform: translateX(100%);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 30px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }

    .mobile-menu-btn { 
        display: block; 
        position: relative;
        z-index: 1001;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    .section-header h2 { font-size: 2rem; }
    
    .features-grid, .steps-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .auth-container { margin: 60px 20px; }
}
