/* 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;
}

/* List Styles */
ol {
    padding-left: 20px;
    margin: 20px 0;
}

ol li {
    margin: 10px 0;
    padding-left: 10px;
    line-height: 1.6;
}

ul {
    padding-left: 20px;
}

ul li {
    margin: 8px 0;
    line-height: 1.6;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

@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; /* Prevent horizontal scroll */
    position: relative;
}

.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;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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);
}

/* Custom Gem Button */
.btn-brawl {
    font-family: SupercellText-Bold, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/gems_button.webp');
    background-size: 100% 100%;
    background-color: transparent;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 300 / 74;
    height: auto;
    padding: 0;
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    transition: all 0.15s ease;
    border-radius: 8px;
    line-height: 1.2;
}

.btn-brawl:hover {
    transform: scale(1.05);
}

.btn-brawl:active {
    transform: scale(0.95);
}

.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: fixed;
    right: 2rem;
    top: 33px;
    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-size: cover;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding-top: 66px;
    padding-bottom: 40px;
    min-height: 40vh;
    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 {
    background: var(--background-light);
}

/* Tool Features */
.tool-features {
    background: var(--background-dark);
    color: var(--text-light);
    text-align: left;
    padding: 40px 0;
    position: relative;
}

#tool-features-king {
    position: absolute;
    top: -120px;
    right: 5%;
    width: 150px;
    z-index: 1;
}

.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: left;
    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);
}

/* Accordion Styles */
.accordion-container {
    margin-top: 3rem;
}

.accordion-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f8f9fa;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.accordion-content {
    padding: 0 2rem 2rem 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 1rem 2rem 2rem 2rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Technology Section */
.technology {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 0 0 80px 0;
}

.technology .full-width-container {
    padding-left: 0;
    padding-right: 0;
}

.technology .section-text {
    padding: 0;
}

.technology h2,
.technology p {
    color: var(--text-light);
}

.tech-hero-image {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0 0 60px 0;
    padding: 0;
}

@media (max-width: 768px) {
    .tech-hero-image {
        height: 250px;
        object-position: center top;
    }
}

/* 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-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;
}

/* Blog Page Styles */
.blog-content {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.blog-post a {
    text-decoration: none !important;
    color: inherit;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(45, 133, 243, 0.25);
}

.blog-post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.blog-post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-post-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Single Blog Post Styles */
.blog-post-hero {
    padding: 120px 0;
    background-size: cover;
    color: var(--text-light);
    text-align: center;
}

.blog-post-hero-content {
    background: transparent;
    display: inline-block;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.blog-post-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.blog-post-hero-meta {
    font-size: 1rem;
    opacity: 0.9;
}

.blog-post-article {
    padding: 80px 0;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-article-content p {
    margin-bottom: 1.5rem;
}



/* 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;
}

/* Responsive Design */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        height: auto;
        width: auto;
        padding: 0;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        transition: 0.3s;
        padding: 1px 2rem 2rem 2rem;
        height: calc(100vh - 65px);
        z-index: 9999;
    }

    .nav-menu.active {
        display: flex;
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .footer-logo {
        float: right;
        margin-left: 15px;
        margin-bottom: 5px;
        margin-top: 5px;
    }

    .footer-text::after {
        content: "";
        clear: both;
        display: table;
    }
    
    .footer-logo-img {
        height: 35px;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-content.reverse {
        direction: ltr;
    }
    
    .section-content.reverse > * {
        direction: ltr;
        text-align: left;
    }
    
    .section-text {
        order: 2;
    }
    
    .section-image {
        order: 1;
        margin-top: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero {
        min-height: 60vh;
        padding: 100px 20px 40px;
        background-attachment: scroll;
        background-size: cover !important;
            background-repeat: no-repeat !important;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-brawl {
        width: 100%;
        max-width: 280px;
        padding: 18px 24px;
        font-size: 16px;
        touch-action: manipulation;
        min-height: 48px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        line-height: 1.3;
        text-align: left;
    }
    
    .feature-icon {
        margin: 0;
    }
    
    .hero-description {
        padding: 30px 0;
    }
    
    .hero-description .hero-buttons {
        margin-bottom: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-bottom: 2rem;
    }
    
    .tool-features h2 {
        margin-bottom: 1.5rem;
    }

    #tool-features-king {
        position: absolute;
        top: -101px;
        right: 10px;
        width: 140px;
        margin: 0;
    }
    
    .section-image {
        text-align: center;
        margin-top: 2rem;
    }
    
    .section-image img {
        max-width: 100%;
        height: auto;
    }

    .technology .section-text {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 90px 15px 30px;
        min-height: 35vh;
        background-size: cover !important;
            background-repeat: no-repeat !important;
    }
    
    .hero-text h1 {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }
    
    section {
        padding: 40px 0;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-brawl {
        font-size: 14px;
        padding: 16px 20px;
    }
    
    .step {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
    }
    
    .logo {
        left: 0.5rem;
    }
    
}

/* Hero Gems Image */
.gems-showcase-image {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .gems-showcase-image {
        height: 250px;
        object-position: center top;
    }
}

/* Homepage Article Text Align */
.hero-description p,
.generator-steps p,
.technology .section-text,
.results p,
.skins p {
    text-align: left;
}

.generator-steps h2,
.results h2,
.skins h2 {
    text-align: left;
}

/* Contact Form Styles */
.contact-form-section {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

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

.contact-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Checkbox Styling */
.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 0.75rem;
}

/* Success Message */
.success-message {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.success-content h3 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.success-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}