/* Custom Font */
@font-face {
    font-family: 'Nunito';
    src: url('../resources/Nunito.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../resources/Nunito-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    color: #354B41; /* Updated to app's main color */
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: #354B41; /* Updated to app's main color */
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}


/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #354B41; /* Updated to app's main color */
    font-family: 'Nunito', sans-serif;
    margin-left: 10px;
}

.logo img {
    width: 40px;
    margin-right: 0.6rem;
    border-radius: 8px; 
}

.logo h1 {
    margin-bottom: 0; /* Remove bottom margin for vertical centering */
    display: flex;
    align-items: center; /* Ensure text is vertically centered */
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #354B41;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu li a {
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #F38310; /* Updated to app's secondary color */
}

.nav-menu li a.active {
    color: #F38310; /* Updated to app's secondary color */
    font-weight: 600;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #354B41; /* Updated to app's main color */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #354B41; /* Updated to app's main color */
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
}

.hero-image {
    max-width: 375px;
    animation: float 3s ease-in-out infinite;
    margin-right: 30px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.app-buttons {
    margin-top: 2rem;
}

.app-store-btn {
    background-color: #354B41; /* Updated to app's secondary color */
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s;
    max-width: 330px;
}

.app-store-btn:hover {
    background-color: #293a32; /* Darker version of secondary color */
}

.app-store-btn img {
    width: 25px;
    height: 25px;
}

/* Features Section */
.features {
    text-align: center;
    background-color: #f5f8f6;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature {
    padding: 2rem;
    border-radius: 10px;
    background-color: #ededed;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature img {
    height: 150px;
    margin-bottom: 1.5rem;
}

/* Screenshots Section */
.screenshots {
    background-color: #f5f8f6; /* Lighter version of main color */
    text-align: center;
}

.screenshots h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.screenshot-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.screenshot {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.screenshot img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.screenshot h3 {
    padding: 1rem;
    font-size: 1rem;
}

/* App Preview Section */
.app-preview {
    text-align: center;
    background-color: #f5f8f6;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.app-preview h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.app-preview-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.app-preview-intro img.preview-owl {
    max-height: 140px;
}

.app-preview-intro p {
    font-size: 1.2rem;
    max-width: 500px;
    color: #354B41;
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
}

/* Carousel Styles */
.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.device-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.preview-item {
    position: relative;
    max-width: 250px;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.preview-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

.carousel-prev,
.carousel-next {
    background-color: #F38310;
    font-family: 'Nunito';
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #d57109;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #F38310;
    transform: scale(1.2);
}

/* Languages Section */
.languages {
    background-color: #fff;
    text-align: center;
}

.language-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.language-text {
    flex: 1;
    text-align: left;
    padding-right: 2rem;
}

.language-text h3{
margin-bottom: 0rem;
}

.language-text p {
    margin-bottom: 0.7rem;
    }

.language-image {
    flex: 1;
}

.language-image img {
    max-height: 300px;
    animation: float 4s ease-in-out infinite;
}

/* AI Collections Section */
.ai-collections {
    background-color: #f5f8f6; /* Lighter version of main color */
}

.ai-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.ai-image {
    flex: 1;
}

.ai-image img {
    max-height: 300px;
    animation: float 4s ease-in-out infinite;
}

.ai-text {
    flex: 1;
    padding-left: 2rem;
}

.ai-text h3 {
    margin-bottom: 0rem;
}
.ai-text p {
    margin-bottom: 0.7rem;
}

/* Writing Feature */
.writing-feature {
    background-color: #fff;
    text-align: center;
}

.writing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.writing-text {
    flex: 1;
    text-align: left;
    padding-right: 2rem;
}

.writing-text h3 {
    margin-bottom: 0rem;
}

.writing-text p {
    margin-bottom: 0.7rem;
}

.writing-image {
    flex: 1;
}

.writing-image img {
    max-height: 270px;
    animation: float 4s ease-in-out infinite;
}

/* Scanner Feature */
.scanner-feature {
    background-color: #f5f8f6;
    text-align: center;
}

.scanner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.scanner-image {
    flex: 1;
}

.scanner-image img {
    max-height: 300px;
    animation: float 4s ease-in-out infinite;
}

.scanner-text {
    flex: 1;
    padding-left: 2rem;
}

.scanner-text h3 {
    margin-bottom: 0rem;
}

.scanner-text p {
    margin-bottom: 0.7rem;
}

/* Sync Feature */
.sync-feature {
    background-color: #fff; 
    text-align: center;
    padding: 4rem 2rem;
}

.sync-feature h2 {
    margin-bottom: 2rem;
}

.sync-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    flex-wrap: wrap;
}

.sync-image {
    flex: 0 0 200px;
}

.sync-image img {
    max-height: 180px;
    animation: float 4s ease-in-out infinite;
}

.sync-text {
    flex: 1;
    text-align: left;
    min-width: 300px;
}

.sync-feature p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #f5f8f6 0%, #e6ebe8 100%); /* Lighter versions of main color */
    text-align: center;
}

.download h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
footer {
    background-color: #354B41; /* Updated to app's main color */
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 110px;
    margin-right: 0.5rem;
    border-radius: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-contact a {
    color: #e6ebe8; /* Light color on dark background */
    transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #4a6355; /* Lighter version of main color */
    max-width: 1200px;
    margin: 2rem auto 0;
}

/* Animations */
.feature, .screenshot {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature.animated, .screenshot.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature:nth-child(1).animated {
    transition-delay: 0.1s;
}

.feature:nth-child(2).animated {
    transition-delay: 0.3s;
}

.feature:nth-child(3).animated {
    transition-delay: 0.5s;
}

.screenshot:nth-child(1).animated {
    transition-delay: 0.1s;
}

.screenshot:nth-child(2).animated {
    transition-delay: 0.2s;
}

.screenshot:nth-child(3).animated {
    transition-delay: 0.3s;
}

.screenshot:nth-child(4).animated {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header adjustments for tablet */
    header {
        padding: 0.5rem 0;
    }
    
    nav {
        padding: 0.6rem 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        margin: 0;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .logo img {
        width: 35px;
        margin-right: 0.4rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        flex-direction: column;
        padding: 3rem 1rem;
        padding-bottom: 1rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-image {
        max-width: 200px;
        margin-right: 0px;
    }
    
    .language-content,
    .ai-content,
    .writing-content,
    .scanner-content {
        flex-direction: column;
    }
    
    .language-text,
    .ai-text,
    .writing-text,
    .scanner-text {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .scanner-image ,
    .language-image,
    .writing-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    /* Carousel mobile adjustments */
    .device-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-item {
        max-width: 280px;
        margin-bottom: 1rem;
        display: block !important; /* Ensure all items display */
    }
    
    /* We don't want to hide any images, we want them all to be visible in their own slides */
    .preview-item:not(:first-child) {
        display: block;
    }
    
    .sync-content {
        flex-direction: column;
    }
    
    .sync-text {
        text-align: center;
    }
}

@media (max-width: 576px) {
    /* Header adjustments for mobile */
    header {
        padding: 0.3rem 0;
    }
    
    nav {
        padding: 0.6rem 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    .logo img {
        width: 30px;
        margin-right: 0.3rem;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }

    .hero-image {
        max-width: 200px;
    }

    .scanner-image,
    .language-image,
    .writing-image {
        max-width: 200px;
    }

    .ai-image {
        max-width: 200px;
        padding-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    .device-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-item {
        max-width: 250px;
        margin-bottom: 1.5rem;
        display: block !important;
    }
    
    /* Remove the display:none so all images remain visible */
    .preview-item:not(:first-child) {
        display: block;
    }
}

/* Features Overview Table */
.features-overview {
    text-align: center;
    padding: 3rem 2rem;
}

.features-overview h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.features-overview > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-table-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 23px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.features-table caption {
    font-size: 0.9rem;
    color: #666;
    padding: 1rem;
    font-weight: normal;
    caption-side: top;
}

.features-table thead {
    background-color: #354B41;
    color: white;
}

.features-table th {
    padding: 0.4rem 1.25rem;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 2px solid #F38310;
}

.features-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.features-table tbody tr:hover {
    background-color: #f9f9f9;
}

.features-table tbody tr:last-child {
    border-bottom: none;
}

.features-table td {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.features-table td:first-child {
    width: 30%;
    color: #354B41;
}

.features-table td:last-child {
    color: #555;
}

@media (max-width: 768px) {
    .features-overview h2 {
        font-size: 2rem;
    }
    
    .features-overview > p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .features-table-container {
        border-radius: 8px;
    }
    
    .features-table th,
    .features-table td {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .features-table th {
        font-size: 1rem;
    }
    
    .features-table td:first-child {
        width: 35%;
    }
}

@media (max-width: 480px) {
    .features-table {
        display: block;
    }
    
    .features-table thead {
        display: none;
    }
    
    .features-table tbody,
    .features-table tr,
    .features-table td {
        display: block;
        width: 100%;
    }
    
    .features-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .features-table td {
        padding: 1rem;
        border: none;
    }
    
    .features-table td:first-child {
        background-color: #354B41;
        color: white;
        font-weight: bold;
        width: 100%;
        border-bottom: 2px solid #F38310;
    }
    
    .features-table td:last-child {
        background-color: white;
    }
}