/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #0077b6;
    --secondary-color: #00b4d8;
    --dark-color: #03045e;
    --light-color: #ffffff;
    --text-color: #000000;
    --white-color: #fdfbfb;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- 3D & SHARED STYLES --- */
.title-3d-color {
    color: var(--dark-color);
    text-shadow: 1px 1px 0px var(--secondary-color), 2px 2px 0px var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-3d {
    background-color: var(--secondary-color);
    border: none;
    border-bottom: 4px solid #0096c7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.btn-3d:active {
    transform: translateY(2px);
    border-bottom: 2px solid #0096c7;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1;
}
.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}
.dropdown-content a:hover {
    background-color: var(--light-color);
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Header Right: Language & Menu Toggle */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.language-selector {
    position: relative;
    cursor: pointer;
}
.selected-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--light-color);
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white-color);
    list-style: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.language-selector:hover .lang-dropdown {
    display: block;
}
.lang-dropdown li {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-dropdown li:hover {
    background-color: var(--light-color);
}
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
#hero {
    background: url('images/jonathan-castaneda-1gXa3S4j-6o-unsplash.jpg') no-repeat center center/cover;
    height: 90vh;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 5, 94, 0.002); /* Dark blue overlay */
}
.hero-content {
    position: relative;
    z-index: 1;
}
#hero h2 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
#hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* --- ABOUT SECTION --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.image-content img {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- TEAM SECTION --- */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}
.team-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}
.team-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- PRODUCTS (ACCORDION) --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border-bottom: 1px solid #ddd;
}
.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.accordion-header:hover {
    background-color: var(--light-color);
}
.accordion-header i {
    transition: transform 0.3s ease;
}
.accordion-header.active i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: var(--white-color);
}
.accordion-content ul {
    list-style-position: inside;
    padding: 0 20px 20px 20px;
}
.accordion-content li {
    margin-bottom: 10px;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card .btn {
    margin-top: 20px;
}

/* --- INSIGHTS & RESOURCES --- */
.insights-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.insight-item {
    text-align: center;
    padding: 30px;
}
.insight-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- FOOTER --- */
.footer-section {
    position: relative;
    padding: 100px 0 0;
    color: var(--white-color);
    overflow: hidden;
}
.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.contact-form-container h3 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    font-family: var(--font-primary);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.contact-form button {
    width: 100%;
}
.contact-info-container {
    text-align: center;
}
.date-3d {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 180, 216, 0.7), 0 0 10px rgba(0, 180, 216, 0.5);
}
.world-clocks {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 20px;
}
.clock {
    text-align: center;
}
.clock-face {
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.5), inset 0 0 10px rgba(0,0,0,0.3);
}
.time {
    font-size: 1.5rem;
    font-weight: 700;
}
.city {
    font-size: 0.9rem;
    opacity: 0.8;
}
.social-media {
    margin-top: 20px;
}
.social-media a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.social-media a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    background-color: rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .image-content {
        order: -1; /* Puts image on top on mobile */
        margin-bottom: 30px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-info-container {
        margin-top: 40px;
    }
    .world-clocks {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    #hero h2 { font-size: 2.5rem; }
    #hero p { font-size: 1.2rem; }

    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding-bottom: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        padding: 15px 0;
    }
    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }
    .dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: var(--light-color);
        padding: 10px 0 0 0;
        display: none; /* Hidden by default */
    }
    .dropdown.active .dropdown-content {
        display: block; /* Show on click */
    }
    .dropdown-content a {
        padding-left: 40px;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }
    .world-clocks {
        flex-direction: column;
        align-items: center;
    }
}