/* ===== GLOBAL STYLES & VARIABLES ===== */
:root {
    --primary: #004080;
    --primary-dark: #003366;
    --secondary: #00a0e3;
    --accent: #ff6b00;
    --light: #f8f9fa;
    --dark: #121212;
    --text-light: #333;
    --text-dark: #f0f0f0;
    --card-light: #ffffff;
    --card-dark: #1e1e1e;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--light);
    transition: var(--transition);
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--dark);
    color: var(--text-dark);
}

body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Arial', 'Segoe UI', sans-serif;
    font-size: 1.05em;
}

/* ===== LOADING ANIMATIONS ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

body.dark-mode #loading-screen {
    background: var(--dark);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.dark-mode .spinner {
    border: 4px solid #2a2a2a;
    border-top: 4px solid var(--secondary);
}

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

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 10000;
    transition: width 0.4s ease;
}

body.dark-mode #progress-bar {
    background: var(--secondary);
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-container {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

body.dark-mode header {
    background: linear-gradient(135deg, #00264d 0%, #001a33 100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 5px;
    transition: var(--transition);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    transition: var(--transition);
}

.logo-text .full-name {
    display: block;
}

.logo-text .short-name {
    display: none;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: var(--transition);
}

/* Navigation */
nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--secondary);
}

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

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--secondary);
}

nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    min-width: 80px;
    justify-content: center;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 992px) {
    nav ul {
        gap: 20px;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    .header-container {
        gap: 10px;
        position: relative;
    }
    
    /* Mobile Logo - Show HTS only */
    .logo-text .full-name {
        display: none;
    }
    
    .logo-text .short-name {
        display: block;
        font-size: 1.3rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .logo-text h1 {
        margin-bottom: 0;
        font-size: 1.3rem;
    }
    
    .logo {
        gap: 8px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Mobile Navigation - Make 10% bigger */
    .mobile-toggle {
        display: block;
        font-size: 1.65rem; /* 10% bigger than 1.5rem */
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
    }
    
    nav {
        order: 1;
    }
    
    .header-controls {
        order: 3;
    }
    
    .logo {
        order: 2;
    }
    
    nav ul {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0.8rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        font-size: 1.045rem; /* 10% bigger than 0.95rem */
    }
    
    body.dark-mode nav ul {
        background-color: #001a33;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav a {
        padding: 8px 0;
        font-size: 1.045rem; /* 10% bigger than 0.95rem */
        display: block;
        text-align: center;
    }
    
    /* Header Controls Mobile */
    .header-controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lang-btn {
        min-width: 65px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .lang-btn span:last-child {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.4rem 0;
    }
    
    .logo-text .short-name {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .mobile-toggle {
        width: 32px;
        height: 32px;
        font-size: 1.32rem; /* 10% bigger than 1.2rem */
    }
    
    nav ul {
        top: 55px;
        padding: 0.8rem;
        font-size: 1.1rem; /* 10% bigger for smaller screens */
    }
    
    nav a {
        font-size: 1.1rem; /* 10% bigger for smaller screens */
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .lang-btn {
        min-width: 60px;
        padding: 5px 8px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .logo-text .short-name {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .lang-btn {
        min-width: 55px;
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* ===== CONTACT SECTION BASE ===== */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    color: white;
}

body.dark-mode .contact-section {
    background: linear-gradient(135deg, #00264d 0%, #001a33 100%);
}

.brand-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.animated-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.animated-logo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.brand-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.brand-text p {
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    min-width: 30px;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ===== FOOTER STYLES ===== */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 30px 0;
}

body.dark-mode footer {
    background-color: #001a33;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* ===== GO UP BUTTON ===== */
.go-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.go-up-btn.show {
    opacity: 1;
    visibility: visible;
}

.go-up-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* ===== COMMON COMPONENTS ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

body.dark-mode .section-title h2 {
    color: var(--secondary);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

body.dark-mode .section-title p {
    color: var(--text-dark);
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .brand-animation {
        padding: 30px 20px;
    }
    
    .animated-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Go Up Button Mobile */
    .go-up-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .brand-text h3 {
        font-size: 1.5rem;
    }
    
    .animated-logo {
        width: 80px;
        height: 80px;
    }
}