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

:root {
    --primary-color: #4a6fff;
    --secondary-color: #ff6b6b;
    --accent-color: #00d4aa;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-light: 0 5px 20px rgba(38, 136, 255, 0.445);
    --shadow-medium: 0 10px 30px rgba(255, 23, 147, 0.492);
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}


/* =========================================
   NEW GAMING PRELOADER (RESPONSIVE)
   ========================================= */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* "Blueprint" Grid Pattern */
    transition: opacity 0.6s ease-out, visibility 0.6s;
    overflow: hidden;
    /* Prevent scrollbars during load */
}


/* 1. LOGO STYLES */

.logo-container2 {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
}

.logo-icon {
    width: 300px;
    height: 300px;
    background: #ffffff;
    /* Hexagon Shape */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo-icon span {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 32px;
}

.logo-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border: 2px dashed #6200ea;
    /* Electric Purple */
    border-radius: 50%;
    animation: spin 8s linear infinite;
    z-index: 1;
}


/* 2. TEXT STYLES */

h1.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    position: relative;
    text-align: center;
    line-height: 1;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.2s;
}


/* Glitch Layers */

h1.brand-name::before,
h1.brand-name::after {
    content: "GameLiminals";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0.8;
}

h1.brand-name::before {
    color: #ff0055;
    z-index: -1;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

h1.brand-name::after {
    color: #00f0ff;
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.tagline-box {
    background: linear-gradient(255deg, rgba(125, 147, 255, 1) 0%, rgba(252, 70, 107, 1) 100%);
    color: #fff;
    padding: 8px 24px;
    margin-top: 20px;
    font-size: 1.1rem;
    letter-spacing: 4px;
    display: inline-block;
    box-shadow: 6px 6px 0px rgba(98, 0, 234, 0.2);
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.4s;
}

.tagline-text {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    /* Ensure you import this font */
    font-weight: bold;
}


/* 3. LOADING BAR */

.loader-wrapper {
    margin-top: 45px;
    width: 300px;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.6s;
}

.loading-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-bar-fill {
    height: 100%;
    background: #6200ea;
    width: 0%;
    box-shadow: 0 0 10px rgba(98, 0, 234, 0.5);
    animation: fillBar 3s ease-in-out forwards;
}


/* 4. ANIMATIONS */

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

@keyframes fillBar {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes preloaderContent {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    85% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* Glitch Keyframes */

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 0);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(1px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(2px, 0);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-1px, 0);
    }
}


/* Helper Class to Hide */

.hide-preloader {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}


/* =========================================
   RESPONSIVE QUERIES
   ========================================= */


/* Tablet & Small Laptops (Max Width: 992px) */

@media (max-width: 992px) {
    h1.brand-name {
        font-size: 3rem;
    }

    .logo-icon {
        width: 300px;
        height: 300px;
    }

    .logo-ring {
        width: 95px;
        height: 95px;
    }

    .logo-icon span {
        font-size: 28px;
    }
}

@media (max-width: 1280px) {
    .logo-title {
        display: none;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (min-width: 1280px) and (max-width: 1450px) {
    .logo-title {
        display: none;
    }

    .logo-subtitle {
        display: none;
    }
}


/* Mobile Devices (Max Width: 600px) */

@media (max-width: 600px) {
    h1.brand-name {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .tagline-box {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .loader-wrapper {
        width: 220px;
        margin-top: 35px;
    }

    .logo-icon {
        width: 200px;
        height: 200px;
    }

    .logo-ring {
        width: 85px;
        height: 85px;
    }

    .logo-icon span {
        font-size: 24px;
    }
}


/* Mini Mobile / Older Devices (Max Width: 380px) */

@media (max-width: 380px) {
    h1.brand-name {
        font-size: 1.8rem;
    }

    /* Prevent text wrapping */
    .tagline-box {
        font-size: 0.7rem;
        letter-spacing: 1px;
        transform: skewX(-10deg);
        /* Reduce skew to save space */
    }

    .tagline-text {
        transform: skewX(10deg);
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .logo-icon {
        width: 150px;
        height: 150px;
    }

    .logo-ring {
        width: 70px;
        height: 70px;
    }

    .logo-icon span {
        font-size: 20px;
    }

    .loader-wrapper {
        width: 180px;
        margin-top: 25px;
    }
}


/* 6. Animations */

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

@keyframes fillBar {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}


/* Glitch Keyframes */

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 0);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(1px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(2px, 0);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-1px, 0);
    }
}


/* JS Helper Class */

.hide-preloader {
    opacity: 0 !important;
    visibility: hidden !important;
}

.preloader-progress {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateY(0);
    }
}

@keyframes taglineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* Custom Cursor */

.cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(74, 111, 255, 0.3);
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.15s, width 0.2s, height 0.2s;
    mix-blend-mode: normal;
    box-shadow: 0 0 10px rgba(74, 111, 255, 0.5);
}

.cursor.hover {
    transform: scale(1.8);
    background: rgba(255, 107, 107, 0.3);
    border-color: var(--secondary-color);
}


/* Header & Navigation */

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: 500;
}


/* =========================
   NAVIGATION – BASE
========================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

/* Upcoming Event Section (Screenshot Match) */
.upcoming-event-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px 0;
    position: relative;
}

.upcoming-event-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
}

.event-featured-badge {
    background: linear-gradient(to right, #6366f1, #ec4899);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.event-main-content {
    text-align: center;
    flex: 0 1 auto;
}

.event-display-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
}

.event-display-msg {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 15px;
}

.event-display-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #334155;
}

.event-display-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-display-meta i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.btn-register-gradient {
    background: linear-gradient(to right, #6366f1, #ec4899);
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
    white-space: nowrap;
    border: none;
}

.btn-register-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4);
}

.section-close-simple {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.3rem;
    color: #94a3b8;
    transition: all 0.3s ease;
    padding: 10px;
}

.section-close-simple:hover {
    color: #ec4899;
    transform: translateY(-50%) rotate(90deg);
}

@media (max-width: 1200px) {
    .upcoming-event-section .container {
        gap: 20px;
    }

    .event-display-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .upcoming-event-section .container {
        flex-direction: column;
        padding: 40px 20px;
    }

    .event-display-meta {
        flex-wrap: wrap;
        gap: 15px;
    }

    .section-close-simple {
        top: 15px;
        transform: none;
    }

    .section-close-simple:hover {
        transform: rotate(90deg);
    }
}

.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    border-right: 6px solid #000;
    border-bottom: 6px solid #000;
    border-left: 2px solid #000;
    border-top: 2px solid #000;
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
    background: var(--secondary-color);
}

.navbar {
    display: flex;
    align-items: center;
}

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

.nav-link {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(74, 111, 255, 0.08);
}


/* underline */

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-link:hover::after {
    width: 70%;
}


/* active */

.nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 111, 255, 0.08);
}

.nav-link.active::after {
    width: 70%;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}


/* Hero Section */

.hero {
    padding: 140px 5% 80px;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-lighter);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: none;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-medium);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
}

.cta-button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    background: rgba(74, 111, 255, 0.05);
}

.hero-image {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border-right: 8px solid #000000;
    border-left: 2px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 2px solid #000000;
}

.code-animation {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
}

.code-snippet {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #333;
}

.code-keyword {
    color: #ff79c6;
}

.code-class {
    color: #8be9fd;
}

.code-function {
    color: #50fa7b;
}

.code-string {
    color: #f1fa8c;
}

.code-comment {
    color: #6272a4;
}

.code-number {
    color: #bd93f9;
}

.code-this {
    color: #ffb86c;
}


/* Floating Elements */

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.float-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    animation: float 6s infinite ease-in-out;
}

.float-element:nth-child(1) {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.float-element:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.float-element:nth-child(4) {
    top: 70%;
    left: 15%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}


/* Footer */

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-address {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-address i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.1rem;
    width: 20px;
}

.footer-email {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-email i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
}


/* ==================== UPDATED RESPONSIVE DESIGN ==================== */


/* ==================== UPDATED RESPONSIVE DESIGN ==================== */

@media (max-width: 1200px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .what-we-do-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .community-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .network-animation {
        width: 350px;
        height: 350px;
    }

    .developer-profile {
        flex-direction: column;
        text-align: center;
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero section adjustments */
    .about-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-hero .hero-text {
        max-width: 100%;
        padding: 0 1rem;
    }

    .about-hero .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .about-hero .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .about-hero .hero-description {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .animated-stats {
        justify-content: center;
        gap: 1rem;
    }

    .animated-stat {
        min-width: 150px;
    }

    /* Ensure active link works */
    .nav-link.active {
        color: var(--primary-color);
        background: rgba(74, 111, 255, 0.08);
    }

    .nav-link.active::after {
        width: 70%;
    }
}


/* Mobile */

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .nav-menu {
        overflow: visible;
    }

    .nav-menu .nav-link {
        position: relative;
        display: inline-block;
        margin: 0.3rem auto;
    }

    .nav-menu .nav-link.active {
        font-weight: 600;
        background: rgba(74, 111, 255, 0.1);
        border-radius: 8px;
    }

    .nav-menu .nav-link.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 60%;
        height: 3px;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        transform: translateX(-50%);
        border-radius: 3px;
    }
}


/* Small Mobile */

@media (max-width: 480px) {

    /* Hero adjustments */
    .about-hero .hero-title {
        font-size: 2rem;
    }

    .about-hero .hero-subtitle {
        font-size: 1rem;
    }

    .about-hero .hero-description {
        font-size: 0.9rem;
    }

    .about-hero .hero-image {
        height: 250px;
    }

    .about-logo-container {
        width: 150px;
        height: 150px;
    }

    /* Animated stats */
    .animated-stats {
        flex-direction: column;
        align-items: center;
    }

    .animated-stat {
        width: 100%;
        max-width: 200px;
    }

    /* Skill items */
    .skill-item {
        min-width: 100px;
        padding: 1rem;
    }

    .developer-skills {
        grid-template-columns: 1fr;
    }

    /* Quote */
    .quote-text {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    /* Network */
    .network-animation {
        width: 250px;
        height: 250px;
    }

    .network-center {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    .node-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Navigation active state */
    .nav-link.active {
        background: rgba(74, 111, 255, 0.1);
    }
}


/* Extra Small Mobile */

@media (max-width: 360px) {
    .about-hero .hero-title {
        font-size: 1.7rem;
    }

    .about-hero .hero-subtitle {
        font-size: 0.9rem;
    }

    .about-hero .hero-description {
        font-size: 0.85rem;
    }

    .about-hero .hero-image {
        height: 220px;
    }

    .about-logo-container {
        width: 130px;
        height: 130px;
    }

    .network-animation {
        width: 220px;
        height: 220px;
    }

    .preloader-title {
        font-size: 1.6rem;
    }

    .preloader-tagline {
        font-size: 0.8rem;
    }

    .logo-image-container {
        width: 100px;
        height: 100px;
    }
}


/* Fix for overflow issues */

@media (max-width: 768px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-content,
    .about-hero .hero-content {
        width: 100%;
        max-width: 100%;
    }

    /* Ensure elements don't overflow */
    .floating-game-elements,
    .floating-elements {
        display: none;
        /* Hide floating elements on mobile */
    }
}


/* Special fix for active navigation links */


/* ===============================
   MOBILE RESPONSIVE FIXES
   =============================== */


/* ===============================
   FINAL MOBILE RESPONSIVE FIX
   =============================== */


/* ==================== UPDATED RESPONSIVE DESIGN ==================== */


/* Large Tablets */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

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

    .cta-button {
        min-width: 180px;
        padding: 0.9rem 1.8rem;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .preloader-title {
        font-size: 3.2rem;
    }

    .logo-image-container {
        width: 180px;
        height: 180px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem 0;
        text-align: center;
        transition: left 0.3s ease;
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-medium);
        z-index: 999;
        overflow: visible;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: inline-block;
        margin: 0.3rem auto;
        padding: 0.8rem 1.2rem;
    }

    /* FORCE active bar */
    .nav-link.active::after {
        width: 60%;
        bottom: -4px;
    }
}


/* Mobile */

@media (max-width: 768px) {
    body {
        cursor: auto;
        overflow-x: hidden;
    }

    .cursor {
        display: none;
    }

    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-medium);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Navigation Links - FIXED active state */
    .nav-menu .nav-link {
        display: block;
        padding: 0.8rem 1rem;
        margin: 0.2rem 0;
        width: fit-content;
        margin: 0.3rem auto;
    }

    .nav-link.active {
        color: var(--primary-color);
        background: rgba(74, 111, 255, 0.08);
        font-weight: 600;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        width: 50%;
        height: 3px;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        left: 50%;
        bottom: -5px;
        transform: translateX(-50%);
        border-radius: 2px;
    }

    /* Hero Section */
    .hero {
        padding: 120px 1rem 60px;
        min-height: auto;
        overflow: hidden;
        position: relative;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.8rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin: 0 auto;
    }

    /* Hero Image - FIXED */
    .hero-image {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .code-animation {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .code-snippet {
        font-size: 0.8rem;
        padding: 1rem;
        overflow-x: auto;
        max-width: 100%;
        min-width: 0;
        display: block;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* Floating Elements - Adjust for mobile */
    .floating-elements {
        display: none;
        /* Hide floating elements on mobile to prevent layout issues */
    }

    /* Footer - FIXED */
    footer {
        padding: 2rem 1rem 1.5rem;
        background: #1a1a1a;
        width: 100%;
        overflow: hidden;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .social-link:hover {
        transform: none;
    }

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

    .footer-bottom {
        padding-top: 1.5rem;
    }

    /* Preloader */
    .preloader-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
        gap: 1px;
    }

    .preloader-tagline {
        font-size: 1rem;
        letter-spacing: 1px;
        gap: 2px;
        margin-top: 0.5rem;
    }

    .logo-image-container {
        width: 140px;
        height: 140px;
    }

    .preloader-logo-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}


/* Small Mobile */

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
        width: auto;
    }

    .hamburger {
        display: flex;
    }

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

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

    .hero-description {
        font-size: 0.9rem;
        padding: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }

    .logo-title {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    /* Hero Image adjustments */
    .hero-image {
        padding: 1rem;
    }

    .code-snippet {
        font-size: 0.75rem;
        padding: 0.8rem;
    }

    /* Navigation active state */
    .nav-link.active {
        background: rgba(74, 111, 255, 0.12);
    }

    /* Preloader */
    .preloader-title {
        font-size: 1.8rem;
        gap: 0;
    }

    .preloader-tagline {
        font-size: 0.85rem;
        letter-spacing: 0.8px;
    }

    .logo-image-container {
        width: 120px;
        height: 120px;
    }
}


/* Extra Small Mobile */

@media (max-width: 360px) {
    .logo-img {
        height: 30px;
        width: auto;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        max-width: 220px;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .nav-link.active {
        background: rgba(74, 111, 255, 0.15);
    }

    .preloader-title {
        font-size: 1.6rem;
    }

    .preloader-tagline {
        font-size: 0.8rem;
    }

    .logo-image-container {
        width: 100px;
        height: 100px;
    }
}


/* Fix for code snippet display */

@media (max-width: 768px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .code-snippet {
        min-width: 0;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure code doesn't break layout */
    .code-animation {
        max-width: 100%;
        overflow: visible;
    }

    pre {
        margin: 0;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}


/* Ensure active navigation works on all devices */

.nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 111, 255, 0.08);
}

.nav-link.active::after {
    width: 70%;
}


/* Special styling for mobile active navigation */

@media (max-width: 768px) {
    .nav-menu .nav-link.active {
        background: rgba(74, 111, 255, 0.1);
        border-radius: 8px;
        padding: 0.8rem 1.2rem;
        margin: 0.2rem auto;
        display: inline-block;
    }

    .nav-link.active::after {
        bottom: -3px;
        width: 60%;
    }

    .preloader-title {
        font-size: 2.5rem;
    }

    .logo-image-container {
        width: 200px;
        height: 200px;
    }

    .preloader-content {
        gap: 2rem;
    }
}


/* Add these styles to your existing style.css file */


/* ==================== ANNOUNCEMENT MARQUEE STYLES ==================== */


/* Add these styles to your existing style.css file */


/* ==================== MARQUEE SECTION STYLES ==================== */


/* ==================== MARQUEE SECTION STYLES ==================== */


/* ==================== MARQUEE SECTION STYLES ==================== */

.marquee-section {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff7a 100%);
    padding: 1rem 0;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(99, 213, 255, 0.789);
    border: 1px solid rgba(0, 51, 255, 0.503);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 20px);
}

.marquee-container {
    display: flex;
    align-items: center;
    max-width: 100%;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.marquee-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.4rem 1rem;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(74, 111, 255, 0.3);
    border-right: 4px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 4px solid #000000;
    border-top: 3px solid #000000;
    position: relative;
    overflow: hidden;
}

.marquee-label i {
    font-size: 1rem;
    color: rgb(255, 255, 255);
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.marquee-label span {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', sans-serif;
    color: white;
    z-index: 1;
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 45px;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: marqueeSlide 40s linear infinite;
    white-space: nowrap;
    padding: 0 1rem;
    will-change: transform;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
    padding: 0.2rem 0;
    cursor: default;
    flex-shrink: 0;
    white-space: nowrap;
}

.marquee-item:hover {
    color: white;
}

.marquee-badge {
    background: linear-gradient(135deg, var(--primary-color), rgba(74, 111, 255, 0.8));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-item:hover .marquee-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.marquee-text {
    color: #414040;
    font-weight: 500;
}

.marquee-separator {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.7;
    animation: blink 3s infinite;
    flex-shrink: 0;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}


/* Optimized animation for smooth continuous loop */

@keyframes marqueeSlide {
    0% {
        transform: translateY(-50%) translateX(0);
    }

    100% {
        transform: translateY(-50%) translateX(-50%);
    }
}


/* ==================== RESPONSIVE BREAKPOINTS ==================== */


/* Large Desktops (1440px and above) */

@media (min-width: 1440px) {
    .marquee-section {
        max-width: 1400px;
        padding: 1.5rem 0;
        margin: 3rem auto;
        width: calc(100% - 60px);
    }

    .marquee-content {
        gap: 2rem;
        animation: marqueeSlide 45s linear infinite;
    }

    .marquee-item {
        font-size: 1rem;
        gap: 0.8rem;
    }

    .marquee-badge {
        font-size: 0.85rem;
        padding: 0.25rem 0.8rem;
    }

    .marquee-separator {
        font-size: 1.5rem;
    }

    .marquee-label {
        padding: 0.5rem 1.2rem;
        gap: 0.8rem;
    }

    .marquee-label i {
        font-size: 1.2rem;
    }

    .marquee-label span {
        font-size: 1rem;
    }
}


/* Desktops (1200px to 1439px) */

@media (min-width: 1200px) and (max-width: 1439px) {
    .marquee-section {
        width: calc(100% - 40px);
        margin: 2.5rem auto;
    }

    .marquee-content {
        animation: marqueeSlide 40s linear infinite;
        gap: 1.8rem;
    }
}


/* Laptops (992px to 1199px) */

@media (min-width: 992px) and (max-width: 1199px) {
    .marquee-section {
        width: calc(100% - 30px);
        margin: 2rem auto;
        padding: 0.8rem 0;
    }

    .marquee-content {
        animation: marqueeSlide 35s linear infinite;
        gap: 1.5rem;
    }

    .marquee-item {
        font-size: 0.85rem;
    }

    .marquee-badge {
        font-size: 0.7rem;
        padding: 0.18rem 0.5rem;
    }

    .marquee-separator {
        font-size: 1.1rem;
    }

    .marquee-label {
        padding: 0.35rem 0.9rem;
        margin-right: 0.8rem;
    }

    .marquee-label span {
        font-size: 0.85rem;
    }
}


/* Tablets (768px to 991px) */

@media (min-width: 768px) and (max-width: 991px) {
    .marquee-section {
        width: calc(100% - 20px);
        margin: 1.5rem auto;
        padding: 0.7rem 0;
        border-radius: 8px;
    }

    .marquee-container {
        padding: 0 0.8rem;
    }

    .marquee-content {
        animation: marqueeSlide 30s linear infinite;
        gap: 1.2rem;
        padding: 0 0.8rem;
    }

    .marquee-item {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .marquee-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .marquee-text {
        font-size: 0.8rem;
    }

    .marquee-separator {
        font-size: 1rem;
    }

    .marquee-track {
        min-height: 40px;
    }
}


/* Large Mobile Phones (576px to 767px) */

@media (min-width: 576px) and (max-width: 767px) {
    .marquee-section {
        width: calc(100% - 16px);
        margin: 1.2rem auto;
        padding: 0.6rem 0;
        border-radius: 6px;
    }

    .marquee-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0 0.6rem;
    }

    .marquee-label {
        border-radius: 6px;
        margin-right: 0;
        padding: 0.3rem 0.8rem;
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
    }

    .marquee-label i {
        font-size: 0.9rem;
    }

    .marquee-label span {
        font-size: 0.8rem;
    }

    .marquee-content {
        animation: marqueeSlide 25s linear infinite;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .marquee-item {
        font-size: 0.75rem;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.3rem;
    }

    .marquee-badge {
        font-size: 0.6rem;
        padding: 0.12rem 0.35rem;
    }

    .marquee-text {
        font-size: 0.75rem;
    }

    .marquee-separator {
        font-size: 0.9rem;
    }

    .marquee-track {
        min-height: 38px;
    }
}


/* Small Mobile Phones (425px to 575px) */

@media (min-width: 425px) and (max-width: 575px) {
    .marquee-section {
        width: calc(100% - 12px);
        margin: 1rem auto;
        padding: 0.5rem 0;
        border-radius: 5px;
    }

    .marquee-container {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .marquee-label {
        padding: 0.25rem 0.7rem;
        font-size: 0.9rem;
    }

    .marquee-label i {
        font-size: 0.85rem;
    }

    .marquee-label span {
        font-size: 0.75rem;
    }

    .marquee-content {
        animation: marqueeSlide 20s linear infinite;
        gap: 0.8rem;
        padding: 0 0.4rem;
    }

    .marquee-item {
        font-size: 0.7rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.2rem;
        min-width: 140px;
    }

    .marquee-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }

    .marquee-text {
        font-size: 0.7rem;
        text-align: center;
    }

    .marquee-separator {
        display: none;
    }

    .marquee-track {
        min-height: 45px;
    }
}


/* Extra Small Mobile Phones (375px to 424px) */

@media (min-width: 375px) and (max-width: 424px) {
    .marquee-section {
        width: calc(100% - 10px);
        margin: 0.8rem auto;
        padding: 0.4rem 0;
    }

    .marquee-label {
        padding: 0.2rem 0.6rem;
    }

    .marquee-label i {
        font-size: 0.8rem;
    }

    .marquee-label span {
        font-size: 0.7rem;
    }

    .marquee-content {
        animation: marqueeSlide 18s linear infinite;
        gap: 0.7rem;
        padding: 0 0.3rem;
    }

    .marquee-item {
        font-size: 0.65rem;
        min-width: 130px;
    }

    .marquee-badge {
        font-size: 0.5rem;
        padding: 0.08rem 0.25rem;
    }

    .marquee-text {
        font-size: 0.65rem;
    }

    .marquee-track {
        min-height: 42px;
    }
}


/* Very Small Mobile Phones (320px to 374px) */

@media (min-width: 320px) and (max-width: 374px) {
    .marquee-section {
        width: calc(100% - 8px);
        margin: 0.6rem auto;
        padding: 0.3rem 0;
        border-radius: 4px;
    }

    .marquee-container {
        gap: 0.4rem;
        padding: 0 0.4rem;
    }

    .marquee-label {
        padding: 0.18rem 0.5rem;
    }

    .marquee-label i {
        font-size: 0.75rem;
    }

    .marquee-label span {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    .marquee-content {
        animation: marqueeSlide 15s linear infinite;
        gap: 0.6rem;
        padding: 0 0.2rem;
    }

    .marquee-item {
        font-size: 0.6rem;
        min-width: 120px;
        gap: 0.15rem;
    }

    .marquee-badge {
        font-size: 0.45rem;
        padding: 0.06rem 0.2rem;
        border-radius: 15px;
    }

    .marquee-text {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .marquee-track {
        min-height: 40px;
    }
}


/* Tiny Mobile Phones (below 320px) */

@media (max-width: 319px) {
    .marquee-section {
        width: calc(100% - 4px);
        margin: 0.5rem auto;
        padding: 0.2rem 0;
    }

    .marquee-container {
        gap: 0.3rem;
        padding: 0 0.3rem;
    }

    .marquee-label {
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
    }

    .marquee-label i {
        font-size: 0.7rem;
    }

    .marquee-label span {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }

    .marquee-content {
        animation: marqueeSlide 12s linear infinite;
        gap: 0.5rem;
        padding: 0 0.15rem;
    }

    .marquee-item {
        font-size: 0.55rem;
        min-width: 110px;
        flex-direction: column;
        gap: 0.1rem;
    }

    .marquee-badge {
        font-size: 0.4rem;
        padding: 0.05rem 0.15rem;
        border-radius: 12px;
    }

    .marquee-text {
        font-size: 0.55rem;
        line-height: 1.1;
    }

    .marquee-track {
        min-height: 38px;
    }
}


/* Pause animation on hover (desktop only) */

@media (hover: hover) and (pointer: fine) {
    .marquee-section:hover .marquee-content {
        animation-play-state: paused;
    }
}


/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
        position: relative;
        left: auto;
        transform: translateY(-50%);
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.5rem;
    }

    .marquee-item {
        flex-direction: row;
        align-items: center;
        padding: 0.2rem 0.5rem;
        min-width: auto;
    }

    .marquee-separator {
        animation: none;
        display: inline;
    }
}


/* Landscape mode adjustments */

@media (orientation: landscape) and (max-height: 600px) {
    .marquee-section {
        margin: 1rem auto;
        padding: 0.5rem 0;
    }

    .marquee-track {
        min-height: 35px;
    }

    .marquee-content {
        animation: marqueeSlide 25s linear infinite;
    }
}


/* High Pixel Density Devices (Retina) */

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .marquee-section {
        border-width: 0.5px;
    }

    .marquee-label,
    .marquee-badge {
        border-width: 0.5px;
    }
}