/* Mexcellent Font */
@font-face {
    font-family: 'Mexcellent';
    src: url('fonts/mexcellent.otf') format('opentype'),
         url('fonts/mexcellent.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Musgrove Manager 2026 Color Scheme */
    --yellow: #FFCD00;          /* Primary yellow - headers/banners */
    --gold: #AC944D;            /* Gold accent */
    --blue: #1D428A;            /* Primary blue */
    --dark-blue: #1a237e;       /* Main background */
    --light-blue: #4a90e2;      /* Highlights/active states */
    --dark-green: #2e7d32;      /* Top/bottom bars */
    --green: #4caf50;           /* Positive actions */
    --white: #ffffff;           /* Text and panels */
    --black: #000000;           /* Text on yellow */
    --light-gray: #f0f0f0;      /* Light backgrounds */
    --border-gray: #d0d0d0;     /* Borders */
    --gray: #cccccc;            /* Medium gray */
    --red: #d32f2f;             /* Red for warnings */
    --orange: #ff9800;          /* Orange for alerts */
    
    /* Semantic color mappings */
    --primary-color: var(--dark-blue);
    --secondary-color: var(--blue);
    --accent-color: var(--yellow);
    --highlight-color: var(--light-blue);
    --text-primary: var(--white);
    --text-secondary: var(--gray);
    --text-on-yellow: var(--black);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Better mobile experience */
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling on iOS */
}

body {
    font-family: 'Poppins', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 126, 0.95); /* dark-blue with transparency */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--yellow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--yellow);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    min-width: 44px; /* Better touch target */
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.4); /* Dark blue overlay for better text readability */
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)) 
            drop-shadow(0 0 15px rgba(255, 205, 0, 0.8)) 
            drop-shadow(0 0 30px rgba(255, 205, 0, 0.6))
            drop-shadow(0 0 50px rgba(255, 205, 0, 0.4));
    animation: float 3s ease-in-out infinite;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-family: 'Mexcellent', Arial, sans-serif;
    font-size: 4rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 48px; /* Better touch target for mobile */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(255, 205, 0, 0.4);
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.6);
    background: #ffd700;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: bold;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin: 10px auto;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Features Section */
.features {
    padding: 100px 0 100px 0;
    background: var(--blue);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--yellow);
    border-bottom: 2px solid var(--dark-blue);
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-top: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-gray);
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--light-gray);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blue);
    font-weight: bold;
}

.feature-card p {
    color: var(--black);
    line-height: 1.8;
}

.comp-icons-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.comp-icon-mini {
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.comp-icon-mini:hover {
    opacity: 1;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: var(--primary-color);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.screenshot-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.screenshot-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid var(--yellow);
}

/* About Section */
.about {
    padding: 100px 0 100px 0;
    background: var(--dark-blue);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--yellow);
    border-bottom: 2px solid var(--dark-blue);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Creators Section */
.creators {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.creators::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--yellow);
    border-bottom: 2px solid var(--dark-blue);
}

.creators .section-title {
    color: var(--blue);
    text-shadow: none;
}

.creators-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.creator-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.creator-logo:hover {
    transform: scale(1.05);
}

.creator-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Footer */
.footer {
    background: var(--dark-green);
    padding: 3rem 0;
    text-align: center;
    border-top: 3px solid var(--yellow);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-content p a {
    color: var(--yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content p a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 205, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #ffd700;
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.6);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 35, 126, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 1rem;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-logo {
        max-width: 250px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
        padding-top: 1.5rem;
    }

    .features {
        padding: 80px 0;
    }

    .features::before {
        height: 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .screenshots {
        padding: 80px 0;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about {
        padding: 80px 0;
    }

    .about::before {
        height: 60px;
    }

    .about-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .creators {
        padding: 80px 0;
    }

    .creators::before {
        height: 60px;
    }

    .creators-logos {
        gap: 2rem;
        padding-top: 1.5rem;
    }

    .creator-img {
        max-width: 250px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        min-height: 48px; /* Better touch target */
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        padding: 0.5rem;
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-logo {
        height: 40px;
    }

    .hero {
        padding-top: 90px;
        min-height: 85vh;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-logo {
        max-width: 180px;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .features {
        padding: 60px 0;
    }

    .features::before {
        height: 50px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .screenshots {
        padding: 60px 0;
    }

    .about {
        padding: 60px 0;
    }

    .about::before {
        height: 50px;
    }

    .about-text {
        font-size: 1rem;
    }

    .creators {
        padding: 60px 0;
    }

    .creators::before {
        height: 50px;
    }

    .creators-logos {
        flex-direction: column;
        gap: 2rem;
    }

    .creator-img {
        max-width: 200px;
    }

    .btn {
        font-size: 0.95rem;
        padding: 1rem 1.5rem;
    }

    .scroll-indicator {
        font-size: 0.8rem;
        bottom: 20px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

