/* ========================================
   CSS Variables - Saudi Arabia Colors Theme
   ======================================== */
:root {
    /* Primary Colors - Saudi Green */
    --primary-green: #165e3f;
    --primary-green-light: #1a7a4f;
    --primary-green-dark: #0f4530;
    
    /* Secondary Colors - Saudi White & Gold */
    --secondary-white: #ffffff;
    --secondary-gold: #d4af37;
    
    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --bg-footer: #1a1a1a;
    --bg-footer-bottom: #0f0f0f;
    
    /* Accent Colors */
    --accent-color: #d4af37;
    --border-color: #e0e0e0;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--secondary-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* ========================================
   Typography
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--accent-color));
    margin-top: var(--spacing-sm);
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--secondary-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.header-top {
    padding: var(--spacing-sm) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
    line-height: 1.3;
    text-align: left;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transform: translateX(-50%);
    transition: var(--transition-normal);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background-color: var(--secondary-white);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
}

.nav-mobile.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.nav-mobile-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.nav-mobile-link {
    display: block;
    padding: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    transition: var(--transition-normal);
}

.nav-mobile-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-green);
    transform: translateX(10px);
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-primary-large {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-primary,
.btn-primary-large {
    background-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary-large:hover {
    background-color: var(--secondary-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--secondary-white);
    transform: translateY(-2px);
}

/* ========================================
   Partners Section
   ======================================== */
.partners-carousel {
    overflow: hidden;
    margin-top: var(--spacing-lg);
    position: relative;
}

.partners-track {
    display: flex;
    gap: var(--spacing-lg);
    width: max-content;
}

.partner-logo {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-white);
    border-radius: 8px;
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.partner-logo:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition-normal);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* ========================================
   Call to Action Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--secondary-white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-footer) 0%, var(--bg-footer-bottom) 100%);
    color: var(--secondary-white);
}

.footer-main {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.footer-col {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    width: 60px;
    height: auto;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.footer-description {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links li a,
.footer-contact li a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition-normal);
}

.footer-links li a:hover,
.footer-contact li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-color);
}

.footer-icon-inline {
    margin-right: 6px;
    color: var(--accent-color);
}

.footer-bottom {
    background-color: var(--bg-footer-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--secondary-white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.scroll-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.6s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.6s ease 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.6s ease 0.6s forwards;
    opacity: 0;
}

.animate-fade-in-delay-4 {
    animation: fadeIn 0.6s ease 0.8s forwards;
    opacity: 0;
}

.animate-fade-in-delay-5 {
    animation: fadeIn 0.6s ease 1s forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideFromLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideFromRight 0.8s ease forwards;
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Design - Tablet
   ======================================== */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo-img {
        height: 80px;
    }
}

/* ========================================
   Responsive Design - Desktop
   ======================================== */
@media (min-width: 1024px) {
    .nav-desktop {
        display: block;
    }
    
    .mobile-menu-btn,
    .nav-mobile {
        display: none !important;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr 1fr;
    }
    
    .section-title {
        font-size: 3rem;
    }
}