/* styles.css - WiSiAi Corporate Design (Updated 2025-06-07) */
@font-face {
    font-family: 'Gaoel';
    src: url('/fonts/Gaoel.eot');
    src: url('/fonts/Gaoel.eot?format=embedded-opentype#iefix') format('embedded-opentype'),
         url('/fonts/Gaoel.woff') format('woff'),
         url('/fonts/Gaoel.svg#Gaoel') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Root variables */
:root {
    --primary: #1a2a44; /* Dark navy */
    --accent: #00adfd; /* Vibrant blue */
    --white: #ffffff; /* White */
    --gray: #f5f5f5; /* Light gray */
    --brand: #c0c0c0; /* Silver for WISIAI */
    --shadow: rgba(0, 173, 253, 0.2);
    --glow: 0 0 10px var(--accent);
}

/* Light mode variables */
body.light-mode {
    --primary: #ffffff;
    --accent: #0088cc;
    --white: #1a2a44;
    --gray: #f4f4f9;
    --brand: #4dd0e1;
    --shadow: rgba(0, 136, 204, 0.2);
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Noto Sans Arabic', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

[dir="rtl"] *:not(.fa, .fas, .far, .fal, .fab) {
    font-family: 'Noto Sans Arabic', 'Roboto', sans-serif;
}

/* WISIAI Brand Font */
.wisiai-brand {
    font-family: 'Gaoel', sans-serif !important;
    color: var(--brand);
    text-transform: uppercase;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: var(--primary);
    padding: 15px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img { height: 50px; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger, .hamburger::before, .hamburger::after {
    width: 25px;
    height: 3px;
    background: var(--white);
    display: block;
    transition: all 0.3s ease;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
}
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}
nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}
nav a:hover, nav a[aria-current="page"] {
    color: var(--accent);
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
#language-select {
    padding: 8px;
    border: none;
    background: var(--accent);
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
}
.theme-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); }

/* Full-page sections */
section, footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

/* Hero Slider */
.hero-section {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}
.slick-slider {
    position: relative;
}
.slick-slider .slide {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: transparent;
    position: relative;
}
.slide-content {
    flex: 1;
    padding: 60px;
    text-align: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 20px;
}
.slide-content h1 {
    font-size: 56px;
    color: var(--white);
    border-bottom: 3px solid var(--accent);
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.slide-content p {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 40px;
}
.slide img {
    flex: 1;
    max-width: 50%;
    object-fit: cover;
    height: 100vh;
    position: absolute;
    right: 0;
    z-index: 1;
    opacity: 0.7;
}
[dir="rtl"] .slide img {
    right: auto;
    left: 0;
}
.cta-button {
    background: var(--accent);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.slick-prev, .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 173, 253, 0.8);
    color: var(--white);
    border: none;
    padding: 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 0;
    width: 50px;
    height: 50px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.slick-prev:hover, .slick-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}
.slick-prev::before {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 24px;
}
.slick-next::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 24px;
}
.slick-prev { left: 30px; }
.slick-next { right: 30px; }
[dir="rtl"] .slick-prev { left: auto; right: 30px; }
[dir="rtl"] .slick-next { right: auto; left: 30px; }
[dir="rtl"] .slick-prev::before { content: '\f105'; }
[dir="rtl"] .slick-next::before { content: '\f104'; }
.slick-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
}
.slick-dots li {
    display: inline-block;
    margin: 0 8px;
}
.slick-dots li button {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    text-indent: -9999px;
    transition: background 0.3s ease;
}
.slick-dots li.slick-active button {
    background: var(--accent);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: url('/img/about-bg.jpg') no-repeat center center/cover;
    text-align: center;
    position: relative;
    color: #ffffff;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.about-section .container {
    position: relative;
    z-index: 2;
}
.about-section h2 {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.about-section p {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--gray);
}
.services-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    color: #1a2a44;
}
.services-list {
    list-style: none;
}
.service-item {
    display: flex;
    align-items: center;
    background: var(--white);
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow);
}
.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.service-item img {
    width: 120px;
    height: 120px;
    margin: 0 40px;
    border-radius: 10px;
    object-fit: contain;
}
[dir="rtl"] .service-item img {
    margin: 0 0 0 40px;
}
.service-content {
    flex: 1;
}
.service-content h3 {
    font-size: 34px;
    margin-bottom: 20px;
    color: var(--primary);
}
.service-content p {
    font-size: 20px;
    color: #555;
    line-height: 1.8;
}
.service-cta {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}
.service-cta:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}
.contact-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 30px;
}
.contact-section p {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
}
.contact-grid {
    display: flex;
    gap: 40px;
	width: 1200px;
}
.map, #contact-form { flex: 1; }
#contact-form label {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}
#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
#contact-form textarea { min-height: 180px; }
#contact-form button {
    background: var(--accent);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
#contact-form button:hover { background: var(--primary); }

/* Send Section */
.send-section {
    padding: 80px 0;
    background: var(--white);
}
.send-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 30px;
}
.send-section p {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
}
.auth-form, .send-form {
    max-width: 700px;
    margin: 0 auto;
}
.auth-form label, .send-form label {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}
.auth-form input, .send-form input, .send-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.send-form textarea { min-height: 180px; }
.auth-form button, .send-form button {
    background: var(--accent);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.auth-form button:hover, .send-form button:hover { background: var(--primary); }

/* Messages */
.success-message, .error-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}
.success-message { background: rgba(0, 173, 253, 0.2); color: var(--accent); }
.error-message { background: rgba(255, 99, 132, 0.2); color: #ff6384; }

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-grid h3 {
    font-size: 22px;
    margin-bottom: 20px;
}
.footer-grid p, .footer-grid ul { font-size: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid a {
    color: var(--white);
    text-decoration: none;
}
.footer-grid a:hover { color: var(--accent); }
.footer-grid a i {
    font-size: 28px;
    margin-right: 12px;
}
.footer-copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 1000;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}
[dir="rtl"] #back-to-top {
    right: auto;
    left: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slick-slider .slide { flex-direction: column; }
    .slide img { max-width: 100%; height: auto; position: static; }
    .slide-content { margin: 20px; padding: 40px; }
    .contact-grid { flex-direction: column; width: auto;}
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .nav-menu.active { display: flex; }
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .nav-controls {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .slide-content h1 { font-size: 40px; }
    .service-item { flex-direction: column; text-align: center; padding: 30px; }
    .service-item img { margin: 0 0 20px 0; }
    .service-content h3 { font-size: 28px; }
    .service-content p { font-size: 18px; }
    section, footer { padding: 60px 0; }
}
