:root {
    --primary-color: #4b607f;
    --secondary-color: #f3701e;
    --accent-color: #ffffff;
    --text-color: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

.logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navigation Styles */
.nav-links {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.header.scrolled .nav-links a {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    z-index: 100;
}

.header.scrolled .mobile-menu-btn {
    color: var(--primary-color);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .header {
        background-color: white; /* Always white in mobile */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
        color: var(--primary-color); /* Always dark in mobile */
    }

    .header-container {
        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--primary-color) !important; /* Always dark in mobile */
    }

    .logo-container {
        order: 1;
    }

    .logo {
        height: 40px;
    }
    
    .header {
        padding: 10px 0;
    }
}

/* Adjust hero section to account for fixed header */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/1.jpeg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px; /* Add padding to account for fixed header */
}

.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 40px;
    color: var(--primary-color);
}

.feature-box {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
    text-align: center;
    background-color: var(--accent-color);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    color: #f3701e;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-box:hover i {
    transform: scale(1.2) rotate(360deg);
    color: #f3701e;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-box p {
    color: #666;
    line-height: 1.6;
}

.registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--secondary-color) !important;
    border: none;
    padding: 10px 30px;
    color: white !important;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e65d0a !important;
    transform: scale(1.05);
    color: white !important;
}

.success-message {
    text-align: center;
    padding: 50px;
    background-color: #f8f9fa;
    border-radius: 15px;
}

/* Language Selector Styles */
.language-selector {
    margin-left: 20px;
}

.language-selector a {
    padding: 5px;
    font-size: 14px;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-links {
    padding-right: 0;
}

[dir="rtl"] .language-selector {
    margin-right: 20px;
    margin-left: 0;
}

[dir="rtl"] .feature-box {
    text-align: right;
}

[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

@media (max-width: 768px) {
    [dir="rtl"] .mobile-menu-btn {
        margin-right: auto;
        margin-left: 0;
    }
    
    [dir="rtl"] .nav-links {
        text-align: right;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.animate {
    opacity: 0;
}

.animate.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/* Enhanced hover effects */
.feature-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.feature-box i {
    transition: transform 0.5s ease;
}

.feature-box:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Hero section animations */
.hero-section h1 {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-section p {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-section .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* Pulse animation for important elements */
.pulse-animation {
    animation: pulse 2s infinite;
}

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

/* Enhanced nav link hover effect */
.nav-links a::after {
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    background-color: var(--secondary-color);
}

/* Form input animations */
.form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(243, 112, 30, 0.25);
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(232, 216, 201, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

/* Section backgrounds */
.bg-light {
    background-color: transparent !important;
}

/* Update all FontAwesome icons to use orange color */
.fas, .fa-3x,
.feature-box i,
.section i,
.container i {
    color: var(--secondary-color) !important;
    transition: transform 0.3s ease;
}

.feature-box:hover i {
    transform: scale(1.2) rotate(360deg);
    color: var(--secondary-color) !important;
}

/* Exceptions */
.success-message .fas.fa-check-circle {
    color: #198754 !important; /* Keep success icon green */
}

.header .mobile-menu-btn i.fas {
    color: inherit !important; /* Keep mobile menu icon color as defined by parent */
}

/* Icon styles with higher specificity */
.feature-box i.fas,
.feature-box i.fa-3x,
section i.fas,
section i.fa-3x,
.container i.fas,
.container i.fa-3x {
    color: var(--secondary-color) !important;
    transition: transform 0.3s ease;
}

.feature-box:hover i {
    transform: scale(1.2) rotate(360deg);
    color: var(--secondary-color) !important;
}

/* Keep success icon green */
.success-message i.fas.fa-check-circle {
    color: #198754 !important;
}

/* Mobile menu icon color */
.mobile-menu-btn i.fas {
    color: inherit;
}

.partnerships {
    margin-top: 60px;
    text-align: center;
}

.partnership-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}

.partnership-logo {
    max-width: 150px; /* Reduced from 200px */
    height: auto;
    transition: transform 0.3s ease;
}

/* Specific size for the second partner logo */
.partnership-logo:nth-child(2) {
    max-width: 100px; /* Reduced from 150px */
}

.partnership-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partnership-logos {
        flex-direction: column;
        gap: 30px;
    }
    
    .partnership-logo {
        max-width: 120px; /* Reduced from 150px */
    }
    
    /* Maintain ratio on mobile */
    .partnership-logo:nth-child(2) {
        max-width: 80px; /* Reduced from 100px */
    }
}

/* Footer Styles */
.footer {
    background-color: white;
    color: var(--primary-color);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

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

.footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .social-links {
        gap: 20px;
    }
    
    .social-links a {
        font-size: 20px;
    }
} 