/* Brawl Stars Design System */
:root {
    --primary-blue: #2D85F3;
    --secondary-blue: #2A59DB;
    --bright-green: #00FF88;
    --gem-green: #1DB954;
    --accent-purple: #8B5CF6;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --background-dark: #000000;
    --background-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-gems: linear-gradient(135deg, var(--gem-green) 0%, var(--bright-green) 100%);
    --shadow-card: 0 8px 32px rgba(45, 133, 243, 0.2);
    --shadow-button: 0 4px 16px rgba(45, 133, 243, 0.3);
    --border-radius: 16px;
    --border-radius-small: 8px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    * {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}

@media (max-width: 768px) {
    * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    word-wrap: break-word; /* Add this line */
    overflow-wrap: break-word; /* Add this for better compatibility */
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-button);
}

/* Brawl Stars Authentic Button */
.btn-brawl {
    font-family: SupercellText-Bold, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    background-color: #2d85f3;
    padding: 1.2em 2em;
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    line-height: 1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-brawl:hover {
    background-color: #1e5bb8;
}

.btn-brawl:active {
    background-color: #1a4f9f;
}

.btn-primary, .btn-primary.large {
    font-family: SupercellText-Bold, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    background-color: #2d85f3;
    padding: 1.2em 2em;
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    line-height: 1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-primary:hover, .btn-primary.large:hover {
    background-color: #1e5bb8;
}

.btn-primary:active, .btn-primary.large:active {
    background-color: #1a4f9f;
}

.btn-secondary {
    font-family: SupercellText-Bold, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    background-color: #2d85f3;
    padding: 1.2em 2em;
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    line-height: 1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background-color: #1e5bb8;
}

.btn-secondary:active {
    background-color: #1a4f9f;
}

/* Header */
.header {
    background-color: #000;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    height: 66px;
    z-index: 1001;
    padding: 0 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.logo-img {
    height: auto;
    max-height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}


.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/brawl_stars_gems_explosion.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding-top: 66px;
    padding-bottom: 40px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 40px;
}

.hero-text h1 {
    color: var(--text-light);
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    font-family: SupercellHeadline-Heavy, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.25;
    letter-spacing: -.025em;
}

.hero-text p {
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section p:last-child {
    margin-bottom: 0;
}

/* Hero Description */
.hero-description {
    background: var(--background-light);
    padding: 20px 0 20px 0;
}

.hero-description p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-content.reverse {
    direction: rtl;
}

.section-content.reverse > * {
    direction: ltr;
    text-align: left;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

/* Features Section */
.features {
    background: var(--background-light);
    padding: 20px 0 80px 0;
}

/* Tool Features */
.tool-features {
    background: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 40px 0;
}

.tool-features h2 {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-card h3 {
    margin-bottom: 0;
    text-align: center;
    flex: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Generator Steps */
.generator-steps {
    background: var(--background-light);
}

.steps-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.step-number {
    background: var(--gradient-primary);
    color: var(--text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Technology Section */
.technology {
    background: var(--background-dark);
    color: var(--text-light);
}

.technology h2,
.technology p {
    color: var(--text-light);
}

/* Results Section */
.results {
    background: var(--background-light);
}

.results h2,
.results p {
    text-align: left;
}

.cta-section {
    margin-top: 3rem;
}

.urgency-text {
    margin-top: 1rem;
    font-style: italic;
    color: var(--accent-purple);
    font-weight: 600;
}

/* Skins Section */
.skins {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/brawl_stars_gems_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
}

.skins h2,
.skins p {
    color: var(--text-light);
    text-align: left;
}

.final-cta {
    margin-top: 3rem;
    text-align: center;
}

/* Privacy Policy Styles */
.privacy-hero-bg {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/brawlergems_privacy_policy.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding-top: 66px;
    padding-bottom: 40px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
}

.privacy-content {
    background: var(--background-light);
    padding: 80px 0;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.policy-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.policy-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.policy-list li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.policy-section a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.policy-section a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.back-to-home {
    text-align: center;
    margin-top: 4rem;
}

/* About Us Hero Background */
.aboutus-hero-bg {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/aboutus_brawl_stars.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Help Hero Background */
.help-hero-bg {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/help_brawl_stars.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contact Hero Background */
.contact-hero-bg {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/contantus.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 1200px) {
    .privacy-hero-bg, .hero, .aboutus-hero-bg, .help-hero-bg, .contact-hero-bg {
        min-height: 60vh;
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .privacy-hero-bg, .aboutus-hero-bg, .help-hero-bg, .contact-hero-bg {
        min-height: 25vh;
        padding-top: 66px;
        padding-bottom: 20px;
    }
    
    .privacy-content {
        padding: 60px 0;
    }
    
    .policy-list {
        padding-left: 1.5rem;
    }
}

/* FAQ Accordion Styles */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(45, 133, 243, 0.2);
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.faq-question {
    background: rgba(45, 133, 243, 0.1);
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: rgba(45, 133, 243, 0.15);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-blue);
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Contact Form Styles */
.contact-form-section {
    margin: 4rem 0;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.contact-success {
    text-align: center;
    padding: 2rem;
    background: rgba(29, 185, 84, 0.1);
    border: 2px solid #1DB954;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.contact-success.hidden {
    display: none;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-success h3 {
    color: #1DB954;
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 133, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label .checkbox-text {
    flex: 1;
    word-break: break-word;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-blue);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.contact-submit-btn {
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-loading.hidden {
    display: none;
}

.contact-form.submitting .btn-text {
    display: none;
}

.contact-form.submitting .btn-loading {
    display: inline;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
}

/* Blog Page Styles */
.blog-content {
    background: var(--background-light);
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blog-post {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
}

.blog-post a {
    text-decoration: none;
    color: inherit;
}

.blog-post-img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.blog-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #343a40;
}


/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-text {
    flex: 1;
    text-align: left;
}

.footer-text p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-text p:last-child {
    margin-bottom: 0;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: row; /* Keep as row */
        text-align: left;   /* Align text to the left */
        gap: 1rem;
    }
    
    .footer-text {
        text-align: left; /* Align text to the left */
    }
    
    .footer-logo-img {
        height: 35px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        left: -100%;
        top: 66px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        transition: 0.3s;
        padding: 2rem 2rem;
        height: calc(100vh - 66px);
    }

    .nav-menu.active {
        display: flex;
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        height: auto;
        width: auto;
        padding: 0;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        min-height: 25vh;
        padding-top: 66px;
        padding-bottom: 20px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .step {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
}