/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text-img {
    height: 30px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8B4513;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background: #8B4513;
    border-radius: 3px;
    transition: 0.3s ease;
    transform-origin: center;
}

/* Hero Section */
.hero {
    min-height: 0vh;
    background: linear-gradient(135deg, #FFE4B5 0%, #DEB887 100%);
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 0;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
    z-index: 1;
    padding-right: 15rem;
}

.hero-content .logo-text-img {
    height: 90px;
    width: auto;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #5D4E37;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-newsletter-text {
    font-size: 1rem;
    color: #8B4513;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.hero-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-form-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    max-width: 600px;
    flex-wrap: wrap;
}

.hero-form-group input[type="email"] {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    padding: 1rem;
    border: 2px solid #32BBFF;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.hero-form-group input[type="email"]:focus {
    border-color: #0076B1;
}

.hero-form-group input[type="email"]::placeholder {
    color: #999;
}

.btn-newsletter {
    padding: 1rem 2rem;
    background: #32BBFF;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-newsletter .btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-newsletter:hover {
    background: #0076B1;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

.hero-form-message {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: none;
    margin-top: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
    display: block;
}

.hero-form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #dc3545;
    color: #721c24;
    display: block;
}

.hero-image {
    animation: fadeInRight 1s ease-out;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hero-video {
    width: 150%;
    min-width: 1200px;
    max-width: none;
    height: auto;
    position: relative;
    right: -55%;
    mask-image: 
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 45%, black 60%, transparent 100%);
    -webkit-mask-image: 
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 45%, black 60%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* Trailer Section */
.trailer {
    padding: 5rem 0;
    background-image: url('../assets/pawfriends_background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #8B4513;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.trailer-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.trailer-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-image: url('../assets/pawfriends_background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.feature-row:first-of-type {
    margin-top: 3rem;
}

.feature-row-reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-row:nth-of-type(2) .feature-image,
.feature-row:nth-of-type(3) .feature-image {
    flex: 0 0 40%;
}

.feature-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 650px;
}

.feature-phone-img {
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

/* Larger images for walks, competitions and care features */
.feature-row:nth-of-type(1) .feature-phone-img,
.feature-row:nth-of-type(2) .feature-phone-img,
.feature-row:nth-of-type(3) .feature-phone-img,
.feature-row:nth-of-type(4) .feature-phone-img {
    max-width: 700px;
}

.feature-row:nth-of-type(1) .feature-image,
.feature-row:nth-of-type(2) .feature-image,
.feature-row:nth-of-type(3) .feature-image,
.feature-row:nth-of-type(4) .feature-image {
    flex: 0 0 40%;
}

.feature-phone-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Image Lightbox */
.img-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.img-lightbox-overlay.active {
    display: flex;
    cursor: zoom-out;
}

.img-lightbox-modal {
    background: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-width: min(1280px, 96vw);
    max-height: 92vh;
    overflow: visible;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.img-lightbox-overlay.active .img-lightbox-modal {
    transform: scale(1);
    opacity: 1;
}

.img-lightbox-content {
    position: relative;
}

.img-lightbox-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 92vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
/* Removed close button UI per request; close via overlay click or Escape */

.feature-title {
    font-size: 2.3rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: -0.3rem;
}

.feature-title-decoration {
    margin-bottom: 1.25rem;
}

.title-underline {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

.feature-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.competition-type {
    margin-bottom: 2rem;
}

.competition-type h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 0.75rem;
}

.competition-type p {
    color: #666;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-image: url('../assets/pawfriends_background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-email-form {
    width: 100%;
}

.cta-form-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;

    justify-content: center;
}

.cta-form-group input[type="email"] {
    flex: 1 1 auto;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid #32BBFF;
    border-radius: 50px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.cta-form-group input[type="email"]:focus {
    outline: none;
    border-color: #0076B1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.cta-form-group input[type="email"]::placeholder {
    color: #999;
}

.btn-cta-subscribe {
    padding: 1rem 2.5rem;
    background: #32BBFF;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-subscribe .btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-cta-subscribe:hover {
    background: #0076B1;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

.cta-form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.cta-form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
    display: block;
}

.cta-form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #dc3545;
    color: #721c24;
    display: block;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-image: url('../assets/pawfriends_background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
    min-height: 600px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background-image: url('../assets/pawfriends_faq1.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    min-width: 30px;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background-image: url('../assets/pawfriends_faq2.webp');
    transform: rotate(15deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    /* Animate vertical padding so close doesn't 'jump' upward; keep horizontal padding constant */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    opacity: 0;
    will-change: max-height;
    /* Keep left/right padding fixed so content doesn't shift from the left on open */
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Only add vertical padding on open to prevent leftward motion */
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-image: url('../assets/pawfriends_background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.developer-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.developer-card:hover {
    transform: translateY(-5px);
}

.developer-image {
    margin-bottom: 1.5rem;
}

.developer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 3px solid #DEB887;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.developer-avatar:hover {
    transform: scale(1.05);
    border-color: #8B4513;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.avatar-initials {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.developer-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.developer-role {
    font-size: 1rem;
    color: #A0522D;
    font-weight: 500;
    margin-bottom: 1rem;
}

.developer-bio {
    color: #666;
    line-height: 1.6;
}

/* Developer Social Bubbles */
.developer-socials {
    text-align: center;
    margin-top: 3rem;
}

.socials-title {
    font-size: 2.0rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 2rem;
}

.social-bubbles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-bubble.facebook {
    background: #1877f2;
    color: white;
}

.social-bubble.twitter {
    background: #000000;
    color: white;
}

.social-bubble.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-bubble.tiktok {
    background: #000000;
    color: white;
}

.social-bubble.youtube {
    background: #ff0000;
    color: white;
}

.social-bubble.discord {
    background: #5865f2;
    color: white;
}

.social-bubble.reddit {
    background: #ff4500;
    color: white;
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, #DEB887, #FFE4B5);
    color: 8B4513;
}

.newsletter .section-title {
    color: 8B4513;
    margin-bottom: 1.5rem;
}

.newsletter-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.newsletter-form {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.newsletter-form p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.4;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.form-group input[type="email"] {
    min-width: 220px;
    max-width: 280px;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.btn-submit {
    padding: 1rem 2rem;
    background: white;
    color: #0076B1;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit .btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: none;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
    display: block;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #dc3545;
    color: #721c24;
    display: block;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: none;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #8B4513;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 125px;
    width: auto;
    flex-shrink: 0;
}

.footer-brand-text {
    flex: 1;
    max-width: 400px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8B4513;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile unified background */
    body {
        background-image: url('../assets/pawfriends_background.webp');
        background-size: 100% auto;
        background-position: top center;
        background-attachment: scroll;
        background-repeat: repeat-y;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
        z-index: 10002;
        position: relative;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-logo {
        z-index: 1001;
    }
    
    .logo {
        height: 35px;
    }
    
    .logo-text-img {
        height: 25px;
    }
    
    .nav-menu {
        position: fixed;
        top: 65px;
        right: -150px;
        width: 150px;
        height: auto;
        max-height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 10000;
        border-radius: 15px 0 0 15px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        padding: 1.2rem 1.5rem;
        text-align: left;
        transition: background-color 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-menu .nav-link:hover {
        background-color: #f8f9fa;
        color: #8B4513;
    }
    
    .nav-toggle {
        display: flex !important;
        z-index: 10001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -12.5px;
        margin-top: -1.5px;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -12.5px;
        margin-top: -1.5px;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    
    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: left;
        gap: 1rem;
        padding: 0 20px;
    }
    
    .hero-content {
        order: 2;
        padding-right: 0;
    }
    
    .hero-content .logo-text-img {
        height: auto;
        width: 100%;
        max-width: 280px;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .hero-newsletter-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .hero-image {
        order: 1;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: -20px;
        margin-right: -20px;
        overflow: hidden;
    }
    
    .hero-video {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        height: auto;
        position: static;
        right: auto;
        mask-image: 
            linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
        -webkit-mask-image: 
            linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask-composite: source-in;
    }
        
    .hero-email-form {
        width: 100%;
    }
    
    .hero-form-group {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .hero-form-group input[type="email"] {
        flex: 1 1 auto;
        min-width: 150px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border: 2px solid #32BBFF;
        border-radius: 50px;
        outline: none;
    }
    
    .btn-newsletter {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
        flex-grow: 0;
    }
    
    /* Trailer Section */
    .trailer .section-title {
        font-size: 2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .trailer .section-subtitle {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Features Section */
    .features .container {
        text-align: left;
    }
    
    .feature-row {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 3rem;
        text-align: left;
    }
    
    .feature-row-reverse {
        flex-direction: column;
    }
    
    .feature-content {
        text-align: left;
        display: contents;
    }
    
    .feature-row h3.feature-title,
    .feature-row .feature-title {
        order: 1;
        margin-bottom: -0.3rem;
        font-size: 1.9rem;
        text-align: left !important;
        display: block;
        width: 100%;
    }
    
    .feature-title-decoration {
        order: 2;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }
    
    .title-underline {
        max-width: 360px;
        width: 100%;
    }
    
    .feature-image {
        order: 3;
        margin-bottom: 1.5rem;
        flex: none;
    }
    
    .feature-description {
        order: 4;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .competition-type {
        order: 4;
    }
    
    .feature-phone-img {
        max-width: 280px;
    }
    
    /* About Section - Social Bubbles */
    .developer-socials {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 200px;
    }
    
    .socials-title {
        margin-bottom: 1.5rem;
    }
    
    .social-bubbles {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 1rem 0;
        line-height: 1;
    }
    
    .social-bubble {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0.75rem 1.5rem 0.75rem;
        vertical-align: top;
        width: 65px;
        height: 65px;
    }
    
    .social-bubble svg {
        display: block;
        margin: auto;
    }
    
    /* Force line break after 4th element (Facebook, X, Instagram, TikTok) */
    .social-bubble:nth-child(4) {
        margin-right: 0.75rem;
    }
    
    .social-bubble:nth-child(4):after {
        content: "\A";
        white-space: pre;
        display: block;
        height: 0.5rem;
    }
    
    /* Second row (YouTube, Discord, Reddit) */
    .social-bubble:nth-child(n+5) {
        margin-bottom: 0;
    }
    
    .social-bubble {
        width: 65px;
        height: 65px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
        background-attachment: scroll;
        background-size: 200% auto;
        background-position: center center;
    }
    
    .cta-content {
        padding: 0 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-form-group {
        flex-wrap: nowrap;
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .cta-form-group input[type="email"] {
        flex: 1 1 auto;
        min-width: 150px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-cta-subscribe {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    /* Newsletter Section */
    .newsletter-content {
        margin-top: 2rem;
        min-height: auto;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .email-form {
        width: 100%;
    }
    
    .form-group {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .form-group input[type="email"] {
        flex: 1 1 auto;
        min-width: 150px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border: none;
        border-radius: 50px;
        outline: none;
    }
    
    .btn-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
        flex-grow: 0;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .footer-logo-img {
        height: 80px;
    }
    
    .footer-brand-text {
        text-align: left;
        max-width: none;
    }
    
    .footer-section h4,
    .footer-section .footer-links {
        text-align: left;
    }
        
    .features-grid,
    .developers-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-image {
        width: 100%;
        max-width: 100%;
    }
    
    .feature-phone-img {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
    
    /* Remove individual section backgrounds on mobile - use body background instead */
    .features,
    .trailer,
    .faq,
    .about,
    .cta-section {
        background-image: none !important;
        background-color: transparent !important;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding-right: 0.5rem;
    }
    
    /* Keep horizontal padding fixed on mobile too */
    .faq-answer { padding: 0 1.5rem; }
    .faq-item.active .faq-answer { padding-top: 1rem; padding-bottom: 1rem; max-height: 1500px; }
    
    .faq-answer p {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .faq-icon {
        min-width: 25px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-newsletter {
        align-items: center;
    }
    
    .hero-form-group input {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .btn-newsletter {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .social-bubbles {
        gap: 0.3rem;
    }
    
    .faq-question {
        padding: 0.9rem 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-answer { padding: 0 1rem; }
    .faq-item.active .faq-answer { padding-top: 0.9rem; padding-bottom: 0.9rem; }
    
    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .faq-icon {
        min-width: 20px;
        font-size: 1.2rem;
    }
    
    .social-bubble {
        width: 55px;
        height: 55px;
    }    
}

/* Ultra-small devices: tighten hero and stack form to avoid clipping */
@media (max-width: 400px) {
    .hero {
        padding-top: 8px;
        padding-bottom: 24px;
    }

    .hero-content .logo-text-img {
        max-width: 280px;
        width: 100%;
        height: auto;
    }

    .hero-description,
    .hero-newsletter-text {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .hero-email-form { width: 100%; }

    .hero-form-group {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        gap: 0.5rem;
        align-items: stretch;
    }

    .hero-form-group input[type="email"] {
        min-width: 0;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .btn-newsletter {
        width: auto;              
        align-self: center;       
        justify-content: center;
        padding: 0.75rem 1.5rem;  
        font-size: 0.95rem;
        flex: 0 0 auto;           
    }

    /* Ensure hero video never forces horizontal scroll */
    .hero-image { margin-left: -16px; margin-right: -16px; }
    .hero-video {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        position: static;
        right: auto;
    }
}
