/* ===================================
   Minesweeper Classic Bomb Plus
   Design System & Styles
   =================================== */

/* === CSS Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-red: #dc2f2c;
    --dark-brown: #743d29;
    --ivory: #ffd976;

    /* Color Variations */
    --red-dark: #b32522;
    --red-light: #e85855;
    --brown-dark: #5a2f1f;
    --brown-light: #8f4d35;
    --ivory-light: #ffe89a;
    --ivory-dark: #ffca52;

    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #faf8f5;
    --light-gray: #f5f5f5;
    --gray: #888888;
    --dark-gray: #333333;
    --black: #1a1a1a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-brown) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--ivory) 0%, var(--ivory-dark) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xl);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 217, 118, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 47, 44, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    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-icon {
    width: 120px;
    height: 120px;
    margin: var(--spacing-md) auto var(--spacing-md);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.hero h1 {
    color: var(--white);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-xs);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--ivory-light);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--ivory);
    color: var(--dark-brown);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* === Sections === */
section {
    padding: var(--spacing-xxl) var(--spacing-md);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    color: var(--dark-brown);
    position: relative;
    display: inline-block;
    margin-top: 100px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* === Description Section === */
.description {
    background: var(--white);
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.promo-text {
    font-size: clamp(1.125rem, 1.75vw, 1.25rem);
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.promo-text.highlight {
    background: linear-gradient(135deg, var(--ivory-light), var(--ivory));
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-red);
}

/* === Features Section === */
.features {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    color: var(--dark-brown);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.feature-description {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* === Screenshot Gallery === */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    /* iPhone-style border */
    padding: clamp(2px, 0.5vw, 5px);
    background: #fe9679;
    border: 1px solid #fe9679;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* === Why Section === */
.why-section {
    background: var(--gradient-primary);
    color: var(--white);
}

.why-section .section-title {
    color: var(--white);
}

.why-section .section-title::after {
    background: var(--ivory);
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.why-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.125rem, 1.75vw, 1.25rem);
}

.why-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.highlight-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ivory);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.highlight-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* === Contact Form === */
.contact-form {
    max-width: 700px;
    margin: var(--spacing-lg) auto 0;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--ivory-light);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ivory);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 217, 118, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.form-submit .btn {
    min-width: 200px;
}

/* === CTA Section === */
.cta-section {
    background: var(--dark-brown);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.125rem, 1.75vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* === Footer === */
.footer {
    background: var(--black);
    color: var(--gray);
    padding: var(--spacing-lg) var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.keyword-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--ivory-light);
    transition: all var(--transition-fast);
}

.keyword-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ivory);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-normal);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

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

    .hero {
        min-height: 90vh;
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-icon {
        width: 100px;
        height: 100px;
    }

    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .nav-logo img {
        width: 32px;
        height: 32px;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
    }

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

/* === Print Styles === */
@media print {

    .navbar,
    .mobile-menu-toggle,
    .cta-section {
        display: none;
    }
}