:root {
            --primary-dark: #141414;
            --secondary-dark: #1f1f1f;
            --accent-red: #e50914;
            --accent-red-hover: #f40612;
            --text-primary: #ffffff;
            --text-secondary: #b3b3b3;
            --card-bg: #2a2a2a;
            --card-hover-bg: #383838;
            --scrollbar-bg: #333;
            --scrollbar-thumb: #555;
            --header-height: 70px;
            --card-width: 220px;
            --card-height: 320px;
            --hero-height: 50vh;
            --sidebar-width: 300px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--primary-dark);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            transition: transform 0.4s ease;
        }

        body.menu-open {
            overflow: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        button {
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
            width: 550px;
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(180deg, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.9) 100%);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 4%;
            transition: background-color 0.3s ease;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .burger-menu {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 24px;
            height: 18px;
            background: transparent;
            cursor: pointer;
            padding: 0;
        }

        .burger-menu span {
            display: block;
            height: 2px;
            width: 100%;
            background-color: var(--text-primary);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .burger-menu.open span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .burger-menu.open span:nth-child(2) {
            opacity: 0;
        }

        .burger-menu.open span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--accent-red);
            letter-spacing: -0.5px;
            padding-top: 10px;
        }

        /* Search Styles - Desktop */
        .search-container {
            position: relative;
            width: 300px;
        }

        #search-input {
            width: 100%;
            padding: 10px 40px 10px 15px;
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            color: var(--text-primary);
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        #search-input:focus {
            outline: none;
            background-color: rgba(255, 255, 255, 0.15);
            border-color: var(--accent-red);
            width: 350px;
        }

        #search-input::placeholder {
            color: var(--text-secondary);
        }

        .search-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            pointer-events: none;
        }

        /* Mobile Search Toggle Button */
        .mobile-search-toggle {
            display: none;
            background: transparent;
            font-size: 1.4rem;
            color: var(--text-primary);
            padding: 8px;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .mobile-search-toggle:hover {
            background: rgba(255,255,255,0.1);
        }

        /* Mobile Search Overlay */
        .mobile-search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.95);
            z-index: 2001;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 80px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .mobile-search-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-search-container {
            width: 90%;
            max-width: 400px;
            position: relative;
        }

        .mobile-search-input {
            width: 100%;
            padding: 15px 50px 15px 20px;
            font-size: 1.1rem;
            background: var(--secondary-dark);
            border: 2px solid var(--accent-red);
            border-radius: 50px;
            color: var(--text-primary);
            outline: none;
        }

        .mobile-search-close {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            color: var(--text-secondary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
        }

        .mobile-search-close:hover {
            color: var(--accent-red);
        }

        /* Slide-out Menu */
        .side-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background-color: var(--primary-dark);
            z-index: 2000;
            transform: translateX(-100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
            overflow-y: auto;
        }

        .side-menu.open {
            transform: translateX(0);
        }

        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .menu-header {
            padding: 30px 25px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .menu-header .logo {
            font-size: 1.8rem;
            color: var(--accent-red);
            margin: 0;
            padding: 0;
        }

        .menu-close-btn {
            background: rgba(255, 255, 255, 0.0);
            border: none;
            color: var(--text-primary);
            font-size: 1.8rem;
            line-height: 1;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-weight: 300;
        }

        .menu-close-btn:hover {
            background: var(--accent-red);
            transform: scale(1.05);
        }

        .menu-nav {
            padding: 0 25px;
        }

        .menu-nav ul {
            list-style: none;
        }

        .menu-nav li {
            margin-bottom: 5px;
        }

        .menu-nav a {
            display: flex;
            align-items: center;
            padding: 14px 15px;
            color: var(--text-secondary);
            font-size: 1rem;
            font-weight: 500;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .menu-nav a:hover {
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
        }

        .menu-nav a.active {
            background-color: rgba(229, 9, 20, 0.1);
            color: #274c9a;
        }

        .menu-nav i {
            margin-right: 15px;
            width: 20px;
            text-align: center;
        }

        .menu-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .menu-footer p {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .menu-footer .social-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .menu-footer .social-links a {
            color: var(--text-secondary);
            font-size: 1.1rem;
            transition: color 0.3s ease;
        }

        .menu-footer .social-links a:hover {
            color: var(--accent-red);
        }

        /* Main Content */
        main {
            margin-top: var(--header-height);
        }

        /* Hero Section */
        .hero {
            height: var(--hero-height);
            position: relative;
            display: flex;
            align-items: center;
            padding: 0 4%;
            background: linear-gradient(to right, rgba(20,20,20,0.9) 0%, rgba(20,20,20,0.7) 50%, rgba(20,20,20,0.3) 100%);
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
            opacity: 0.6;
        }

        .hero-content {
            max-width: 600px;
            z-index: 2;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.1;
        }

        .hero p {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            max-width: 500px;
        }

        .hero-button {
            display: inline-block;
            background-color: #274c9a;
            color: white;
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 4px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .hero-button:hover {
            background-color: #173981;
            transform: scale(1.05);
        }

        /* Magazine Rows */
        .row-section {
            padding: 2rem 4%;
        }

        .row-section h2 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .row-container {
            position: relative;
            margin-bottom: 2rem;
        }

        .row {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            padding: 10px 0;
            scrollbar-width: none;
        }

        .row::-webkit-scrollbar {
            display: none;
        }

        .magazine-card {
            flex: 0 0 auto;
            width: var(--card-width);
            height: var(--card-height);
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
        }

        .magazine-card:hover {
            transform: scale(1.05);
            z-index: 10;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        }

        .card-image-container {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .magazine-card:hover .card-image {
            transform: scale(1.1);
        }

        .card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .magazine-card:hover .card-overlay {
            transform: translateY(0);
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        .read-now-btn {
            background-color: #274c9a;
            color: white;
            padding: 8px 15px;
            border-radius: 4px;
            font-weight: 500;
            font-size: 0.9rem;
            display: inline-block;
            transition: background-color 0.3s ease;
        }

        .read-now-btn:hover {
            background-color: #173981;
        }

        .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            opacity: 0;
            transition: opacity 0.3s ease, background-color 0.3s ease;
            z-index: 5;
        }

        .row-container:hover .scroll-btn {
            opacity: 1;
        }

        .scroll-btn:hover {
            background-color: rgba(0, 0, 0, 0.9);
        }

        .scroll-left {
            left: 10px;
        }

        .scroll-right {
            right: 10px;
        }

        /* Footer */
        footer {
            background-color: var(--secondary-dark);
            padding: 3rem 4% 2rem;
            margin-top: 2rem;
        }

        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section {
            flex: 1;
            min-width: 250px;
        }

        .footer-section h3 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .footer-section p {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            max-width: 400px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #173981;
        }

        .copyright {
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.9rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            header {
                padding: 0 3%;
            }
            
            .logo {
                font-size: 1.5rem;
            }
            
            /* Hide desktop search container */
            .search-container {
                display: none;
            }
            
            /* Show mobile search toggle button */
            .mobile-search-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .hero {
                padding: 0 3%;
                height: 60vh;
            }
            
            .hero h1 {
                font-size: 2.2rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            .row-section {
                padding: 1.5rem 3%;
            }
            
            .magazine-card {
                width: 180px;
                height: 270px;
            }
            
            .scroll-btn {
                display: none;
            }
            
            .side-menu {
                width: 280px;
            }
        }

        @media (max-width: 576px) {
            .hero {
                height: 50vh;
            }
            
            .hero h1 {
                font-size: 1.8rem;
            }
            
            .magazine-card {
                width: 160px;
                height: 240px;
            }
            
            .footer-content {
                flex-direction: column;
            }
            
            .side-menu {
                width: 100%;
            }
        }

        /* Touch device optimizations */
        @media (hover: none) {
            .card-overlay {
                transform: translateY(0);
                background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
            }
            
            .scroll-btn {
                display: none;
            }
            
            .magazine-card:hover {
                transform: none;
                box-shadow: none;
            }
        }