/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER STYLES ========== */
header {
    background: linear-gradient(90deg, #FF8C00, #FF6347);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.logo:hover {
    color: #FFD700;
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.profile-icon {
    font-size: 1.5em;
}

/* ========== SEARCH BAR ========== */
.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 15px 25px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.search-bar i {
    color: #666;
    font-size: 1.2em;
    margin: 0 10px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.search-bar input::placeholder {
    color: #999;
}

/* ========== HOME PAGE LAYOUT ========== */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.left-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 250px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.nav-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.5);
}

.nav-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nav-card:hover img {
    transform: scale(1.1);
}

.nav-card h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 40px 20px 20px;
    font-size: 2.5em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========== RIGHT SIDEBAR ========== */
.right-sidebar {
    width: 350px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.right-sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #FF8C00;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.trending-list {
    list-style-position: inside;
    margin-bottom: 25px;
    padding-left: 10px;
}

.trending-list li {
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.trending-list li:hover {
    background: rgba(255, 140, 0, 0.2);
    padding-left: 15px;
    color: #FFD700;
}

.trending-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.trending-covers a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.trending-covers a:hover {
    transform: scale(1.1);
    z-index: 10;
}

.trending-covers img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* ========== MANGA PAGE STYLES ========== */
.page-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, black, black);
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-header h1 {
    font-size: 3.5em;
    margin: 0 0 15px 0;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-header h1 i {
    margin-right: 15px;
}

.page-header p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    padding: 40px 20px 60px;
}

.manga-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.manga-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.manga-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.manga-card:hover img {
    transform: scale(1.05);
}

.manga-info {
    padding: 25px;
}

.manga-info h3 {
    margin: 0 0 12px 0;
    font-size: 1.4em;
    color: #FF8C00;
}

.manga-info p {
    margin: 0 0 15px 0;
    font-size: 0.95em;
    color: #ddd;
    line-height: 1.6;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.genre-tag {
    background: linear-gradient(135deg, #FF8C00, #FF6347);
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.8em;
    font-weight: 600;
}

/* ========== SERIES PAGE STYLES ========== */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    padding: 40px 20px 60px;
}

.series-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.series-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(255, 69, 0, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.series-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.series-card:hover img {
    transform: scale(1.05);
}

.series-info {
    padding: 25px;
}

.series-info h3 {
    margin: 0 0 12px 0;
    font-size: 1.5em;
    color: #FF6347;
}

.series-info .rating {
    color: #FFD700;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.series-info p {
    margin: 0 0 15px 0;
    font-size: 0.95em;
    color: #ddd;
    line-height: 1.6;
}

.series-meta {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.series-meta span {
    background: linear-gradient(135deg, #FF6347, #FF1493);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ========== MOVIES PAGE STYLES ========== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 40px 20px 60px;
}

.movie-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.movie-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.6);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.movie-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover img {
    transform: scale(1.08);
}

.movie-info {
    padding: 28px;
}

.movie-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.6em;
    color: #BA55D3;
}

.movie-info .rating {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.15em;
    font-weight: 600;
}

.movie-info p {
    margin: 0 0 18px 0;
    font-size: 1em;
    color: #ddd;
    line-height: 1.7;
}

.movie-meta {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.movie-meta span {
    background: linear-gradient(135deg, #BA55D3, #9370DB);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(90deg, #1a1a2e, #0f3460);
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .right-sidebar {
        width: 100%;
    }
    
    .trending-covers {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5em;
    }
    
    .main-nav a {
        font-size: 1em;
    }
    
    .page-header h1 {
        font-size: 2.5em;
    }
    
    .nav-card h2 {
        font-size: 2em;
    }
    
    .manga-grid,
    .series-grid,
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        padding: 12px 20px;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .page-header p {
        font-size: 1em;
    }
    
    .trending-covers {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== ENHANCED RESPONSIVE DESIGN ========== */

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .page-header h1 {
        font-size: 4em;
    }
    
    .manga-grid,
    .series-grid,
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 40px;
    }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    
    .manga-grid,
    .series-grid,
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Tablet Landscape & Small Desktop (768px - 1023px) */
@media (max-width: 1023px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .right-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .trending-covers {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .nav-card {
        height: 200px;
    }
    
    .nav-card h2 {
        font-size: 2.2em;
    }
    
    .manga-grid,
    .series-grid,
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) {
    /* Header */
    header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 1.5em;
        letter-spacing: 1px;
    }
    
    .main-nav {
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 1em;
    }
    
    .profile-icon {
        font-size: 1.3em;
    }
    
    /* Search Bar */
    .search-bar {
        padding: 12px 20px;
        margin: 20px auto;
    }
    
    .search-bar i {
        font-size: 1em;
    }
    
    .search-bar input {
        font-size: 0.9em;
    }
    
    /* Page Headers */
    .page-header {
        padding: 40px 15px;
    }
    
    .page-header h1 {
        font-size: 2.5em;
    }
    
    .page-header p {
        font-size: 1.1em;
    }
    
    /* Navigation Cards */
    .left-nav {
        gap: 20px;
    }
    
    .nav-card {
        height: 180px;
    }
    
    .nav-card h2 {
        font-size: 2em;
        padding: 30px 15px 15px;
    }
    
    /* Trending Sidebar */
    .right-sidebar {
        padding: 20px;
    }
    
    .trending-list {
        font-size: 0.9em;
    }
    
    /* Content Grids */
    .manga-grid,
    .series-grid,
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
        padding: 30px 15px 50px;
    }
    
    /* Cards */
    .manga-card img,
    .series-card img,
    .movie-card img {
        height: 350px;
    }
    
    .manga-info,
    .series-info,
    .movie-info {
        padding: 20px;
    }
    
    .manga-info h3,
    .series-info h3,
    .movie-info h3 {
        font-size: 1.2em;
    }
}

/* Mobile Landscape (480px - 599px) */
@media (max-width: 599px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .logo {
        font-size: 1.3em;
    }
    
    .main-nav a {
        font-size: 0.9em;
    }
    
    /* Page Headers */
    .page-header {
        padding: 35px 10px;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .page-header h1 i {
        margin-right: 10px;
        font-size: 0.9em;
    }
    
    .page-header p {
        font-size: 1em;
    }
    
    /* Trending Sidebar */
    .trending-covers {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .trending-covers img {
        height: 100px;
    }
    
    /* Content Grids */
    .manga-grid,
    .series-grid,
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 10px 40px;
    }
    
    /* Cards */
    .manga-card,
    .series-card,
    .movie-card {
        max-width: 100%;
    }
}

/* Mobile Portrait - iPhone, Android (320px - 479px) */
@media (max-width: 479px) {
    /* Header */
    header {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 1.1em;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 0.85em;
    }
    
    .profile-icon {
        font-size: 1.2em;
    }
    
    /* Search Bar */
    .search-bar {
        padding: 10px 15px;
        margin: 15px auto;
    }
    
    .search-bar i {
        font-size: 0.9em;
        margin: 0 5px;
    }
    
    .search-bar input {
        font-size: 0.85em;
    }
    
    /* Page Headers */
    .page-header {
        padding: 30px 10px;
    }
    
    .page-header h1 {
        font-size: 1.8em;
    }
    
    .page-header p {
        font-size: 0.9em;
    }
    
    /* Navigation Cards */
    .nav-card {
        height: 150px;
    }
    
    .nav-card h2 {
        font-size: 1.5em;
        padding: 20px 10px 10px;
    }
    
    /* Trending Sidebar */
    .right-sidebar h3 {
        font-size: 1.2em;
    }
    
    .trending-list li {
        font-size: 0.85em;
        padding: 8px 5px;
    }
    
    .trending-covers {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .trending-covers img {
        height: 85px;
    }
    
    /* Content Grids */
    .manga-grid,
    .series-grid,
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 5px 30px;
    }
    
    /* Cards */
    .manga-card img,
    .series-card img {
        height: 320px;
    }
    
    .movie-card img {
        height: 380px;
    }
    
    .manga-info,
    .series-info,
    .movie-info {
        padding: 15px;
    }
    
    .manga-info h3,
    .series-info h3 {
        font-size: 1.1em;
    }
    
    .movie-info h3 {
        font-size: 1.2em;
    }
    
    .manga-info p,
    .series-info p,
    .movie-info p {
        font-size: 0.85em;
    }
    
    .rating {
        font-size: 0.9em;
    }
    
    .genre-tags {
        gap: 6px;
    }
    
    .genre-tag {
        font-size: 0.7em;
        padding: 4px 10px;
    }
    
    .series-meta,
    .movie-meta {
        gap: 8px;
    }
    
    .series-meta span,
    .movie-meta span {
        font-size: 0.75em;
        padding: 5px 10px;
    }
    
    /* Footer */
    footer {
        padding: 15px 0;
        margin-top: 40px;
    }
    
    footer p {
        font-size: 0.8em;
    }
}

/* Extra Small Devices (max-width: 320px) */
@media (max-width: 320px) {
    .logo {
        font-size: 1em;
    }
    
    .page-header h1 {
        font-size: 1.5em;
    }
    
    .nav-card h2 {
        font-size: 1.3em;
    }
    
    .manga-card img,
    .series-card img {
        height: 280px;
    }
    
    .movie-card img {
        height: 340px;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    /* Smooth scrolling for iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix for iOS Safari bottom bar */
    .search-bar {
        margin-bottom: env(safe-area-inset-bottom);
    }
    
    /* Prevent text size adjustment on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .page-header {
        padding: 25px 10px;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .nav-card {
        height: 120px;
    }
    
    .nav-card h2 {
        font-size: 1.5em;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .main-nav a,
    .profile-icon,
    .trending-list li {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .nav-card:hover,
    .manga-card:hover,
    .series-card:hover,
    .movie-card:hover {
        transform: none;
    }
    
    /* Add active state instead */
    .nav-card:active,
    .manga-card:active,
    .series-card:active,
    .movie-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .search-bar,
    .right-sidebar {
        display: none;
    }
    
    .page-header {
        background: none;
        color: black;
    }
    
    .manga-grid,
    .series-grid,
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== CONTACT PAGE STYLES ========== */
.contact-header {
    background: linear-gradient(135deg, #00CED1, #20B2AA);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    padding: 50px 20px;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #00CED1;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ddd;
    font-size: 1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00CED1;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00CED1, #20B2AA);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 206, 209, 0.4);
}

.submit-btn i {
    margin-right: 10px;
}

/* Contact Info Cards */
.contact-info-card {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00CED1, #20B2AA);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    flex-shrink: 0;
}

.info-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    color: #00CED1;
}

.info-content p {
    margin: 0;
    color: #ddd;
    line-height: 1.6;
}

/* Social Links */
.social-links {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.social-links h3 {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    color: #00CED1;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00CED1, #20B2AA);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(0, 206, 209, 0.5);
}

/* ========== TRENDING PAGE STYLES ========== */
.trending-header {
    background: linear-gradient(135deg, #FF4500, #FF6347);
}

.trending-content {
    padding: 40px 20px 60px;
}

.trending-main-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.trending-item {
    display: flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.trending-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(255, 69, 0, 0.4);
}

.trending-rank {
    flex-shrink: 0;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF4500, #FF6347);
    border-radius: 50%;
    font-size: 2em;
    font-weight: 700;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.trending-image {
    flex-shrink: 0;
}

.trending-image img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.trending-details {
    flex: 1;
}

.trending-details h3 {
    margin: 0 0 12px 0;
    font-size: 1.8em;
    color: #FF6347;
}

.trending-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stars {
    color: #FFD700;
    font-size: 1.2em;
}

.score {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1em;
}

.trending-details p {
    margin: 0 0 15px 0;
    color: #ddd;
    line-height: 1.6;
    font-size: 1em;
}

.trending-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #FF4500, #FF6347);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ========== RESPONSIVE - CONTACT & TRENDING ========== */
@media (max-width: 1023px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .contact-form {
        padding: 25px;
    }
    
    .trending-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .trending-image img {
        width: 200px;
        height: 280px;
    }
}

@media (max-width: 479px) {
    .trending-rank {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .rank-number {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    
    .trending-image img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* ========== RIGHT SIDEBAR - CUSTOMIZED ========== */
.right-sidebar {
    width: 350px;
    background: rgba(255, 140, 0, 0.1);  /* Orange-tinted background */
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.right-sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #FFD700;  /* Gold title */
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.trending-list {
    list-style-position: inside;
    margin-bottom: 25px;
    padding-left: 10px;
}

.trending-list li {
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95em;
    color: #FFFFFF;  /* White text */
    transition: all 0.3s ease;
}

.trending-list li:hover {
    background: rgba(255, 140, 0, 0.3);  /* Orange hover background */
    padding-left: 15px;
    color: #FFD700;  /* Gold hover text */
}

.trending-list a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-list a:hover {
    color: #FFD700;
}
body {
    font-family: 'Poppins', sans-serif;
    background-image: linear-gradient(rgba(26, 26, 46, 0.85), rgba(22, 33, 62, 0.85)), 
                      url('https://tse3.mm.bing.net/th/id/OIP.C7U25xxXPx49d1CAOYvwWgHaEK?rs=1&pid=ImgDetMain&o=7&rm=3');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: white;
}

/* ========== CONTACT PAGE RESPONSIVE DESIGN ========== */

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .contact-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        gap: 60px;
    }
    
    .contact-form {
        padding: 40px;
    }
}

/* Desktop & Mac (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1.5fr 1fr;
        gap: 50px;
    }
}

/* Tablet & iPad (768px - 1023px) */
@media (max-width: 1023px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .contact-form-section,
    .contact-info-section {
        width: 100%;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .contact-info-card {
        padding: 20px;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) {
    .contact-header {
        padding: 40px 15px;
    }
    
    .contact-header h1 {
        font-size: 2.5em;
    }
    
    .contact-header p {
        font-size: 1.1em;
    }
    
    .contact-wrapper {
        padding: 30px 15px;
        gap: 35px;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95em;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 1em;
    }
    
    .contact-info-card {
        flex-direction: row;
        gap: 15px;
        padding: 20px;
    }
    
    .info-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3em;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
}

/* Mobile Landscape & Small Tablets (480px - 599px) */
@media (max-width: 599px) {
    .contact-header {
        padding: 35px 10px;
    }
    
    .contact-header h1 {
        font-size: 2em;
    }
    
    .contact-header h1 i {
        font-size: 0.9em;
        margin-right: 10px;
    }
    
    .contact-header p {
        font-size: 1em;
    }
    
    .contact-wrapper {
        padding: 25px 10px;
        gap: 30px;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.6em;
        margin-bottom: 18px;
    }
    
    .contact-form {
        padding: 20px;
        border-radius: 15px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 0.95em;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9em;
    }
    
    .submit-btn {
        padding: 13px;
        font-size: 1em;
    }
    
    .contact-info-card {
        padding: 18px;
        gap: 12px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .info-content h3 {
        font-size: 1.1em;
    }
    
    .info-content p {
        font-size: 0.9em;
    }
    
    .social-links {
        padding: 20px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
}

/* Mobile Portrait - iPhone, Android (320px - 479px) */
@media (max-width: 479px) {
    .contact-header {
        padding: 30px 10px;
    }
    
    .contact-header h1 {
        font-size: 1.8em;
    }
    
    .contact-header h1 i {
        font-size: 0.85em;
        margin-right: 8px;
    }
    
    .contact-header p {
        font-size: 0.9em;
    }
    
    .contact-wrapper {
        padding: 20px 10px;
        gap: 25px;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .contact-form {
        padding: 18px;
        border-radius: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.85em;
        border-radius: 8px;
    }
    
    .form-group textarea {
        rows: 5;
        min-height: 120px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 0.95em;
        border-radius: 8px;
    }
    
    .submit-btn i {
        margin-right: 8px;
        font-size: 0.9em;
    }
    
    .contact-info-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
        margin: 0 auto;
    }
    
    .info-content h3 {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .info-content p {
        font-size: 0.85em;
        line-height: 1.5;
    }
    
    .social-links {
        padding: 18px;
        margin-top: 20px;
    }
    
    .social-links h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
        gap: 12px;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1em;
    }
}

/* Extra Small Devices (max-width: 320px) */
@media (max-width: 320px) {
    .contact-header h1 {
        font-size: 1.5em;
    }
    
    .contact-header p {
        font-size: 0.85em;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 9px;
        font-size: 0.8em;
    }
    
    .submit-btn {
        padding: 11px;
        font-size: 0.9em;
    }
    
    .contact-info-card {
        padding: 12px;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .contact-form input,
    .contact-form textarea {
        -webkit-appearance: none;
        appearance: none;
    }
    
    .submit-btn {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .contact-header {
        padding: 25px 10px;
    }
    
    .contact-header h1 {
        font-size: 1.8em;
    }
    
    .contact-wrapper {
        padding: 20px 10px;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .submit-btn,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Remove hover effects on touch devices */
    .contact-info-card:hover {
        transform: none;
    }
    
    .submit-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .social-icon:hover {
        transform: none;
    }
    
    /* Add active state instead */
    .submit-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .social-icon:active {
        transform: scale(0.95);
        opacity: 0.85;
    }
    
    .contact-info-card:active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .contact-form {
        border: 1.5px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-group input,
    .form-group textarea {
        border-width: 1.5px;
    }
}


