/* CSS Variables */
:root {
    /* New "Clean Teal" Color Palette */
    --primary-color: #008080; /* Muted Teal */
    --primary-dark: #006666;
    --primary-light: #009999;
    --gradient-primary: linear-gradient(135deg, #008080, #00B3B3);

    /* Softer Backgrounds (Not Pure White) */
    --bg-color: #F8F9FA; /* Very light gray for the main background */
    --bg-light: #FFFFFF; /* White for contrasting cards */
    --bg-dark: #212529;   /* A deep, soft black for dark sections */

    /* Improved Text Colors for Readability */
    --text-primary: #212529; /* Dark gray, not pure black */
    --text-secondary: #6c757d;

    /* Subtle Borders & Shadows */
    --border-color: #dee2e6;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Standardized Elements */
    --border-radius: 12px;
    --border-radius-large: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
}

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

/* ============================================= */
/* == FINAL DESKTOP & MOBILE NAVIGATION CSS == */
/* ============================================= */

/* --- Main Navbar Container --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Desktop Links Container --- */
.nav-links-desktop {
    display: flex; /* Aligns all nav items horizontally */
    align-items: center;
    gap: 2.5rem; /* Increased space between each nav item */
}

.nav-links-desktop a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative; /* Required for the underline effect */
    padding: 0.5rem 0; /* Add some padding for a better hover area */
    transition: color 0.3s ease;
}

/* Underline effect */
.nav-links-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0); /* Initially hidden */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links-desktop a:hover::after {
    transform: scaleX(1); /* Show on hover */
    transform-origin: bottom left;
}

.nav-links-desktop a:hover {
    color: var(--primary-color);
}


/* --- Dropdown Specific Styles --- */
.nav-item.dropdown {
    position: relative; /* This is the anchor for the dropdown menu */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer; /* Makes it clear it's clickable */
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* This is the floating dropdown panel */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute; /* Takes the menu out of the document flow */
    top: calc(100% + 15px); /* Positions it below the "Features" link with a gap */
    left: 0;
    z-index: 1001;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    min-width: 240px; /* A bit wider for a better look */
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem; /* Increased padding */
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* --- Desktop Hover Functionality --- */
@media (min-width: 993px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* --- Right-side Actions (Portfolio & Hamburger) --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.portfolio-link {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.portfolio-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}


/* --- Responsive Navigation & Hamburger Menu --- */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 2000;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-bar:not(:last-child) {
    margin-bottom: 6px;
}

.nav-links-mobile {
    display: none;
}

/* --- Media Query for Mobile & Tablet --- */
@media (max-width: 992px) {
    .nav-links-desktop {
        display: none; /* Hide desktop links */
    }

    .nav-toggle {
        display: block; /* Show hamburger menu */
    }
    
    .portfolio-link span {
        display: none; /* Optionally hide text on mobile */
    }

    .nav-links-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        position: fixed;
        top: 0;
        right: -300px; /* Start off-screen */
        width: 280px;
        height: 100vh;
        padding-top: 100px;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1999;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .nav-links-mobile.active {
        right: 0; /* Slide in */
    }

    .nav-links-mobile a {
        color: var(--text-primary);
        font-size: 1.2rem;
        font-weight: 600;
        padding: 0.5rem 1rem;
        text-decoration: none;
    }
    
    /* Dark overlay for background */
    .mobile-nav-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    
    .mobile-nav-bg.active {
        opacity: 1;
        visibility: visible;
    }

    /* Animate hamburger to an 'X' */
    .nav-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static; /* Unset absolute positioning */
        box-shadow: none;
        border: none;
        background-color: transparent;
        width: 100%;
        padding: 0.5rem 0 0.5rem 2rem; /* Indent dropdown items */
        transform: none !important; /* Reset transform */
        opacity: 1 !important; /* Always visible when mobile menu is open */
        visibility: visible !important;
        display: none; /* Still hidden until toggled */
    }
    .nav-links-mobile .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        color: var(--text-secondary);
    }
    /* This class shows the dropdown list inside the mobile menu */
    .nav-links-mobile .dropdown-menu.active {
        display: block;
    }
}


/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Crect x='0' y='0' width='50' height='50'/%3E%3Crect x='50' y='50' width='50' height='50'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.app-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    background: white;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Features Section Styling */
.features {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

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

.feature-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1), rgba(0, 179, 179, 0.1));
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: white;
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.screenshot-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.screenshot-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

/* Tech Stack Section */
.tech-stack {
    padding: 100px 0;
    background: var(--bg-dark);
    color: white;
}
.tech-stack .section-title {
    color: white;
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.download-btn.large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-text a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-top: 40px;
    }
    .hero-visual {
        order: -1; /* Move the image to the top on mobile */
    }
    .app-title {
        font-size: 3rem;
    }
    .features-grid, .screenshots-container, .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Visual */
.hero-visual {
    animation: fadeInRight 1s ease-out 0.3s both;
    text-align: center;
}
.hero-screenshot {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
}
.hero-screenshot:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Feedback Section */
.feedback {
    padding: 100px 0;
    background: var(--bg-light);
}
.feedback-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.feedback-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.feedback-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}
.feedback-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.feedback-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}
.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}
.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.feedback-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Combined Update & What's New Section */
.latest-update-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.latest-update-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.08'%3E%3Cpath fill-rule='evenodd' d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.latest-update-section .container {
    position: relative;
    z-index: 1;
}

.update-header {
    margin-bottom: 4rem;
}

.update-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: bounceIn 1s ease-out;
}

.latest-update-section .section-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.update-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

.download-warning {
    background-color: rgba(255, 255, 255, 0.9);
    color: #e67e22;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-medium);
    animation: fadeIn 0.8s ease-out 0.5s both;
}
.download-warning i {
    font-size: 1.5rem;
    color: #e67e22;
}
.download-warning p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #34495e;
}

.latest-update-section .download-btn.large {
    background: #FFD700;
    color: var(--primary-dark);
    padding: 1.5rem 3.5rem;
    font-size: 1.3rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-bottom: 3rem;
}
.latest-update-section .download-btn.large:hover {
    background: #e5be00;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.divider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    margin: 4rem auto 5rem auto;
    opacity: 0.8;
}

.whats-new-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    letter-spacing: 0.5px;
}

.new-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.new-feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.new-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.new-feature-card .feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: #FFD700;
    background: none;
    width: auto;
    height: auto;
    display: block;
}

.new-feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.new-feature-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}