/* Etmaen - Mental Health Platform CSS
   Arabic RTL Website with Accessible Design
   Version: 1.0
*/

/* CSS Variables */
:root {
    /* Colors - based on client's brand colors */
    --color-primary: #8BC640; /* bright lime green */
    --color-secondary: #6DA863; /* muted sage green */
    --color-accent: #FF9D4D; /* warm amber */
    --color-accent-2: #7B6D8D; /* muted purple */
    --color-dark: #333333;
    --color-gray-dark: #555555;
    --color-gray: #777777;
    --color-gray-light: #AAAAAA;
    --color-light: #F5F5F5;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --border-width: 1px;
    --border-color: #E0E0E0;
    
    /* Shadow */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    /* Animation */
    --transition-speed: 0.3s;
    --transition-timing: ease;
    
    /* Z-index levels */
    --z-header: 100;
    --z-dropdown: 200;
    --z-modal: 300;
    --z-backtop: 50;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--color-dark);
    background-color: var(--color-white);
    text-align: right; /* RTL alignment */
    direction: rtl;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover, a:focus {
    color: var(--color-secondary);
    text-decoration: underline;
}

ul, ol {
    margin: 0 0 var(--spacing-md) var(--spacing-md);
    padding-right: var(--spacing-lg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--spacing-md);
    margin: 0 auto;
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.bg-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: var(--font-weight-medium);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: var(--border-width) solid transparent;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: pointer;
}

.btn:focus, .btn:hover {
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #5c9154;
    border-color: #5c9154;
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px;
    z-index: var(--z-header);
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, textarea:focus, select:focus, 
[tabindex]:focus {
    outline: 3px solid rgba(139, 198, 64, 0.5);
    outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Appointment Section */
.appointment-section {
    background-color: var(--color-primary-light);
    position: relative;
    overflow: hidden;
}

.appointment-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background-color: var(--color-primary);
    z-index: 0;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.appointment-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    align-items: center;
}

.appointment-content {
    flex: 1;
    min-width: 300px;
}

.appointment-content h2 {
    color: var(--color-secondary);
}

.appointment-features {
    margin-top: var(--spacing-md);
}

.appointment-feature {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.appointment-feature svg {
    margin-left: var(--spacing-sm);
    fill: var(--color-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.appointment-form {
    flex: 1;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow);
    min-width: 300px;
}

.appointment-form h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
    text-align: center;
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed), transform var(--transition-speed);
    z-index: var(--z-fixed);
    box-shadow: var(--box-shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Spinner Animation for Loading States */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 1s ease-in-out infinite;
    margin-left: var(--spacing-xs);
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .step-card {
        flex: 0 0 calc(50% - 30px);
    }
    
    .step-card:nth-child(even)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding-right: var(--spacing-md);
        padding-left: var(--spacing-md);
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        padding-left: 0;
        margin-top: var(--spacing-xl);
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .about-wrapper {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: var(--spacing-lg);
    }
    
    .service-card {
        flex: 0 0 280px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .appointment-section::before {
        width: 100%;
        height: 40%;
        top: auto;
        bottom: 0;
        clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
    }
    
    .appointment-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .step-card {
        flex: 0 0 100%;
    }
    
    .step-card::after {
        display: none;
    }
    
    .scroll-controls {
        display: none; /* Hide on very small screens, rely on touch scrolling */
    }
    
    .contact-card {
        flex: 0 0 100%;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 80px; /* Height of the header */
        right: 0;
        width: 100%;
        height: 0;
        background-color: var(--color-white);
        overflow: hidden;
        transition: height var(--transition-speed);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: var(--z-header);
    }
    
    .main-navigation.active {
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .menu {
        flex-direction: column;
        padding: var(--spacing-lg);
        padding-right: var(--spacing-lg); /* RTL adjustment */
    }
    
    .menu li {
        width: 100%;
        margin-left: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .menu a {
        display: block;
        padding: var(--spacing-sm) 0;
    }
    
    .menu a::after {
        display: none;
    }
}

/* Ensure proper RTL layout across all screen sizes */
@media (max-width: 992px) {
    .menu li {
        text-align: right; /* Maintain RTL text alignment in mobile menu */
    }
    
    .hamburger:before,
    .hamburger:after {
        right: 0; /* Ensure hamburger menu aligns properly in RTL */
    }
    
    .feature-item,
    .appointment-feature {
        justify-content: flex-start; /* Ensure icon alignment in RTL */
    }
    
    .form-check {
        flex-direction: row-reverse; /* Proper checkbox alignment in RTL */
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-navigation,
    .back-to-top,
    .footer-newsletter,
    .scroll-controls {
        display: none;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: none;
    }
    
    .hero-section,
    .about-section,
    .services-section,
    .contact-section {
        background-color: transparent;
    }
    
    .footer-copyright {
        color: var(--color-dark);
        text-align: center;
        margin-top: 2cm;
    }
}

/* Updated Footer Styles */
.footer-section {
    position: relative;
    background-color: #f9f9f9;
    color: var(--color-dark);
    padding-bottom: var(--spacing-md);
}

.footer-top {
    padding: var(--spacing-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.footer-col {
    padding-bottom: var(--spacing-md);
}

.footer-col h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    position: relative;
    font-weight: var(--font-weight-bold);
    padding-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-gray);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-speed);
    display: block;
    padding: var(--spacing-xs) 0;
}

.footer-links a::before {
    content: '\25B6';
    margin-left: var(--spacing-sm);
    font-size: 0.8em;
    display: inline-block;
    transition: transform var(--transition-speed);
    color: var(--color-primary);
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(-5px);
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-about p {
    margin-bottom: var(--spacing-md);
}

/* Updated Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.newsletter-form .form-group {
    flex: 1;
    position: relative;
}

.newsletter-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-white);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.newsletter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-speed);
    font-weight: var(--font-weight-medium);
}

.newsletter-btn:hover {
    background-color: var(--color-primary-dark);
}

.newsletter-message {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
}

/* Footer Bottom */
.footer-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: var(--spacing-md) 0;
}

.footer-bottom {
    padding-top: var(--spacing-md);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* Social Media Icons in Footer */
.footer-social {
    margin-top: var(--spacing-md);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    color: var(--color-primary);
    box-shadow: var(--box-shadow);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Animations and Effects */
.hover-lift {
    transition: transform var(--transition-speed);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-shadow {
    transition: box-shadow var(--transition-speed);
}

.hover-shadow:hover {
    box-shadow: var(--box-shadow-lg);
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Header Styles */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
    z-index: var(--z-header);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(139, 198, 64, 0.1);
}

.site-header.scrolled {
    padding: var(--spacing-xs) 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    max-height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-navigation {
    display: flex;
    align-items: center;
    margin: 0 var(--spacing-lg);
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    padding-right: 0;
}

.menu li {
    margin-left: var(--spacing-md);
    position: relative;
}

.menu a {
    color: var(--color-dark);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) var(--spacing-xs);
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.menu a:hover {
    color: var(--color-primary);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu a.active {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

.header-cta .btn {
    padding: 0.6rem 1.5rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(139, 198, 64, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.header-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 198, 64, 0.3);
}

.header-cta .btn:hover::before {
    left: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

/* Enhanced Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0;
    position: relative;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #8BC640 0%, #6DA863 100%);
    margin: 20px 0 25px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--body-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 2rem;
}

.hero-cta .btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-cta .btn-primary {
    background: linear-gradient(45deg, #8BC640 0%, #6DA863 100%);
    border: none;
    box-shadow: 0 10px 20px rgba(139, 198, 64, 0.3);
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(139, 198, 64, 0.4);
}

.hero-cta .btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.hero-cta .btn-outline:hover {
    background-color: rgba(139, 198, 64, 0.1);
    transform: translateY(-3px);
}

/* Hero Image Styling */
.hero-image {
    position: relative;
    flex: 1;
    max-width: 550px;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

/* Glass Card Effect for hero content */
.hero-content-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced animations */
@keyframes shimmer {
    0% {
        right: -100%;
    }
    100% {
        right: 100%;
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Responsive adjustments for hero section */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-underline {
        margin-right: auto;
        margin-left: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 80%;
    }
}

/* Updated Media Queries for Footer */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

/* Hero Section Enhanced Elements */
.hero-accent-line {
    position: absolute;
    width: 35%;
    height: 3px;
    background: linear-gradient(90deg, rgba(139, 198, 64, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    top: 0;
    right: 0;
    z-index: 1;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8BC640 0%, #6DA863 100%);
    margin: 16px 0 20px;
    border-radius: 2px;
}

.decorative-icon {
    position: absolute;
    bottom: -20px;
    right: 10%;
    opacity: 0.7;
    animation: pulse 3s ease-in-out infinite;
}

.image-wrapper {
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}

.image-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.image-decoration-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(139, 198, 64, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: -20px;
    right: -30px;
    animation: pulse 4s ease-in-out infinite alternate;
}

.image-decoration-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(109, 168, 99, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: 20px;
    left: -20px;
    animation: pulse 5s 1s ease-in-out infinite alternate;
}

.trust-badge {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 198, 64, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(109, 168, 99, 0.1);
    backdrop-filter: blur(4px);
    animation: fadeInUp 0.5s ease-out 1.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text span {
    font-weight: 600;
    color: #6DA863;
    font-size: 14px;
    line-height: 1;
}

.badge-text small {
    color: #666;
    font-size: 12px;
    line-height: 1;
    margin-top: 4px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Background Shapes */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
}

.hero-bg-shape-1 {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 198, 64, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    animation: pulse 15s infinite alternate;
}

.hero-bg-shape-2 {
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(109, 168, 99, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    animation: pulse 20s infinite alternate-reverse;
}

.hero-bg-shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    animation: pulseCenter 25s infinite;
}

@keyframes pulseCenter {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

/* Enhanced Hero Animation Effects */
.hero-content-card {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.hero-image {
    animation: fadeInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* SVG Animation */
.hero-image svg {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.hero-image svg circle, 
.hero-image svg path {
    transition: all 0.5s ease;
}

.hero-image svg:hover circle[cx="290"][cy="235"][r="25"] {
    fill: rgba(139, 198, 64, 0.3);
    transform: scale(1.05);
    transform-origin: 290px 235px;
}

.hero-image svg:hover circle[cx="290"][cy="235"][r="15"] {
    fill: rgba(139, 198, 64, 0.6);
    transform: scale(1.1);
    transform-origin: 290px 235px;
}

.hero-image svg:hover circle[cx="290"][cy="235"][r="5"] {
    fill: rgba(139, 198, 64, 1);
    transform: scale(1.2);
    transform-origin: 290px 235px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-image svg {
        max-width: 100%;
    }
    
    .trust-badge {
        bottom: 10px;
        right: 10px;
        padding: 6px 8px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-content-card {
        padding: 25px;
    }
    
    .hero-bg-shape {
        opacity: 0.3;
    }
}

/* Brain Illustration Styles */
.brain-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-svg {
    width: 100%;
    height: auto;
    max-width: 500px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    animation: floatAnimation 6s ease-in-out infinite;
}

.hero-logo {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: pulse 3s infinite;
}

/* Image Decorations */
.image-decoration {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 198, 64, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.image-decoration-1 {
    width: 150px;
    height: 150px;
    top: -20px;
    right: -20px;
    animation: pulse 15s infinite alternate;
}

.image-decoration-2 {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -30px;
    background: radial-gradient(circle, rgba(109, 168, 99, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    animation: pulse 20s infinite alternate-reverse;
}

/* Trust Badge */
.trust-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(139, 198, 64, 0.2);
    z-index: 5;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.badge-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Hero Content Card */
.hero-content-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

/* Hero Benefits List */
.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 1rem;
    color: var(--body-color);
    font-weight: 500;
}

/* Responsive adjustments for benefits */
@media (max-width: 768px) {
    .hero-benefits {
        gap: 8px;
        margin: 15px 0;
    }
    
    .benefit-item span {
        font-size: 0.9rem;
    }
    
    .benefit-icon {
        width: 20px;
        height: 20px;
    }
    
    .benefit-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Adjust hero layout for better content flow */
@media (min-width: 992px) {
    .hero-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }
    
    .hero-content-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        grid-column: 2;
        grid-row: 1;
    }
    
    .hero-image {
        grid-column: 1;
        grid-row: 1;
    }
}

@media (max-width: 991px) {
    .hero-section .container {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .hero-image {
        margin-bottom: 30px;
    }
    
    .hero-content-card {
        text-align: center;
    }
    
    .hero-benefits {
        align-items: flex-start;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .decorative-icon {
        display: none;
    }
}

/* Enhanced Hero Styling with RTL Support */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: right;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--body-color);
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: right;
}

/* Hero Introduction Text */
.hero-intro {
    margin-bottom: 1.5rem;
    border-right: 3px solid var(--primary-color);
    padding-right: 15px;
    position: relative;
}

.hero-intro p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: right;
}

.hero-intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: -3px;
    width: 3px;
    height: 40%;
    background: var(--secondary-color);
}

/* RTL Specific Adjustments */
.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    text-align: right;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-content-card {
        text-align: center;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-intro p {
        text-align: center;
    }
    
    .hero-intro {
        border-right: none;
        border-bottom: 3px solid var(--primary-color);
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .hero-intro::before {
        right: auto;
        bottom: -3px;
        top: auto;
        left: 0;
        width: 40%;
        height: 3px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .benefit-item {
        justify-content: center;
    }
}

/* Simplified About Section Styling */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    direction: rtl;
}

/* Enhanced About Section Styles */
.about-content.enhanced {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Intro Section */
.about-intro-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.about-main-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-dark);
    text-align: center;
    max-width: 800px;
    position: relative;
    font-weight: var(--font-weight-medium);
    padding: 0 20px;
    margin-bottom: 0;
}

/* Services Section */
.services-section {
    margin-bottom: 40px;
}

.services-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: var(--font-weight-semibold);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
    display: block;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.services-subtitle {
    text-align: center;
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 20px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 3px solid var(--color-primary);
    flex: 1;
    min-width: 220px;
    max-width: 280px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: white;
}

.service-card h4 {
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: var(--font-weight-medium);
}

/* About Info Grid */
.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 3px solid var(--color-primary);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: var(--font-weight-semibold);
}

.info-item p {
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--color-text);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .service-card {
        min-width: 200px;
    }
    
    .services-row {
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .about-info-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-intro-wrapper {
        margin-bottom: 25px;
    }
    
    .about-main-text {
        font-size: 1.2rem;
        line-height: 1.7;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* About Image */
.about-content.simple-layout .about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-content.simple-layout .about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
    transition: transform 0.5s ease;
}

.about-content.simple-layout .about-image:hover img {
    transform: scale(1.03);
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: var(--color-white);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--color-primary);
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-intro {
        text-align: center;
        border-right: none;
        border-bottom: 3px solid var(--color-primary);
        padding-right: 0;
        padding-bottom: 15px;
    }
    
    .about-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .feature {
        padding: 15px;
    }
    
    .feature h3 {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--color-white);
}

.how-it-works-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.process-step {
    display: flex;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    transition: all 0.3s ease;
    border-right: 4px solid var(--color-primary);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    min-width: 80px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    margin-left: 20px;
    color: var(--color-primary);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: var(--font-weight-semibold);
}

.step-content p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0;
}

.process-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    height: 40px;
    transform: rotate(90deg);
}

/* Responsive styles for How It Works section */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
        border-right: none;
        border-top: 4px solid var(--color-primary);
    }
    
    .step-icon {
        margin-left: 0;
        margin-bottom: 15px;
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
}

/* FAQ Section Styles */
.faq-section {
    background-color: var(--color-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    position: relative;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
}

.question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    margin-left: 16px;
    color: var(--color-primary);
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
}

.toggle-icon {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    margin-right: 56px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text);
}

/* Responsive styles for FAQ section */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
    }
    
    .question-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        margin-left: 12px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 20px 16px 20px;
        margin-right: 44px;
    }
}

/* Contact Section Styles */
.contact-section {
    background-color: var(--color-white);
}

.contact-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Contact Info Styles */
.contact-info {
    flex: 1;
    background-color: var(--color-light);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.contact-info-header {
    margin-bottom: 24px;
}

.contact-info-header h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.contact-info-header p {
    color: var(--color-text);
    margin-bottom: 0;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    margin-left: 16px;
    color: var(--color-primary);
}

.contact-card-content {
    flex: 1;
}

.contact-card-content h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin: 0 0 8px 0;
}

.contact-card-content p {
    margin: 0;
    color: var(--color-text);
}

.contact-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Social Media Styles */
.social-media {
    margin-top: 24px;
}

.social-media h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.3);
}

/* Contact Form Styles */
.contact-form-container {
    flex: 1.5;
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.2), rgba(var(--color-primary-rgb), 0.05));
    border-radius: 50%;
    z-index: 0;
}

.contact-form-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.1), rgba(var(--color-secondary-rgb), 0.03));
    border-radius: 50%;
    z-index: 0;
}

.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-form-header h3 {
    font-size: 1.6rem;
    color: var(--color-dark);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.contact-form-header h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 70%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.contact-form-header p {
    color: var(--color-text);
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
}

.form-group {
    position: relative;
    transition: transform 0.3s ease;
    margin-bottom: 12px;
}

.form-group:focus-within {
    transform: scale(1.01);
}

.form-group:focus-within .form-label {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    transition: color 0.3s ease, font-weight 0.3s ease;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-white);
    color: var(--color-dark);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) inset;
    position: relative;
}

.form-control::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.form-control:hover {
    border-color: rgba(var(--color-primary-rgb), 0.7);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) inset;
    background-color: rgba(var(--color-primary-rgb), 0.02);
}

.form-control:hover::placeholder {
    opacity: 0.8;
    color: var(--color-primary-dark);
}

.form-control:focus {
    border-color: var(--color-primary);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2), 0 2px 5px rgba(0, 0, 0, 0.02) inset;
    outline: none;
    transform: translateY(-1px);
    background-color: #fff;
}

.form-control:focus::placeholder {
    opacity: 0.9;
    color: var(--color-primary);
}

/* Add a highlight indicator for active fields */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10px;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.form-group:focus-within::after {
    width: calc(100% - 20px);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
    position: relative;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.form-check:hover {
    background-color: rgba(var(--color-primary-rgb), 0.03);
}

.form-check-input {
    margin-left: 10px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    line-height: 1.5;
}

.form-check-label a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    position: relative;
    transition: all 0.2s ease;
}

.form-check-label a:hover {
    color: var(--color-primary-dark);
}

.form-check-label a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary-dark);
    transition: width 0.3s ease;
}

.form-check-label a:hover::after {
    width: 100%;
}

.required {
    color: #e74c3c;
    margin-right: 3px;
}

.form-submit {
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 6px;
    margin-right: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.error-message:not(:empty) {
    opacity: 1;
    max-height: 50px;
    margin-top: 6px;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    border-right: 4px solid #2ecc71;
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.success-message:not([hidden]) {
    transform: translateY(0);
    opacity: 1;
}

.success-message::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #2ecc71;
    color: white;
    border-radius: 50%;
    margin-left: 12px;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive styles for Contact section */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .contact-card {
        padding: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* Footer Styles */
.site-footer {
    position: relative;
    background-color: var(--color-dark);
    color: var(--color-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-wave {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.footer-main {
    padding: 60px 0 40px;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1) 0%, rgba(var(--color-primary-rgb), 0) 70%);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.footer-about p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 0;
}

.social-icon svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon:hover svg {
    transform: scale(1.2);
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

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

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-links:hover h3::after,
.footer-services:hover h3::after,
.footer-newsletter:hover h3::after {
    width: 60px;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 15px;
}

.footer-links ul li::before,
.footer-services ul li::before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.footer-links ul li:hover::before,
.footer-services ul li:hover::before {
    transform: scale(1.3);
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--color-white);
    padding-right: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.newsletter-form {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.newsletter-form:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.newsletter-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.newsletter-input-group {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.newsletter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 12px 15px 12px 45px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
    transform: translateY(-2px);
}

.newsletter-form .form-control:focus + .newsletter-icon {
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus::placeholder {
    opacity: 0.7;
    transform: translateX(-5px);
}

.newsletter-form .btn-primary {
    width: 100%;
    background-color: var(--color-primary);
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.newsletter-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.newsletter-form .btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.4);
}

.newsletter-form .btn-primary:hover::before {
    left: 100%;
}

.newsletter-arrow {
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.newsletter-form .btn-primary:hover .newsletter-arrow {
    transform: translateX(5px);
}

.newsletter-success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
    border-right: 3px solid #2ecc71;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-success:not([hidden]) {
    transform: translateY(0);
    opacity: 1;
}

.newsletter-success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #2ecc71;
    color: white;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* Newsletter form focus and error states */
.newsletter-input-group.focused {
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
}

.newsletter-form .form-control.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

/* Shake animation for error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.newsletter-input-group.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Loading spinner */
.newsletter-form .btn-primary.loading {
    background-color: var(--color-primary-dark);
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.footer-bottom-links a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Add a subtle animation to the copyright */
.copyright::before {
    content: '©';
    margin-left: 5px;
    color: var(--color-primary);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 10px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}
