/* Modern CSS Variables */
:root {
    --primary: #E50914;
    --primary-hover: #ff1a26;
    --dark: #0A0A0A;
    --darker: #050505;
    --surface: #1a1a1a;
    --light: #FFFFFF;
    --gray: #A0A0A0;
    --gray-light: #C0C0C0;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state for animations */
.visible {
    opacity: 1;
    transform: translate(0, 0) !important;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Icons */
.fas, .fab {
    color: var(--primary);
    margin-right: 8px;
    transition: var(--transition);
}

/* Feature Icons */
.feature i {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: inline-block;
    color: var(--primary);
}

/* Card Icons */
.card h3 i {
    margin-right: 10px;
    font-size: 1.2em;
    vertical-align: middle;
    color: var(--primary);
}

/* Button Icons */
.btn i {
    margin-right: 8px;
    transition: var(--transition);
}

/* Primary Button Icons */
.btn-primary i {
    color: var(--light);
}

/* Outline Button Icons */
.btn-outline i {
    color: var(--primary);
}

/* Hover States */
.btn-primary:hover i {
    color: var(--light);
    transform: translateX(2px);
}

.btn-outline:hover i {
    color: var(--primary-hover);
}

/* Hover Effects */
a:hover i, button:hover i {
    transform: scale(1.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--light);
}

/* Page Title (H1) */
.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 900px;
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin: 1.5rem auto;
    }
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray-light);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
    width: auto;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 100;
}

.language-select {
    position: relative;
    min-width: 140px;
    z-index: 1000;
}

.selected-language {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--light);
}

.selected-language:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.selected-language:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.selected-language .flag {
    font-size: 1.2em;
    line-height: 1;
}

.selected-language i {
    margin-left: auto;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.language-select.open .selected-language i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 140px;
    margin-top: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    max-height: 250px;
    overflow-y: auto;
    pointer-events: none;
    z-index: 1001;
}

.language-select.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Moved up to the .language-dropdown rule for better organization */

.language-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    transition: background 0.2s ease;
    position: relative;
}

.language-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    width: 100%;
    color: var(--light);
    text-decoration: none;
    transition: background 0.2s ease;
}

.language-link:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px var(--primary);
}

.language-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.language-dropdown li:first-child {
    border-radius: 9px 9px 0 0;
}

.language-dropdown li:last-child {
    border-radius: 0 0 9px 9px;
}

.language-dropdown li:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.05);
}

.language-dropdown li.active {
    background: rgba(229, 9, 20, 0.1);
}

.language-dropdown .flag {
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
}

.language-dropdown li.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.language-dropdown li.disabled .coming-soon {
    background: var(--gray);
}

/* Main CTA Section */
.main-cta {
    background: var(--darker);
    position: relative;
    padding: 1.5rem 0;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.015), transparent);
    z-index: -1;
}

.cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary);
    color: var(--light) !important;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.cta-icon {
    display: inline-flex;
    transition: transform 0.3s ease;
    color: var(--light) !important;
}

.cta-icon i {
    color: var(--light) !important;
}

.cta-text {
    position: relative;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.cta-button:hover .cta-icon {
    transform: translateX(3px) rotate(-15deg);
}

.cta-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.3);
}

/* Pulse Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .cta-button .cta-icon {
        font-size: 0.9em;
    }
}

/* Hero Section */
#hero {
    height: 100%;
    min-height: 200px;
    background: url('../images/aviator-crash-game-banner.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    margin-top: 70px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/1; /* Default aspect ratio */
}

/* Desktop Banner */
@media (min-width: 1025px) {
    #hero {
        background-image: url('../images/aviator-crash-game-banner-desktop.png');
        aspect-ratio: 16/4; /* 1600x400 */
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    #hero {
        aspect-ratio: 4/1.5;
    }
}

/* Mobile */
@media (max-width: 767px) {
    #hero {
        aspect-ratio: 1/1.5;
        border-radius: 0;
        margin-top: 60px;
    }
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--surface);
}

/* Icons */
.fas, .fab {
    margin-right: 8px;
    width: 1em;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

/* Button Icons */
.btn i {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Primary Button Icons */
.btn:not(.btn-outline) i {
    color: white;
}

/* Outline Button Icons */
.btn-outline i {
    color: var(--primary);
}

/* Hover States */
.btn:not(.btn-outline):hover i {
    animation: bounce 0.5s ease;
}

.btn-outline:hover i {
    color: white;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
}

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

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Steps */
.step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* FAQ Section */
#faq {
    padding: 80px 0;
    background: var(--darker);
}

#faq .container {
    max-width: 900px;
}

#faq h2 {
    color: var(--light);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

#faq h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-item:not(:last-child) {
    margin-bottom: 1.25rem;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    color: var(--light);
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-light);
    line-height: 1.7;
    border-top: 1px solid var(--border);
}

/* About Game Section */
#about-game {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

#about-game .container {
    position: relative;
    z-index: 1;
}

#about-game h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--light);
}

#about-game h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

#about-game h3 {
    color: var(--light);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

#about-game .grid-2 > div:first-child h3 {
    margin-right: 2rem;
}

#about-game .grid-2 > div:last-child h3 {
    margin-left: 2rem;
}

#about-game h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Make headings side by side on desktop */
@media (min-width: 992px) {
    #about-game .grid-2 {
        display: flex;
        flex-direction: column;
    }
    
    #about-game .grid-2 > div {
        display: flex;
        flex-direction: column;
    }
    
    #about-game .grid-2 > div:first-child,
    #about-game .grid-2 > div:last-child {
        width: 100%;
    }
    
    #about-game .grid-2 > div:first-child {
        margin-bottom: 2rem;
    }
    
    #about-game .grid-2 > div:last-child {
        margin-top: 0;
    }
    
    /* Headers row */
    #about-game .grid-2 {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    #about-game .grid-2 > div {
        flex: 1;
        min-width: 0;
    }
    
    #about-game .grid-2 > div:first-child {
        padding-right: 2rem;
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    
    #about-game .grid-2 > div:last-child {
        padding-left: 2rem;
    }
    
    /* Reset margins for the headers */
    #about-game h3 {
        margin-top: 0;
    }
}

#about-game p {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem -15px 0;
    width: calc(100% + 30px);
    height: 100%;
    align-content: flex-start;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    margin: 0 15px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(229, 9, 20, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(229, 9, 20, 0.2);
}

.feature:hover::before {
    opacity: 1;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature:hover i {
    transform: scale(1.1) translateY(-3px);
    color: #ff1a26;
}

.feature h4 {
    color: var(--light);
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.feature h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.feature:hover h4::after {
    width: 100%;
}

.feature p {
    color: var(--gray-light);
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.feature:hover p {
    color: var(--light);
}

/* Grid Layout Adjustments */
.grid-2 {
    display: grid;
    gap: 3rem;
    align-items: stretch;
    min-height: 0;
}

/* About Game Grid Layout */
#about-game .grid-2 {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Desktop Layout */
@media (min-width: 992px) {
    #about-game .grid-2 {
        flex-direction: row;
        align-items: flex-start;
    }
    
    #about-game .grid-2 > div {
        flex: 1;
        padding: 0 15px;
    }
    
    #about-game .grid-2 > div:first-child {
        padding-left: 0;
    }
    
    #about-game .grid-2 > div:last-child {
        padding-right: 0;
    }
    
    #about-game h3 {
        margin-top: 0;
        white-space: nowrap;
    }
    
    /* Ensure features grid stays in a grid layout */
    .features-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    #about-game {
        padding: 6rem 0;
    }
    
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #about-game h2 {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature {
        padding: 2.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Add staggered animation delay */
.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }
.feature:nth-child(5) { animation-delay: 0.5s; }
.feature:nth-child(6) { animation-delay: 0.6s; }

.faq-item.active .faq-answer {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #faq {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}

/* Demo Game */
.demo-container {
    background: var(--darker);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
}

.demo-placeholder {
    width: 100%;
    height: 400px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--darker);
    padding: 60px 0 30px;
    text-align: center;
    position: relative;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-logo {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 50px;
    transition: transform 0.3s ease;
    width: auto;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* Demo Game Section */
#demo-game {
    background: var(--darker);
    position: relative;
    overflow: hidden;
}

.demo-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

ul li {
    position: relative;
    padding-left: 1.5em;
    display: flex;
    align-items: center;
}

ul li .fas,
ul li .fab {
    margin-left: -1.5em;
    margin-right: 0.5em;
    color: var(--primary);
}

.demo-placeholder {
    position: relative;
    width: 100%;
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.05);
}

.demo-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}

.demo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.demo-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.demo-buttons .btn {
    min-width: 180px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .step-number {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .demo-container {
        padding: 20px;
    }
    
    .demo-placeholder {
        min-height: 400px;
    }
    
    .demo-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .demo-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a:hover {
    color: var(--light);
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
    border-color: transparent;
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

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

    section {
        padding: 40px 0;
    }

    .step {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    footer::before {
        width: 80px;
        height: 3px;
    }
    
    .footer-logo {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .footer-links {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .footer-logo {
        margin-bottom: 15px;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-links {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .copyright {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    /* Mobile Hero Adjustments */
    #hero {
        height: 250px;
        max-height: 250px;
        margin-top: 60px;
    }
}

/* Combined Title and CTA Section */
.title-cta-section {
    width: 100%;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    position: relative;
    z-index: 2;
    text-align: center;
}

.title-cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.title-cta-section .page-title {
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    width: 100%;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 900px;
}

.title-cta-section .cta-container {
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease-out;
}

/* General .page-title class for other sections */
.page-title:not(.title-cta-section .page-title) {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 2rem;
    max-width: 900px;
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* General cta-container for other sections */
.cta-container:not(.title-cta-section .cta-container) {
    margin-top: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.cta-button .cta-icon {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon {
    transform: translateX(4px);
}

/* Tablet and Desktop Layout */
@media (min-width: 768px) {
    .title-cta-section {
        padding: 2rem 0;
    }
    
    .title-cta-section .container {
        padding: 0 4rem;
    }
    
    .page-title {
        margin-bottom: 2.5rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .title-cta-section {
        padding: 2.5rem 0;
    }
}