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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    direction: rtl;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-logo h2 {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Desktop styles (default) */
.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  gap: 2rem;
  position: static;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  padding: 0;
  transform: none;
  transition: none;
}
.mobile-logo {
  display: none;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2d5a27;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #2d5a27;
    transition: width 0.3s ease;
}

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

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.burger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #2d5a27;
  border-radius: 2px;
  transition: 0.3s;
}

/* Main Container */
.main-container {
    height: 100vh;
    overflow: hidden;
}

/* Sections */
.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 2rem 2rem; /* fixed padding syntax */
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 120px;
}

.text-content {
    animation: fadeInRight 1s ease-out;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: #d4af37;
    animation: pulse 2s infinite;
}

/* Flip Cards */
.card-container {
    display: flex;
    justify-content: center;
    animation: fadeInLeft 1s ease-out;
}

/* Marketing section specific image card */
.image-card {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.marketing-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 20px;
}

.image-card:hover .marketing-image {
    transform: scale(1.05);
}

/* Flip card styles for other sections */
.flip-card {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.flip-card-front {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
}

.flip-card-back {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: white;
    transform: rotateY(180deg);
}

.flip-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.flip-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.flip-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Section-specific styles */
.it-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.marketing-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.odoo-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.contact-section {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

/* CTA Section */
.cta-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.cta-btn.secondary {
    background: rgba(45, 90, 39, 0.2);
    color: #2d5a27;
    border: 2px solid rgba(45, 90, 39, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(45, 90, 39, 0.3);
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.contact-item i {
    color: #d4af37;
    font-size: 1.3rem;
}

/* Fix for phone number display in RTL */
.contact-item span {
    direction: ltr;
    unicode-bidi: bidi-override;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 2rem;
    color: white;
}

/* Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 80px 1rem 1rem 1rem;
        height: auto;
        min-height: 100vh;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 90vw;
        margin: 0 auto;
        padding-top: 10px;
    }
    
    .text-content {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .image-card {
        width: 200px;
        height: 250px;
        margin: 0 auto;
    }
    
    .marketing-image {
        object-fit: cover;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .whatsapp-btn {
        left: 1rem;
        bottom: 1rem;
        width: 60px;
        height: 60px;
    }
    .burger {
      display: flex;
    }
    .nav-menu {
      display: none;
      flex-direction: column;
      align-items: flex-end;
      position: absolute;
      top: 70px;
      right: 0;
      width: 80vw;
      max-width: 320px;
      height: calc(100vh - 70px);
      background: #fff;
      box-shadow: -2px 0 20px rgba(0,0,0,0.08);
      z-index: 1000;
      transform: translateX(100%);
      transition: transform 0.35s cubic-bezier(0.77,0.2,0.05,1.0);
      padding: 2rem 1.5rem 1.5rem 1.5rem;
      gap: 0;
    }
    .nav-menu li {
      width: 100%;
      margin: 0.5rem 0;
      padding: 0.5rem 0;
      border-bottom: 1px solid #e0e0e0;
    }
    .nav-menu li:last-child {
      border-bottom: none;
    }
    .nav-menu a {
      width: 100%;
      display: block;
      padding: 0.5rem 0;
      font-size: 1.2rem;
      text-align: right;
    }
    .nav-menu.active {
      display: flex !important;
      transform: translateX(0);
    }
    .nav-menu .mobile-logo {
      margin-top: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      padding-top: 2rem;
    }
    .nav-menu .mobile-logo img {
      height: 48px;
      width: auto;
      opacity: 0.85;
    }
    .mobile-logo {
      display: flex;
    }
    body, html {
      overflow: auto !important;
      height: auto;
    }
}

/* Smooth scrolling for navigation */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Ensure no overflow */
body, html {
    overflow: auto;
    height: 100%;
}



@media (min-width: 769px) {
  body, html {
    overflow: hidden;
    height: 100%;
  }

}

/* RTL specific adjustments */
.section-content {
    direction: rtl;
}

.text-content {
    text-align: right;
}

.cta-container {
    text-align: center;
}

/* Logo responsive adjustments */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    .main-container {
        overflow: scroll;
    }
    .nav-logo h2 {
        font-size: 1.5rem;
    }
}
