/* ===== DSAGYAN MAIN STYLES ===== */
/* File: assets/css/style.css */

:root {
    --primary: #0a1628;
    --secondary: #1a237e;
    --accent: #f5a623;
    --accent-dark: #e68a00;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f4ff;
    padding-top: 80px;
}

/* ===== HEADER ===== */
.dsagyan-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0a1628 0%, #1a237e 100%);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 2px solid var(--accent);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 10px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(245, 166, 35, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--white);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn-login {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.1);
}

.btn-register {
    padding: 8px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: 25px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.5);
}

/* User Profile */
.user-profile {
    position: relative;
    cursor: pointer;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 14px;
}

.user-name {
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
}

.dropdown-icon {
    color: var(--white);
    font-size: 10px;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    min-width: 200px;
    padding: 8px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    animation: slideDown 0.3s ease;
}

.profile-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary);
}

.dropdown-menu hr {
    margin: 5px 20px;
    border: none;
    border-top: 1px solid #eee;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #0a1628 0%, #1a237e 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 35px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
}

.btn-secondary {
    padding: 12px 35px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.1);
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 60px 0;
    background: var(--white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px;
    color: var(--dark-gray);
    font-weight: 500;
    margin-top: 5px;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--accent);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 13px;
    color: #888;
}

/* ===== FOOTER ===== */
.dsagyan-footer {
    background: linear-gradient(135deg, #0a1628 0%, #1a237e 100%);
    color: var(--white);
    padding: 60px 0 0;
    margin-top: 60px;
    border-top: 3px solid var(--accent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0 5px;
    color: var(--white);
}

.footer-brand p {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
}

.footer-desc {
    color: rgba(255,255,255,0.7) !important;
    font-size: 14px !important;
    margin-top: 15px;
    line-height: 1.6;
    letter-spacing: 0 !important;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact ul li {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.payment-methods {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-methods span {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.payment-methods img {
    height: 25px;
    width: auto;
    background: rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 5px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary);
        padding: 30px;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .nav-menu ul li a {
        font-size: 18px;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .logo-tagline {
        display: none;
    }
    
    .user-profile {
        margin-left: auto;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .category-card {
        padding: 20px 10px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}