:root {
    --primary-color: #007bff;
    /* Blue */
    --secondary-color: #6c757d;
    /* Grey */
    --accent-color: #0056b3;
    /* Darker Blue */
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --white: #ffffff;
    --light-yellow: #fdf7ec;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-yellow);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--text-dark);
    color: var(--white);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 7px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-dark);
}

.nav-links .btn {
    color: var(--white);
    padding: 8px 25px;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    /* background: linear-gradient(135deg, rgba(240, 244, 255, 0.7) 0%, rgba(255, 255, 255, 0.7) 100%);*/
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a1a1a;
}

.hero-text p {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 10px solid #1a1a1a;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Section */
.features {
    padding: 100px 0;
    padding: 100px 0;
    background: var(--light-yellow);
}

.section-title {
    text-align: center;
    margin-bottom: 5px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 1px;
    color: #1a1a1a;
}

.section-title p {
    color: var(--secondary-color);
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: #e6f0ff;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.feature-card p {
    color: var(--secondary-color);
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    padding: 100px 0;
    background: var(--light-yellow);
}

.screenshot-gallery {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 40px;
    justify-content: center;
    /* Simplification */
    flex-wrap: wrap;
    /* Simplification for grid if no carousel JS */
}

.screenshot-gallery img {
    width: 250px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 8px solid #000;
    transition: transform 0.3s ease;
}

.screenshot-gallery img:hover {
    transform: scale(1.05);
    z-index: 2;
}


/* Download Section */
.download {
    padding: 100px 0;
    padding: 100px 0;
    background: var(--light-yellow);
    color: var(--text-dark);
    text-align: center;
}

.download h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.download p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-btns .btn {
    margin: 0 10px;
    min-width: 180px;
}

/* Fix button contrast for light background in download section */
.download .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.download .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--light-yellow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-dark);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-logo img {
    height: 40px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 800px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.cookie-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}




/* Features Carousel Section */
.features-carousel {
    padding: 100px 0;
    padding: 100px 0;
    background: var(--light-yellow);
    /* Slight contrast to white cards */
    overflow: hidden;
}

.carousel-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
}

/* Passthrough Container */
.passthrough-container {
    position: relative;
    width: 100%;
    /* Max width determines how many side cards are visible. 
       Phone is 300px. changing to 900px allows ~1 card on each side. */
    max-width: 1000px;
    height: 400px;
    /* Phone height + padding */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Mask grand-parent to avoid scrollbar? handled by section overflow */
}

/* The Static Phone Overlay */
.phone-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    /* Proportionally adjusted width */
    height: 400px;
    border: 10px solid #1a1a1a;
    background: transparent;
    /* Crucial for passthrough */
    border-radius: 30px;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Notch simulation */
.phone-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* The Track */
.passthrough-track {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Space between cards */
    transition: transform 0.5s ease-in-out;
    /* We will manipulate transform translateX via JS */
    will-change: transform;
}

.carousel-slide {
    width: 200px;
    /* Proportionally adjusted width */
    height: 400px;
    /* Adjusted height */
    background: #fff;
    border-radius: 25px;
    /* Match phone radius roughly */
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    opacity: 0.8;
    /* Subtle dimming only */
    transform: scale(0.95);
    /* Slight scale down for depth */
    transition: all 0.5s ease;
    filter: none;
    /* Force no filter */
}

/* Active Slide Styling */
.carousel-slide.active-slide {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 5;
    filter: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Panel (Below Phone now) */
.feature-text-panel {
    text-align: center;
    width: 90%;
    max-width: 800px;
    height: 150px;
    position: relative;
    margin-top: 20px;
}

.feature-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-text-item.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-text-item h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feature-text-item p {
    font-size: 16px;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: var(--white);
        height: 100vh;
        width: 100%;
        top: 0;
        left: 0;
        /* Hidden by default */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links a {
        font-size: 20px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text {
        margin-bottom: 50px;
        margin-right: 0;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-btns {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }

    /* 3D Showcase Tablet Adjustments */
    .showcase-container {
        flex-direction: column;
        height: auto;
        padding-bottom: 50px;
    }

    .showcase-item {
        position: relative;
        transform: none !important;
        /* Disable 3D on tablet/mobile */
        margin-bottom: 40px;
        filter: none !important;
        left: auto !important;
        right: auto !important;
    }

    .showcase-item.left,
    .showcase-item.right {
        transform: scale(0.9) !important;
    }

    .phone-mockup-3d {
        width: 260px;
        height: 520px;
    }
}

@media (max-width: 768px) {
    .passthrough-container {
        transform: scale(0.5);
        /* Reduced from 0.6 */
        /* Scale down whole setup significantly for mobile */
        height: 340px;
        /* Reduced to match approx 0.5 * 640 */
        margin-bottom: -20px;
        /* Adjust spacing */
        transform-origin: top center;
        margin-top: 80px;
        /* Increased to prevent title overlap */
    }

    .features-carousel {
        padding: 60px 0 40px 0;
        /* Adjusted padding for better spacing */
    }

    .feature-text-panel {
        width: 100%;
        padding: 0 20px;
        margin-top: 20px;
        /* Add spacing between carousel and text */
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 14px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
    }

    .download h2 {
        font-size: 32px;
    }

    .download-btns .btn {
        margin-bottom: 15px;
    }
}


/* 3D Phone Effects */
.perspective-container {
    perspective: 1500px;
}

.phone-mockup-3d {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 12px solid #1a1a1a;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;
}

/* Angles */
.angle-center {
    transform: rotateY(-10deg) rotateX(5deg);
}

.angle-left {
    transform: rotateY(25deg) translateZ(-50px) translateX(-40px);
}

.angle-right {
    transform: rotateY(-25deg) translateZ(-50px) translateX(40px);
}

.phone-mockup-3d:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.phone-mockup-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3D Showcase Section */
.showcase-3d {
    padding: 120px 0;
    padding: 120px 0;
    background: var(--light-yellow);
    overflow: hidden;
}

.showcase-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px;
    position: relative;
    perspective: 2000px;
}

.showcase-item {
    position: absolute;
    transition: all 0.8s ease;
}

.showcase-item.center {
    z-index: 3;
    transform: translateY(0) scale(1.1);
}

.showcase-item.left {
    z-index: 1;
    transform: translateX(-350px) rotateY(25deg) scale(0.9);
    filter: blur(1px);
}

.showcase-item.right {
    z-index: 2;
    /* Slightly higher base Z, but center is higher */
    transform: translateX(350px) rotateY(-25deg) scale(0.9);
    filter: blur(1px);
}

/* Stagger animation class for JS to toggle interaction */
.showcase-container:hover .showcase-item.left {
    transform: translateX(-280px) rotateY(15deg) scale(0.95);
    filter: blur(0);
}

.showcase-container:hover .showcase-item.right {
    transform: translateX(280px) rotateY(-15deg) scale(0.95);
    filter: blur(0);
}


/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Language Dropdown */
.custom-dropdown {
    position: relative;
    margin-left: 15px;
    font-family: var(--font-family);
    z-index: 1001;
    /* Ensure above other nav elements */
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: space-between;
}

.selected-lang:hover {
    background: #e2e6ea;
    border-color: #ced4da;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.selected-lang .flag-icon {
    font-size: 1.2em;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-lang .lang-text {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-right: auto;
    margin-left: 8px;
}

.selected-lang i {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.custom-dropdown.active .selected-lang i {
    transform: rotate(180deg);
}

.lang-list {
    position: absolute;
    top: 120%;
    right: 0;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: none;
    border: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Scrollbar Styling for list */
.lang-list::-webkit-scrollbar {
    width: 6px;
}

.lang-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lang-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.lang-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.custom-dropdown.active .lang-list {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDropdown 0.3s forwards;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 2px;
}

.lang-item:last-child {
    margin-bottom: 0;
}

.lang-item:hover {
    background: #f0f4ff;
    color: var(--primary-color);
}

.lang-item .flag-icon {
    font-size: 1.2em;
    margin-right: 12px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-item span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.lang-item:hover span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Responsiveness for Dropdown */
@media (max-width: 992px) {
    .custom-dropdown {
        margin: 15px 0;
        width: 100%;
        max-width: 250px;
    }

    .selected-lang {
        justify-content: center;
        width: 100%;
    }

    .lang-list {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 10px;
        opacity: 1;
        transform: none;
        max-height: 0;
        overflow: hidden;
        display: block;
        /* Always block, use height for toggle */
        padding: 0;
        transition: all 0.4s ease;
    }

    .custom-dropdown.active .lang-list {
        max-height: 300px;
        padding: 10px;
        overflow-y: auto;
    }
}

/* Refined Hero Mockup */
.hero-image {
    perspective: 1500px;
}

.hero .phone-mockup {
    /* Override previous animation */
    animation: none;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.2);
}

.hero .phone-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .showcase-container {
        flex-direction: column;
        height: auto;
        padding-bottom: 50px;
    }

    .showcase-item {
        position: relative;
        transform: none !important;
        /* Disable 3D on tablet/mobile */
        margin-bottom: 40px;
        filter: none !important;
    }

    .phone-mockup-3d {
        width: 260px;
        height: 520px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        border-width: 8px;
        border-radius: 30px;
    }

    .passthrough-container {
        transform: scale(0.35);
        /* Reduced from 0.45 */
        height: 240px;
        /* Reduced to match approx 0.35 * 640 */
        margin-bottom: 0px;
        margin-top: 30px;
    }

    .feature-text-item h3 {
        font-size: 22px;
    }

    .feature-text-item p {
        font-size: 14px;
    }
}

/* Background Effect Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0.6;
    /* Subtle effect */
    background: radial-gradient(circle at center, rgba(248, 249, 250, 0.1) 0%, rgba(248, 249, 250, 1) 100%);
    /* Fade edges */
}

/* RTL Support */
html[dir="rtl"] .fa-arrow-left {
    transform: rotate(180deg);
}

html[dir="rtl"] .fa-chevron-left {
    transform: rotate(180deg);
}

html[dir="rtl"] .fa-chevron-right {
    transform: rotate(180deg);
}