/*
 * Amchich Premium Landing Page Theme
 * Modern, clean, and vibrant styling with smooth interactions.
 */

:root {
    /* Colors */
    --primary: #0081c6;
    /* Brand Blue */
    --primary-hover: #00a2f9;
    /* Bright Blue */
    --primary-light: #e6f7ff;

    --secondary: #33324e;
    /* Dark Slate/Purple */
    --secondary-light: #48466d;

    --accent-blue: #00a2f9;
    --accent-blue-light: #e6f7ff;

    --accent-green: #10b981;
    --accent-green-light: #d1fae5;

    --accent-purple: #5d5a8c;
    --accent-purple-light: #ede9fe;

    --bg-color: #f8fafc;
    --bg-white: #ffffff;

    --text-main: #33324e;
    --text-muted: #5d5a8c;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --nav-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Border Radius */
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Typography Classes */
h1,
h2,
h3,
h4 {
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #00a2f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.w-100 {
    width: 100%;
}

.text-primary {
    color: var(--primary);
}

.text-blue {
    color: var(--accent-blue);
}

.text-green {
    color: var(--accent-green);
}

.text-purple {
    color: var(--accent-purple);
}

.text-white {
    color: white;
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-blue-light {
    background-color: var(--accent-blue-light);
}

.bg-green-light {
    background-color: var(--accent-green-light);
}

.bg-purple-light {
    background-color: var(--accent-purple-light);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), #00a2f9);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--accent-blue), #7dd3fc);
}

section {
    padding: 6rem 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 129, 198, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 129, 198, 0.4);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

#site-logo {
    height: 90px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

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

.nav-btn {
    background-color: var(--secondary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 129, 198, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-switcher select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid rgba(0, 129, 198, 0.2);
    border-radius: var(--radius-full);
    padding: 0.4rem 2rem 0.4rem 1rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-switcher select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.lang-switcher select:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.lang-switcher::after {
    content: '\f107';
    /* Font Awesome angle-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--nav-height) + 2rem);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background-color: var(--primary-light);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: var(--accent-blue-light);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Give much more space to the image */
    gap: 2rem;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.product-showcase-glass {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.product-showcase-glass img {
    width: 130%;
    /* Make the image massively overflow its logical container */
    max-width: 800px;
    /* Cap it on ultra-wide screens */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.2));
    /* Add shadow directly to product */
    transform: scale(1.1) translateX(5%);
    /* Push it slightly right and scale up */
    transition: transform 0.5s ease;
}

.product-showcase-glass:hover img {
    transform: scale(1.15) translateX(5%) translateY(-10px);
}

.floating-logo {
    width: 60%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    animation: float 5s ease-in-out infinite reverse;
}

.glass-card h4 {
    margin: 0;
    font-size: 1rem;
}

.glass-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.glass-card i {
    font-size: 1.5rem;
}

.stats-card {
    top: 20%;
    left: -10%;
}

.stats-card-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 1s;
}

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

.feature-card {
    background-color: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: #e2e8f0;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card p {
    margin: 0;
}

/* Products Section */
.products {
    background-color: white;
    max-width: 100%;
}

.products-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.product-image-container {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: white;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.product-info {
    padding: 2.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.product-features i {
    color: var(--accent-green);
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(0, 129, 198, 0.1), rgba(93, 90, 140, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.glass-panel h2 {
    margin-bottom: 1rem;
}

.glass-panel p {
    color: var(--secondary-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: white;
    padding: 5rem 5% 2rem;
}

.footer-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

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

.footer-links ul a {
    color: #94a3b8;
}

.footer-links ul a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: white;
}

/* Animations */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
}

.reveal.active,
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transition: all 0.8s ease;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-up.active {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-left.active {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-right.active {
    transform: translateX(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        max-width: 90%;
        margin: 2rem auto 0;
    }

    .product-showcase-glass img {
        width: 100%;
        transform: scale(1) translateX(0);
    }

    .product-showcase-glass:hover img {
        transform: scale(1.05) translateY(-5px);
    }

    .stats-card {
        top: -10px;
        left: 0;
    }

    .stats-card-2 {
        bottom: -10px;
        right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-normal);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

/* =========================================
   Right-To-Left (RTL) Support for Arabic
   ========================================= */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .brand-logo {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .nav-links {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .hero-cta {
    justify-content: flex-start;
}

@media (max-width: 992px) {
    html[dir="rtl"] .hero-cta {
        justify-content: center;
    }
}

html[dir="rtl"] .badge,
html[dir="rtl"] .product-badge {
    letter-spacing: normal;
    /* Arabic usually doesn't need extra letter spacing */
}

/* Flip margins and paddings */
html[dir="rtl"] .lang-switcher select {
    padding: 0.4rem 1rem 0.4rem 2rem;
}

html[dir="rtl"] .lang-switcher::after {
    right: auto;
    left: 0.8rem;
}

html[dir="rtl"] .product-features li i {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .footer-links ul a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Flip Animations for RTL */
html[dir="rtl"] .reveal-left {
    transform: translateX(50px);
}

html[dir="rtl"] .reveal-right {
    transform: translateX(-50px);
}

html[dir="rtl"] .reveal-left.active,
html[dir="rtl"] .reveal-right.active {
    transform: translateX(0);
}