/* CSS Custom Properties */
:root {
    --navy-blue: #01257D;
    --electric-blue: #00FFFF;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --gradient: linear-gradient(135deg, var(--navy-blue), var(--electric-blue));
    --shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --cyberpunk-font: 'Orbitron', 'Roboto', monospace;
    --border-accent: rgba(0, 255, 255, 0.3); /* Added for border-accent */
    --border-color: var(--electric-blue); /* Defined for dropdown */
    --bg-dark: #1a1a1a; /* Defined for dropdown item hover */
    --dragon-accent: #FF4500; /* Example accent color, adjust as needed */
}

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

body {
    font-family: var(--cyberpunk-font);
    background: linear-gradient(135deg, #000011 0%, #001122 25%, #002244 50%, #001133 75%, #000011 100%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.preloader-active {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 160px 30px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    z-index: -2;
    opacity: 0.3;
}

/* Golden Box Popular Tag */

/* .golden-box {
  display: inline-block;
  color: gold;
  font-weight: bold;
  font-size: 1.2em;
  padding: 10px 20px;
  border: 2px solid gold;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff8dc, gold, #fff8dc);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine 5s infinite;
  position: relative;
}

.golden-box i {
  margin-right: 8px;
}

@keyframes shine {
  0%, 90%, 100% {
    background-position: 200% center;
  }
  50% {
    background-position: 0% center;
  }
}
 */

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

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

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 6px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--electric-blue);
    box-shadow: 0 0 10px var(--electric-blue);
}

.nav-logo-img {
    width: 40px; /* Adjust the size as needed */
    height: auto; /* Maintain aspect ratio */
    margin-right: 0.5rem; /* Space between logo and text */
    vertical-align: middle; /* Aligns the logo with the text */
}


/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--electric-blue), transparent);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.bg-particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-particle:nth-child(2) {
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.bg-particle:nth-child(3) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.bg-particle:nth-child(4) {
    top: 20%;
    left: 70%;
    animation-delay: 1s;
}

.bg-particle:nth-child(5) {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Navigation */
.navbar, .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(1, 37, 125, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--electric-blue);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
}

/* Account Navigation Styles */
.nav-account {
    position: relative;
}

.account-btn {
    background: transparent;
    border: 2px solid var(--electric-blue);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.account-btn:hover {
    background: var(--electric-blue);
    color: var(--navy-blue);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--electric-blue);
    border-radius: 15px;
    padding: 1rem;
    min-width: 250px;
    box-shadow: var(--shadow);
    z-index: 1001;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--electric-blue);
}

.account-avatar {
    font-size: 2rem;
    color: var(--electric-blue);
}

.account-name {
    font-weight: bold;
    color: var(--text-light);
}

.subscription-status {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--electric-blue);
    color: var(--bg-dark);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 0 0 10px 10px;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 0.5rem;
    }

    .dropdown-menu.active {
        display: block;
    }
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--electric-blue);
    border-radius: 10px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    min-width: 200px;
    list-style: none;
    margin-top: 0.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    width: 100%;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--electric-blue);
    color: var(--navy-blue);
    transform: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dragon {
    color: white;
    text-shadow: 0 0 10px white;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin-right: 0;

}

.dev {
    color: var(--electric-blue);
    text-shadow: 0 0 10px var(--electric-blue);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin-left: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    background: var(--electric-blue);
    color: var(--navy-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--electric-blue);
    margin: 3px 0;
    transition: var(--transition);
}

/* Admin Panel Indicator */
.admin-panel-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.admin-panel-box {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: adminGlow 2s ease-in-out infinite alternate;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-panel-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

@keyframes adminGlow {
    from {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    to {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 2rem 0;
    position: relative;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px var(--electric-blue); }
    to { text-shadow: 0 0 30px var(--electric-blue), 0 0 40px var(--electric-blue); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--navy-blue);
    transform: translateY(-3px);
}

/* Stats Container */
.stats-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--electric-blue);
    transition: var(--transition);
    min-width: 200px;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-box i {
    font-size: 2rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--electric-blue);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: var(--text-gray);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--electric-blue);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.skill-box {
    background: var(--navy-blue);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--electric-blue);
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.skill-box i {
    font-size: 2rem;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
}

.services-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--navy-blue);
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.service-item i {
    color: var(--electric-blue);
    font-size: 1.5rem;
}

.contact-box {
    background: var(--navy-blue);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
    margin-top: 2rem;
}

.contact-box h3 {
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.important-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border: 1px solid #ff6b6b;
}

/* DragonDev User Profile Section */
.dragondev-user-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(1, 37, 125, 0.2) 0%, rgba(0, 255, 255, 0.1) 100%);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--electric-blue);
    border-bottom: 2px solid var(--electric-blue);
    position: relative;
}

.dragondev-user-section .container {
    max-width: 100%;
    padding: 0 2rem;
}

.dragondev-user-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(1, 37, 125, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.dragondev-user-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--electric-blue);
    text-shadow: 0 0 20px var(--electric-blue);
}

.user-profile-box {
    background: var(--card-bg);
    border: 3px solid transparent;
    border-radius: 25px;
    padding: 3rem 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    margin: 0;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.user-profile-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--electric-blue) 25%, var(--navy-blue) 50%, var(--electric-blue) 75%, var(--navy-blue) 100%);
    background-size: 400% 400%;
    border-radius: 25px;
    z-index: -2;
    animation: gradientShift 8s ease-in-out infinite;
}

.user-profile-box::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--navy-blue) 25%, var(--electric-blue) 50%, var(--navy-blue) 75%, var(--electric-blue) 100%);
    background-size: 400% 400%;
    border-radius: 25px;
    z-index: -3;
    animation: gradientShift 8s ease-in-out infinite reverse;
}

.user-profile-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.5), 0 0 50px rgba(1, 37, 125, 0.3);
}

.user-profile-box:hover::before {
    animation-duration: 2s;
}

.user-profile-box:hover::after {
    animation-duration: 2s;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 50% 0%;
    }
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--electric-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transition: var(--transition);
}

.avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
}

.status-indicator.online {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.username {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-tag {
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 400;
}

.user-status {
    color: var(--electric-blue);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.stat-item i {
    color: var(--electric-blue);
    width: 20px;
    text-align: center;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.profile-actions .btn {
    min-width: 140px;
    justify-content: center;
}

/* Main content areas */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* Page content spacing */
.page-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.about h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--electric-blue);
}

.about-content {
    display: grid;
    gap: 3rem;
}

.about-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
    text-align: center;
    transition: var(--transition);
}

.about-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.about-box i {
    font-size: 3rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.about-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-box p {
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-stat {
    margin-top: 2rem;
    min-width: 200px;
}

/* Recent Updates Section */
.recent-updates {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(0, 255, 255, 0.05) 100%);
}

.updates-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.updates-container {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    scroll-behavior: smooth;
    transition: transform 0.5s ease;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: 2px solid var(--electric-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--electric-blue);
    color: var(--bg-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--electric-blue);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.update-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 320px;
    flex-shrink: 0;
    opacity: 0.7;
    transform: scale(0.95);
}

.update-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--electric-blue);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.update-card:hover::before,
.update-card.active::before {
    transform: scaleX(1);
}

.update-card:hover {
    transform: translateY(-10px) scale(1);
    border-color: var(--electric-blue);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    opacity: 1;
}

/* Button Styles for Updates */
.btn-update-primary {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-update-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

.btn-update-support {
    background: #FF813F;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-update-support:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 129, 63, 0.4);
}

.btn-update-secondary {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-update-secondary:hover {
    background: var(--electric-blue);
    color: var(--navy-blue);
    transform: translateY(-3px);
}

/* Section-specific backgrounds */
.projects-section {
    background: linear-gradient(135deg, rgba(1, 37, 125, 0.15) 0%, rgba(0, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(0, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(1, 37, 125, 0.08) 0%, transparent 40%);
    z-index: -1;
}

.games-section {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0%, rgba(1, 37, 125, 0.12) 100%);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(1, 37, 125, 0.3);
    border-bottom: 1px solid rgba(1, 37, 125, 0.3);
    position: relative;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 60%, rgba(1, 37, 125, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 40%, rgba(0, 255, 255, 0.06) 0%, transparent 50%);
    z-index: -1;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Popular Tag */
.popular-tag {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: goldenShine 2s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes goldenShine {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
        transform: scale(1.05);
    }
}

.musify-card {
    position: relative;
    border: 2px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.popular-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: goldenGlow 2s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes goldenGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}

.btn-coming-soon {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: not-allowed;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 0 auto;
    opacity: 0.8;
}

.btn-coming-soon:hover {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--electric-blue);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
    transition: var(--transition);
    text-align: center;
    position: relative; /* Important for tag positioning */
    overflow: hidden;
}

.project-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, gold, orange);
    color: #000;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    text-transform: uppercase;
    animation: shineTag 5s infinite;
    white-space: nowrap;
}

@keyframes shineTag {
  0%, 90%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.9);
  }
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-card.hoverable:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
}

.project-icon {
    font-size: 3rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--navy-blue);
    color: var(--electric-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--electric-blue);
}

.more-projects {
    text-align: center;
    margin-top: 3rem;
}

.more-projects-btn {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.more-projects-btn:hover {
    background: var(--electric-blue);
    color: var(--navy-blue);
    transform: translateY(-2px);
}

.more-projects-btn:hover i {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--electric-blue);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--electric-blue);
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
}

.contact-item i {
    color: var(--electric-blue);
    font-size: 1.2rem;
}

.visitor-stat {
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--electric-blue);
}

.rating-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--electric-blue);
}

.rating-stat i {
    color: var(--electric-blue);
    font-size: 1.2rem;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.rating-star {
    color: #FFD700;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.rating-value {
    color: var(--electric-blue);
    font-weight: bold;
    margin-left: 0.5rem;
}

.rating-count {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-left: 0.3rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--electric-blue);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--navy-blue);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Docs Content Styles */
.docs-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.subtopic-nav {
    position: sticky;
    top: 100px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
    padding: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.nav-title {
    font-weight: bold;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.subtopic-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
}

.subtopic-link:hover,
.subtopic-link.active {
    color: var(--electric-blue);
    border-left-color: var(--electric-blue);
    transform: translateX(5px);
}

.subtopic-link.h3 {
    margin-left: 1rem;
    font-size: 0.85rem;
}

.docs-main-content {
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
    padding: 2rem;
}

.docs-section h1 {
    color: var(--electric-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.doc-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.doc-card:hover::before {
    left: 100%;
}

.doc-card:hover {
    transform: translateY(-10px);
    border-color: var(--electric-blue);
    box-shadow: var(--shadow);
}

.doc-icon {
    font-size: 2.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.doc-title {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.doc-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.doc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.doc-difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.section-title {
    color: var(--electric-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Discord Support Styles */
.discord-btn:hover {
    background: #5865f2 !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .subtopic-nav {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }

    .docs-content {
        padding: 1rem;
    }

    .docs-main-content {
        padding: 1.5rem;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .docs-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.content-header {
    margin-bottom: 2rem;
}

/* Docs System Styles */
.docs-overview {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.overview-title {
    font-size: 3rem;
    color: var(--electric-blue);
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.overview-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: var(--card-bg);
    border: 2px solid var(--electric-blue);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: var(--neon-green);
}

.category-icon {
    font-size: 3rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.topic-count {
    font-size: 0.9rem;
    color: var(--electric-blue);
    font-weight: bold;
}

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

.trending-section h2 {
    font-size: 2rem;
    color: var(--electric-blue);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.trending-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.trending-topic {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-topic:hover {
    background: var(--electric-blue);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Documentation Layout */
.docs-layout {
    display: flex;
    min-height: calc(100vh - 120px);
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.docs-sidebar {
    width: 350px;
    background: var(--card-bg);
    border: 2px solid var(--electric-blue);
    border-radius: 20px;
    position: fixed;
    left: 2rem;
    top: 120px;
    bottom: 2rem;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.docs-sidebar.collapsed {
    width: 60px;
    left: 2rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    color: var(--electric-blue);
    margin: 0;
    font-size: 1.2rem;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.docs-sidebar.collapsed .sidebar-header h3 {
    opacity: 0;
}

.collapse-btn {
    background: var(--electric-blue);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.collapse-btn:hover {
    background: var(--text-light);
    transform: scale(1.1);
}

.sidebar-content {
    padding: 1.5rem;
    height: calc(100% - 80px);
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.docs-sidebar.collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
}

/* Category Navigation */
.category-section {
    margin-bottom: 2rem;
}

.category-section h4 {
    color: var(--electric-blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.category-link:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(4px);
}

.category-link.active {
    border-color: var(--electric-blue);
    background: rgba(0, 255, 255, 0.1);
    color: var(--electric-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.category-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Topics Section */
.topics-section {
    margin-bottom: 2rem;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.topic-box:hover::before {
    left: 100%;
}

.topic-box:hover {
    border-color: var(--electric-blue);
    transform: translateY(-2px);
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
}

.topic-box.active {
    border-color: var(--electric-blue);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.topic-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.topic-icon {
    font-size: 1.5rem;
    color: var(--electric-blue);
    min-width: 30px;
    margin-top: 0.2rem;
}

.topic-info {
    flex: 1;
}

.topic-info h4 {
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.topic-info p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.difficulty {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty.beginner {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.difficulty.intermediate {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.difficulty.advanced {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.topic-count {
    font-size: 0.8rem;
    color: var(--electric-blue);
    font-weight: 500;
}

/* Main Content Area */
.docs-main {
    flex: 1;
    margin-left: 370px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: calc(100vh - 120px);
}

.docs-main.expanded {
    margin-left: 80px;
}

.docs-content {
    background: var(--card-bg);
    border: 2px solid var(--electric-blue);
    border-radius: 20px;
    padding: 2rem;
    min-height: calc(100vh - 180px);
}

/* Content States */
.docs-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    min-height: 400px;
}

.docs-placeholder i {
    font-size: 4rem;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
}

.docs-placeholder h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.docs-placeholder p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .docs-sidebar {
        position: fixed;
        left: -350px;
        width: 320px;
        z-index: 1000;
    }

    .docs-sidebar.open {
        left: 0;
    }

    .docs-sidebar.collapsed {
        left: -350px;
    }

    .docs-main {
        margin-left: 0;
        padding: 1rem;
    }

    .docs-main.expanded {
        margin-left: 0;
    }

    .mobile-sidebar-toggle {
        position: fixed;
        top: 140px;
        left: 1rem;
        z-index: 1001;
        background: var(--electric-blue);
        border: none;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--bg-dark);
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
    }
}

@media (max-width: 768px) {
    .docs-sidebar {
        width: 280px;
    }

    .docs-content {
        padding: 1.5rem;
    }

    .topic-box {
        padding: 1rem;
    }
}

/* Topic Documentation Styles */
.topic-docs {
    max-width: none;
}

.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.back-btn, .dragonai-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn {
    background: var(--border-color);
    color: var(--text-light);
}

.back-btn:hover {
    background: var(--text-gray);
    transform: translateY(-2px);
}

.dragonai-btn {
    background: var(--gradient);
    color: white;
    text-decoration: none;
}

.dragonai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.docs-title {
    font-size: 2.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.docs-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 15px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
}

/* Chapter Styles */
.docs-chapter {
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    background: var(--bg-dark);
}

.chapter-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.chapter-number {
    background: var(--electric-blue);
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.chapter-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.chapter-content h3 {
    color: var(--neon-green);
    margin: 2rem 0 1rem 0;
}

.chapter-content h4 {
    color: var(--text-light);
    margin: 1.5rem 0 1rem 0;
}

.chapter-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.chapter-content ul, .chapter-content ol {
    color: var(--text-gray);
    margin: 1rem 0;
    padding-left: 2rem;
}

.chapter-content li {
    margin-bottom: 0.5rem;
}

.info-box {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--electric-blue);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    color: var(--electric-blue);
    margin: 0 0 1rem 0;
}

.code-example {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.code-example h4 {
    color: var(--neon-green);
    margin: 0 0 1rem 0;
}

.code-example pre {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 0;
}

.code-example code {
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.practical-example {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.practical-example h4 {
    color: #4CAF50;
    margin: 0 0 1rem 0;
}

.chapter-questions {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #FF9800;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0 0 0;
}

.chapter-questions h3 {
    color: #FF9800;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapter-questions ul {
    margin: 0;
}

.chapter-questions li {
    color: var(--text-light);
    font-weight: 500;
}

.chapter-summary {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.chapter-summary h3 {
    color: #4CAF50;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapter-summary ul {
    margin: 0;
}

.chapter-summary li {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Data Types Grid */
.data-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.data-type {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
}

.data-type h4 {
    color: var(--electric-blue);
    margin: 0 0 1rem 0;
}

.ml-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ml-type {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
}

.ml-type h4 {
    color: var(--neon-green);
    margin: 0 0 1rem 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        max-height: none;
    }

    .sidebar.collapsed {
        height: 60px;
        width: 100%;
    }

    .docs-content.expanded {
        margin-left: 0;
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .trending-topics {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .docs-container {
        padding: 1rem;
    }

    .topic-box {
        flex-direction: column;
        text-align: center;
    }

    .docs-header {
        flex-direction: column;
        gap: 1rem;
    }

    .docs-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .chapter-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .data-types-grid,
    .ml-types {
        grid-template-columns: 1fr;
    }

    .overview-title {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.docs-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.docs-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb,
.docs-content::-webkit-scrollbar-thumb {
    background: var(--electric-blue);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.docs-content::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* CSS Variables - ensure these exist */
:root {
    --bg-dark: #0a0a0f;
    --card-bg: #1a1a2e;
    --electric-blue: #00ffff;
    --neon-green: #39ff14;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --border-color: #2a2a3a;
    --gradient: linear-gradient(45deg, #00ffff, #39ff14);
    --shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    --transition: all 0.3s ease;
}

/* Existing styles for other components remain unchanged... */
/* Form styles, header, footer, preloader, etc. */

.form-container {
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--electric-blue);
    padding: 3rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Docs Content Styles */
.docs-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.subtopic-nav {
    position: sticky;
    top: 100px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
    padding: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.nav-title {
    font-weight: bold;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.subtopic-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
}

.subtopic-link:hover,
.subtopic-link.active {
    color: var(--electric-blue);
    border-left-color: var(--electric-blue);
    transform: translateX(5px);
}

.subtopic-link.h3 {
    margin-left: 1rem;
    font-size: 0.85rem;
}

.docs-main-content {
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
    padding: 2rem;
}

.docs-section h1 {
    color: var(--electric-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.doc-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.doc-card:hover::before {
    left: 100%;
}

.doc-card:hover {
    transform: translateY(-10px);
    border-color: var(--electric-blue);
    box-shadow: var(--shadow);
}

.doc-icon {
    font-size: 2.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.doc-title {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.doc-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.doc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.doc-difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.section-title {
    color: var(--electric-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Discord Support Styles */
.discord-btn:hover {
    background: #5865f2 !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .subtopic-nav {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }

    .docs-content {
        padding: 1rem;
    }

    .docs-main-content {
        padding: 1.5rem;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .docs-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.content-header {
    margin-bottom: 2rem;
}

/* Mobile Game Warning */
.mobile-warning {
    display: none;
    background: var(--card-bg);
    border: 2px solid var(--dragon-accent);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.mobile-warning h3 {
    color: var(--dragon-accent);
    margin-bottom: 1rem;
}

.mobile-warning p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Show mobile warning only on actual mobile devices */
@media (max-width: 768px) and (pointer: coarse) {
    .mobile-warning {
        display: block;
    }

    .games-grid {
        display: none;
    }
}

/* Hide mobile warning on desktop/tablet with mouse */
@media (min-width: 769px), (pointer: fine) {
    .mobile-warning {
        display: none !important;
    }
}

/* DragonAI Chat Styles */
.dragonai-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    background: var(--card-bg);
    border: 2px solid var(--electric-blue);
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.dragonai-header {
    background: var(--navy-blue);
    padding: 1rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--electric-blue);
}

.dragonai-header h3 {
    color: var(--electric-blue);
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dragonai-header i {
    cursor: pointer;
    color: var(--text-gray);
    font-size: 1.2rem;
}

.dragonai-header i:hover {
    color: var(--electric-blue);
}

.dragonai-chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.message.user {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--navy-blue);
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--text-gray);
}

.message-bubble {
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    max-width: 75%;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-bubble.user {
    background: var(--electric-blue);
    color: var(--navy-blue);
    border-bottom-right-radius: 5px;
}

.message-bubble.ai {
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 5px;
}

.dragonai-input-area {
    padding: 1rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dragonai-input-area input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    padding: 0.5rem;
}

.dragonai-input-area input:focus {
    outline: none;
}

.dragonai-input-area button {
    background: var(--electric-blue);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dragonai-input-area button:hover {
    background: var(--text-light);
    transform: scale(1.1);
}

.dragonai-input-area button i {
    font-size: 1rem;
}

/* Image Generation Message */
.image-generation-message {
    font-style: italic;
    color: var(--text-gray);
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.discord-link {
    color: var(--electric-blue);
    text-decoration: underline;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 768px) {
    .dragonai-chat-container {
        width: 90%;
        bottom: 10px;
        right: 5%;
        left: 5%;
        max-height: 80vh;
    }
    
    .contact {
        padding: 2rem 0;
        margin-bottom: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer .social-links {
        justify-content: center;
    }
}

/* Footer Styles - Reverted to Original */
.footer {
    background: var(--dark-bg, #0a0a0a);
    border-top: 2px solid var(--electric-blue, #00FFFF);
    padding: 2rem 0 1rem;
    margin-top: -1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--electric-blue, #00FFFF);
}

.footer-brand .dragon {
    color: var(--electric-blue, #00FFFF);
}

.footer-brand .dev {
    color: var(--text-light, #ffffff);
}

.footer-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-nav-inline {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-nav-inline a {
    color: var(--text-gray, #cccccc);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-nav-inline a:hover {
    color: var(--electric-blue, #00FFFF);
    background: rgba(0, 255, 255, 0.1);
}

.social-footer {
    display: flex;
    gap: 0.75rem;
}

.social-footer a {
    width: 35px;
    height: 35px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--electric-blue, #00FFFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric-blue, #00FFFF);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-footer a:hover {
    background: var(--electric-blue, #00FFFF);
    color: var(--dark-bg, #0a0a0a);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 1rem 2rem 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
    color: var(--text-gray, #cccccc);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-main {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-nav-inline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-footer {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-brand {
        font-size: 1.3rem;
    }

    .footer-logo {
        width: 40px;
        height: 40px;
    }

    .footer-nav-inline {
        gap: 0.75rem;
    }

    .footer-nav-inline a {
        font-size: 0.8rem;
    }

    .social-footer a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Contact Section Gap Fix */
.contact {
    margin-bottom: 0;
    padding-bottom: 3rem;
}