/* style.css */
:root {
    --primary-color: #012368;
    --secondary-color: #0E45B7;
    --card-bg: rgba(255, 255, 255, 0.06);
    --title-color: #BDC2F6;
    --text-light: #ffffff;
    --text-gray: #e0e0e0;
    --accent-color: #4CAF50;
    --section-padding: 80px 0;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--text-light);
}

.logo span {
    color: var(--title-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(14, 69, 183, 0.2);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--title-color);
}

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background-color: #0a3a9c;
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00103b 100%);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14,69,183,0.1) 0%, rgba(1,35,104,0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 47%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

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

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

/* Features Section */
.features {
    padding: var(--section-padding);
    background-color: #00164d;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--title-color);
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Versions Section */
.versions {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #00164d 0%, var(--primary-color) 100%);
}

.versions-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.version-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 40px 30px;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.version-card:hover {
    transform: scale(1.03);
}

.version-card.popular {
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--secondary-color);
}

.version-card.popular::before {
    content: "POPULAIRE";
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 35px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.version-card h3 {
    font-size: 1.8rem;
    color: var(--title-color);
    margin-bottom: 15px;
    text-align: center;
}

.price {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--text-light);
}

.price span {
    font-size: 1rem;
    color: var(--text-gray);
    display: block;
    font-weight: normal;
}

.features-list {
    list-style: none;
    margin: 20px 0;
    flex-grow: 1;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.features-list li i.fa-times {
    color: #f44336;
}

.version-cta {
    margin-top: 20px;
    text-align: center;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background-color: #00164d;
}

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

.pricing-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.pricing-card h3 {
    font-size: 1.8rem;
    color: var(--title-color);
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 2rem;
    margin: 20px 0;
}

.pricing-features {
    margin: 20px 0;
}

.pricing-features p {
    margin: 10px 0;
}

/* Videos Section */
.videos {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, #00164d 100%);
}

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

.video-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-10px);
}

.video-thumb {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #0a3a9c, #012368);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-thumb i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-thumb:hover i {
    opacity: 1;
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Screenshots Section */
.screenshots {
    padding: var(--section-padding);
    background-color: #00164d;
}

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

.screenshot {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.screenshot:hover {
    transform: translateY(-10px);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background-color: #000d33;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.3rem;
    color: var(--title-color);
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 15px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-image {
        position: relative;
        width: 80%;
        max-width: 500px;
        transform: none;
        margin: 50px auto 0;
        display: block;
        animation: none;
    }
    
    .hero {
        padding: 150px 0 80px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    nav ul {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .version-card.popular::before {
        right: -30px;
        padding: 5px 30px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .version-card.popular {
        transform: scale(1);
    }
    
    .version-card.popular::before {
        display: none;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Add to existing styles */

/* Duration Tabs */
.duration-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.duration-tab {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
}

.duration-tab:hover {
    background: rgba(14, 69, 183, 0.3);
}

.duration-tab.active {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(14, 69, 183, 0.3);
}

/* Error Message */
.error-message {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.error-message p {
    color: #ff6b6b;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .duration-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* --- carousel layout --- */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.screenshots-carousel {
  display: flex;
  gap: 40px;                 /* space between cards */
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 10px;
  -webkit-overflow-scrolling: touch;
}

/* hide scroll bar but keep scrollability */
.screenshots-carousel::-webkit-scrollbar { height: 0; }
.screenshots-carousel { scrollbar-width: none; }

/* --- individual screenshots --- */
.screenshot {
  flex: 0 0 auto;
  width: 320px;              /* bigger cards */
  position: relative;
  scroll-snap-align: center; /* each card wants to stop in the centre */
  transform: scale(0.85);
  transition: transform 0.35s ease;
}

.screenshot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* title overlay */
.screenshot-title {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0 0 12px 12px;
  text-align: center;
}

/* zoomed slide */
.screenshot.active {
  transform: scale(1);
}

/* --- arrows --- */
.carousel-control {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.carousel-control:hover { background: rgba(255, 255, 255, 0.8); }
.carousel-control.left  { left:  -22px; }
.carousel-control.right { right: -22px; }

/* --- small screens --- */
@media (max-width: 600px) {
  .screenshot { width: 260px; }
}


.version-card,
.pricing-card,
.video-card,
.feature-card {
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


.full-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.full-card-link .thumb-img,
.full-card-link .video-content {
    pointer-events: none; /* Prevent interference with click behavior */
}

.thumb-img {
    display: block;
    width: 100%;
    height: 200px; /* or whatever height fits your card design */
    object-fit: cover; /* important to maintain aspect ratio */
    object-position: center;
}


.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  background-color: #0e45b7;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

.floating-btn:hover {
  background-color: #0a3a9c;
  transform: scale(1.1);
}

.floating-btn.whatsapp {
  background-color: #25D366;
}

.floating-btn.whatsapp:hover {
  background-color: #1ebd5b;
}
