/* ===================================
   AL-SAFWA WEBSITE - MAIN STYLES
   =================================== */

/* Color Palette */
:root {
    --primary-blue: #1B4965;        /* Professional Petrol Blue */
    --secondary-blue: #2C6E8C;      /* Lighter Petrol Blue */
    --accent-orange: #F7931E;       /* Construction Orange */
    --accent-yellow: #FDB913;       /* Construction Yellow */
    --dark-gray: #2D2D2D;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===================================
   TOP BAR (Contact Info)
   =================================== */
.top-bar {
    background: var(--dark-gray);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.top-bar-contact {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.top-bar-contact a:hover {
    color: var(--accent-orange);
}

.top-bar-contact i {
    font-size: 16px;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

/* Social Media Brand Colors */
.social-links .facebook {
    background: #1877F2;
    color: white;
}

.social-links .instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: white;
}

.social-links .linkedin {
    background: #0A66C2;
    color: white;
}

.social-links .whatsapp {
    background: #25D366;
    color: white;
}

.social-links .twitter {
    background: #1DA1F2;
    color: white;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    background: rgba(27, 73, 101, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(27, 73, 101, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 28px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 12px;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation Menu */
nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-orange);
}

nav ul li a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    color: var(--text-dark);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.dropdown-menu li a:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.dropdown-menu li a i {
    font-size: 18px;
    color: var(--accent-orange);
    transition: color 0.3s ease;
}

.dropdown-menu li a:hover i {
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger → X Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,50 Q300,100 600,50 T1200,50 L1200,120 L0,120 Z"/></svg>') repeat-x bottom;
    background-size: 120%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 40px 20px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}

.hero-content .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
    border: 2px solid var(--accent-orange);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 147, 30, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

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

/* ===================================
   FOOTER
   =================================== */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-orange);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 2;
    font-size: 15px;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

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

/* ===================================
   UTILITIES
   =================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
