/* ==========================================================================
   Project: Agragami Custom Production Engine
   Theme: Midnight Navy & Electric Blue Accent (Glassmorphism Core)
   ========================================================================== */

/* --- Core Variable Matrix --- */
:root {
    --bg-dark: #051622;
    --navy-blue: #0a192f;
    --accent-blue: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.3);
    --glass-bg: rgba(10, 25, 47, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(0, 210, 255, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --premium-dark: #020c1b;
    --soft-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --deep-dark: #020c1b;
    --accent: #00d2ff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
}

/* --- Base Layout Normalization --- */
body {
    font-family: 'Hind Siliguri', sans-serif;
    background: radial-gradient(circle at top right, #0a1f2e, var(--bg-dark));
    color: #e2e8f0;
    overflow-x: hidden;
}

#main-content {
    padding-top: 100px;
}

/* --- Global Components Engine --- */
.glass-panel {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* --- Header Canvas Wrapper --- */
#main-header-section {
    padding-top: 15px;
    z-index: 999;
    transition: all 0.4s ease;
}

#nav-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.main-nav-modern li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.main-nav-modern li a:hover,
.main-nav-modern li.active a {
    color: var(--accent-blue) !important;
    background: rgba(0, 210, 255, 0.08);
}

/* --- Interactive Navigation Dropdowns --- */
.modern-dropdown {
    background: var(--navy-blue);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 8px;
    margin-top: 15px;
}

.modern-dropdown .dropdown-item {
    color: #ccd6f6;
    border-radius: 8px;
    padding: 10px 15px;
    transition: var(--transition-smooth);
}

.modern-dropdown .dropdown-item:hover {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-blue);
    padding-left: 20px;
}

.profile-nav-link {
    text-decoration: none;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: 0.3s;
}

.profile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
}

.profile-nav-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-blue);
}

.profile-nav-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-dropdown {
    background: rgba(10, 25, 47, 0.9) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 8px;
}

.dropdown-item {
    font-size: 14px;
    border-radius: 8px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: rgba(0, 210, 255, 0.1) !important;
    color: var(--accent-blue) !important;
}

/* --- Action Control Triggers --- */
.btn-login-modern {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-login-modern:hover {
    color: var(--accent-blue);
}

.btn-register-modern {
    background: var(--accent-blue);
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0072ff 100%);
    color: white !important;
    padding: 10px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--transition-smooth);
}

.btn-register-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    filter: brightness(1.1);
}

/* --- Mobile Drawers Sidebar --- */
.modern-sidebar {
    background: var(--bg-dark) !important;
    border-right: 1px solid var(--glass-border) !important;
    width: 290px !important;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 5px;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.mobile-nav-list li a i:first-child {
    color: var(--accent-blue);
    margin-right: 15px;
    font-size: 20px;
}

.mobile-nav-list li a:hover {
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent-blue);
}

.submenu-list {
    background: rgba(255, 255, 255, 0.02);
    margin: 5px 15px 10px 45px;
    border-left: 1px solid var(--accent-blue);
    padding-left: 10px;
    border-radius: 0 0 0 10px;
}

.submenu-list li a {
    padding: 10px 15px;
    font-size: 14px;
    color: #94a3b8;
}

.arrow-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
    color: #64748b;
}

.has-submenu a[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

/* --- Footer Link Profiles --- */
.footer-nav-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.footer-nav-links li a:hover {
    color: var(--accent-blue);
}

/* --- Dedicated App Mobile Navigation --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    z-index: 1080;
}

.bottom-nav-wrapper {
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 5px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
}

.bottom-nav-wrapper .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8892b0;
    text-decoration: none;
    font-size: 11px;
    transition: 0.3s;
    width: 20%;
}

.bottom-nav-wrapper .nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav-wrapper .nav-item.active {
    color: var(--accent-blue);
}

.center-nav-icon {
    position: absolute;
    bottom: 35px;
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 24px !important;
    box-shadow: 0 5px 15px var(--accent-glow);
    border: 4px solid var(--bg-dark);
}

.center-nav-icon i {
    color: var(--bg-dark) !important;
    margin-bottom: 0 !important;
}

/* --- Brand Matrix Grid Mapping --- */
.social-links-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #8892b0;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    color: var(--bg-dark);
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Form System & Multi-Tab Configurations --- */
.form-control {
    background: rgba(0, 0, 0, 0.2) !important;
    color: white !important;
    border: 1px solid var(--glass-border) !important;
}

.form-control:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 15px var(--accent-glow) !important;
}

.glass-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 15px var(--accent-glow) !important;
}
.glass-input::placeholder {
    color: #adb5bd;
}
/* --- Skeleton Shimmer Animation Logic --- */
.shimmer {
    background: #05162d;
    background-image: linear-gradient(90deg, #05162d 0%, #0c2544 50%, #05162d 100%);
    background-size: 200% 100%;
    animation: shimmer-load 1.5s infinite linear;
    border-radius: 15px;
}

@keyframes shimmer-load {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* --- Force Layout Opacity Fix --- */
.bg-white.bg-opacity-5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- Native Scrollbar custom engine --- */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--deep-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

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

/* --- Text Gradients for Premium Feel --- */
.text-gradient-primary {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Premium Hover Effects (For Cards) --- */
.premium-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-hover:hover {
    border-color: rgba(0, 210, 255, 0.4) !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.08) !important;
}

/* --- Who We Are & About Glow Box --- */
.about-glow-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 24px;
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.about-glow-box:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.15);
}

/* --- Step Badge for How You Learn --- */
.step-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-blue), #0072ff);
    color: #020c1b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
    z-index: 2;
}

/* --- Premium Input Group for Subscriber --- */
.premium-input-group .glass-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.premium-input-group .input-group-text {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
}
.premium-input-group:focus-within .glass-input,
.premium-input-group:focus-within .input-group-text {
    border-color: var(--accent-blue) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.btn-pro-glow {
    background: linear-gradient(135deg, var(--accent-blue), #00a8ff) !important;
    color: #020c1b !important;
    border: none;
    border-radius: 0 12px 12px 0 !important;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}
.btn-pro-glow:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

.bg-gradient-glow {
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.06) 0%, var(--glass-bg) 100%) !important;
}

/* =======================================================
   Responsive Adjustments (Mobile & Tablet)
   ======================================================= */
@media (max-width: 991.98px) {
    /* Tablet & below */
    .glass-panel {
        padding: 1.5rem !important; /* Reduce padding slightly */
    }
    .about-glow-box i {
        font-size: 6rem !important; /* Scale down icon */
    }
    .hero-stat-box h2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 767.98px) {
    /* Mobile landscape & portrait */
    #main-content {
        padding-top: 85px; /* Adjust header offset */
    }

    .grid-animate-card {
        margin-bottom: 15px; /* Better stacking gap */
    }

    .hero-stat-box {
        margin-bottom: 10px;
    }

    .subscriber-news-section h3 {
        font-size: 1.5rem !important;
    }

    .premium-input-group {
        flex-direction: column;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Modify input group to stack nicely on very small screens */
    .premium-input-group .input-group-text {
        border-radius: 12px 12px 0 0 !important;
        border-bottom: none !important;
        justify-content: center;
        padding: 10px;
    }

    .premium-input-group .glass-input {
        border-radius: 0 !important;
        border-left: 1px solid var(--glass-border) !important;
        text-align: center;
        padding: 12px;
    }

    .premium-input-group .btn-pro-glow {
        border-radius: 0 0 12px 12px !important;
        padding: 12px !important;
        width: 100%;
        margin-top: -1px; /* overlap border */
    }

    .step-badge {
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
/* ==================================================
       Global Premium Glassmorphism Pagination
       ================================================== */
.pagination {
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

/* Hover State */
.page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: #00d2ff;
    color: #00d2ff;
    transform: translateY(-2px);
}

/* Active State */
.page-item.active .page-link {
    background: #00d2ff;
    border-color: #00d2ff;
    color: #020c1b;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4) !important;
}

/* Disabled State */
.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Remove focus outline */
.page-link:focus {
    outline: none;
    box-shadow: none;
}
