/* index.css - Modern Design System for USP */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #065f46; /* Deep Emerald */
    --primary-light: #10b981;
    --secondary: #d97706; /* Amber/Gold */
    --accent: #f59e0b;
    --bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Headers */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.75rem 0;
    background: var(--white);
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--white);
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1001;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text) !important;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

.dropdown a::after {
    display: none !important;
}

.dropdown a:hover {
    background: #f1f5f9;
    color: var(--primary) !important;
    padding-left: 1.75rem;
}

.nav-links > li > a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links > li > a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

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

.info-ticker {
    margin: 0 0 2rem 0;
}

.btn-stable-click:active {
    transform: translateY(-2px) !important;
    background: var(--primary-light) !important;
    box-shadow: var(--shadow) !important;
    transition: none !important;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

/* .card:hover {
    transform: translateY(-5px);
} */

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    height: auto;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -1;
}

.hero-content {
    margin-top: -4rem;
}

.hero-content .btn {
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

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

.footer-col h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* --- Mobile Menu Styles --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

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

.nav-platforms:hover .dropdown-platforms {
    display: block !important;
}

/* --- Global Responsive --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem !important;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-content {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop elements */
    .desktop-only, .nav-links, .nav-platforms {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }

    nav {
        padding: 0 !important;
        height: 50px !important;
        display: block !important;
    }
    
    .nav-content {
        height: 100%;
    }

    .logo img {
        height: 28px !important;
    }
    
    .logo span {
        display: none !important;
    }

    /* Detail Images Fix */
    .card div[style*="overflow: hidden"] {
        height: auto !important;
        max-height: 400px !important;
    }
    
    .card div[style*="overflow: hidden"] img {
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
        max-height: 400px !important;
        background: #f8fafc;
    }
    
    /* Header & Hero */
    .hero {
        padding: 4rem 0 2rem !important;
        min-height: auto !important;
    }
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    .page-banner-section {
        padding: 4rem 0 2rem !important;
    }
    .page-banner-section h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    .page-banner-section p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    .page-banner-section .container {
        padding: 0 1.5rem !important;
    }

    .page-banner-section p[style*="text-transform: uppercase"] {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 0.5rem !important;
    }
    .page-banner-section .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Sections Padding */
    section {
        padding: 2.5rem 0 !important;
    }

    /* Grids */
    .responsive-grid-2 {
        display: block !important;
    }
    
    .responsive-grid-2 > div,
    .responsive-grid-2 > article,
    .responsive-grid-2 > aside {
        margin-bottom: 3.5rem !important;
        width: 100% !important;
    }

    .info-ticker {
        margin-top: 2rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    /* Reset Fixed Heights for Mobile */
    .responsive-grid-2 > div,
    .responsive-grid-2 > article,
    div[style*="height: 450px"],
    div[style*="height: 500px"] {
        height: auto !important;
        min-height: 250px !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .card img {
        height: 200px !important;
        object-fit: cover !important;
    }

    /* Grids & Layouts Hard Reset */
    .responsive-grid-2, 
    div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"],
    div[style*="display: grid"][style*="grid-template-columns: 1fr 1.5fr"],
    div[style*="display: grid"][style*="grid-template-columns: 2fr 1fr"] {
        display: block !important;
    }
    
    .responsive-grid-2 > div, 
    .responsive-grid-2 > article,
    div[style*="display: grid"] > div {
        width: 100% !important;
        margin-bottom: 2rem !important;
    }

    /* Fixed Height Reset - Prevent Cropping */
    [style*="height: 500px"], 
    [style*="height: 450px"], 
    [style*="height: 400px"] {
        height: auto !important;
        min-height: auto !important;
    }
    
    [style*="height: 500px"] img, 
    [style*="height: 450px"] img, 
    [style*="height: 400px"] img {
        height: auto !important;
        max-height: 450px !important;
        object-fit: contain !important; /* Prevent severe cropping of portraits */
        background: #f8fafc;
    }

    .card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .logo img {
        height: 35px !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem !important;
    }
    .nav-content span {
        display: none !important;
    }
}
/* Pagination Styles */
.btn-page {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}
.btn-page:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.page-current {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    background: rgba(6, 95, 70, 0.05);
    color: var(--primary);
    border-radius: 10px;
}

/* Utility Classes */
.opacity-20 { opacity: 0.2; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

/* Partner Logo Scroll Animation */
.logo-scroll-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.logo-scroll-track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
    gap: 4rem;
    align-items: center;
}

.logo-scroll-track:hover {
    animation-play-state: paused;
}

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