/* Bebas Neue Font for Branding */
@font-face {
    font-family: 'Bebas Neue';
    src: url('assets/BebasNeue-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: background, box-shadow;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    margin-right: auto;
    text-decoration: none;
}

.nav-brand i {
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffd700;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.lang-btn.active {
    background: #ffd700;
    color: #000000;
    border-color: #ffd700;
}

/* Hero Section */
.hero {
    background-image: url('assets/bg_hero.png');
    background-size: cover;
    /* Ensures the image covers the whole section */
    background-position: center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ffd700;
    color: #000000;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-title {
    font-size: 12px;
    font-weight: 400;
}

.btn-subtitle {
    font-size: 18px;
    font-weight: 600;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    color: #ffd700;
    font-weight: 600;
}

.word-card {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #ffd700;
}

.word-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.word-card p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.4;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: normal;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-subtitle {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    text-align: center;
    color: #cccccc;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-icon-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon-img {
    transform: scale(1.1);
}

.feature-icon::before {
    display: none;
}

.feature-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    font-weight: normal;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #ffffff;
    position: relative;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.7;
    font-size: 15px;
}

/* Chapters Section */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.chapter-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.chapter-card:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
}

.chapter-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.chapter-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.chapter-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    font-weight: normal;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #ffffff;
}

.chapter-card p {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.chapter-stats {
    color: #ffd700;
    font-weight: 500;
}

.chapter-stats i {
    margin-right: 8px;
}

/* Illustrations Gallery Section */
.illustrations-gallery {
    background: #000000;
    padding: 80px 0;
    position: relative;
}

.illustrations-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.illustrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.illustration-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #333;
    position: relative;
}

.illustration-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}

.illustration-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
    /* Fallback for older browsers */
    height: auto;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 3 / 2) {
    .illustration-image {
        width: 100%;
        height: 0;
        padding-bottom: 66.67%;
        /* 3:2 aspect ratio */
        object-fit: cover;
        display: block;
        position: relative;
    }
}

.illustration-card:hover .illustration-image {
    transform: scale(1.05);
}

.illustration-caption {
    padding: 20px;
    background: #1a1a1a;
}

.illustration-caption h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    font-weight: normal;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.illustration-caption p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
}

/* Make illustration cards clickable */
.illustration-card {
    cursor: pointer;
}

/* Carousel Modal */
.carousel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-modal.active {
    display: flex;
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-close:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: scale(1.1);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-50%) scale(1.1);
}

.carousel-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-image-container {
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

.carousel-caption {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
    color: #ffffff;
}

.carousel-caption h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    font-weight: normal;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: #ffd700;
}

.carousel-caption p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 15px;
}

.carousel-counter {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.screenshots {
    background: #111111;
}

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

.screenshot-card {
    display: flex;
    flex-direction: column;
}

.screenshot-image {
    width: 100%;
    aspect-ratio: 10 / 21;
    object-fit: cover;
    border-radius: 40px;
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-image {
    transform: scale(1.02);
}

.screenshot-caption {
    padding: 20px 20px 0;
    text-align: center;
}

.screenshot-caption h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    font-weight: normal;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.screenshot-caption p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
}

/* Video Section */
.video-section {
    background: #000000;
    padding: 100px 0 80px;
    position: relative;
    z-index: 1;
}

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

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
    margin-bottom: 30px;
    background: #1a1a1a;
}

.app-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-wrapper:hover .video-overlay {
    opacity: 0.8;
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button i {
    font-size: 32px;
    color: #000000;
    margin-left: 4px;
    /* Slight offset for visual centering */
}

.video-overlay p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.video-caption {
    text-align: center;
    padding: 0 20px;
}

.video-caption h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    font-weight: normal;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.video-caption p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.download {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    text-align: center;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download .section-title {
    color: white;
}

.download .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.download-buttons {
    margin-bottom: 40px;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.download-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.download-info i {
    color: #ffd700;
}

/* Footer */
/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 60px 0 30px;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

/* Footer Brand Section */
.footer-brand-section {
    max-width: 300px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 15px;
}

.footer-brand i {
    font-size: 24px;
}

.footer-description {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Media Links */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #ffd700;
    color: #000000;
    border-color: #ffd700;
    transform: translateY(-3px);
}

/* Footer Columns */
.footer-column h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-column nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column nav a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column nav a:hover {
    color: #ffd700;
    padding-left: 5px;
}

/* Newsletter Section */
.footer-newsletter p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: #666;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #ffd700;
    background: #222;
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    background: #ffd700;
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background: #ffed4e;
    transform: translateX(3px);
}

.newsletter-form button i {
    transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(2px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-location a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-location a:hover {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links.mobile-open a {
        display: block;
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links.mobile-open .language-switcher {
        margin: 20px auto 0;
        justify-content: center;
    }

    .lang-btn {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .feature-card {
        padding: 30px 80px;
        border-radius: 16px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon-img {
        width: 100px;
        height: 100px;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .feature-card p {
        font-size: 14px;
    }

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

    .illustrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .illustration-card {
        border-radius: 12px;
    }

    .illustration-caption {
        padding: 15px;
    }

    .illustration-caption h3 {
        font-size: 16px;
    }

    .illustration-caption p {
        font-size: 13px;
    }

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

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

    .screenshot-caption {
        padding: 15px 15px 0;
    }

    .screenshot-caption h3 {
        font-size: 16px;
    }

    .screenshot-caption p {
        font-size: 13px;
    }

    .video-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        font-size: 24px;
    }

    .video-overlay p {
        font-size: 14px;
    }


    .video-caption h3 {
        font-size: 20px;
    }

    .video-caption p {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        text-align: left;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-location {
        justify-content: center;
    }
}

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

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .feature-card,
    .chapter-card {
        padding: 30px 20px;
    }

    .features-grid,
    .chapters-grid,
    .illustrations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .illustration-card {
        border-radius: 10px;
    }

    .illustration-caption {
        padding: 12px;
    }

    .illustration-caption h3 {
        font-size: 15px;
    }

    .illustration-caption p {
        font-size: 12px;
    }

    .carousel-container {
        width: 95%;
        height: 95%;
    }

    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-close {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
        font-size: 20px;
    }

    .carousel-image-container {
        height: 75%;
    }

    .carousel-caption {
        padding: 20px 15px;
    }

    .carousel-caption h3 {
        font-size: 1.9rem;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form button {
        width: 100%;
        height: 45px;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Portrait orientation specific fixes */
@media (max-width: 768px) and (orientation: portrait) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-brand {
        font-size: 18px;
        gap: 8px;
    }

    .nav-brand i {
        font-size: 20px;
    }

    .language-switcher {
        gap: 5px;
    }

    .lang-btn {
        padding: 4px 9px;
        font-size: 12px;
        min-width: 36px;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    .nav-container {
        padding: 0 12px;
    }

    .nav-brand {
        font-size: 16px;
        gap: 6px;
    }

    .nav-brand span {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-brand i {
        font-size: 18px;
    }

    .language-switcher {
        gap: 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 32px;
    }
}

/* Detailed Info Section Styles */
.detailed-content-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.detailed-image {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 100px;
}

.detailed-text {
    flex: 1.5;
}

@media (max-width: 900px) {
    .detailed-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .detailed-image {
        position: static;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}