/* ===== CUSTOMS CLEARANCE THEME ===== */
/* Professional theme for customs clearance website */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #1a5490;
    --secondary-color: #2874ba;
    --accent-color: #ffd700;
    --dark-color: #0d3a5f;
    --light-color: #e8f4f8;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* Fonts */
    --font-primary: 'Segoe UI', 'Cairo', Tahoma, Geneva, Verdana, sans-serif;
    --font-arabic: 'Cairo', 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 5px 20px rgba(26, 84, 144, 0.3);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    box-shadow: var(--shadow-heavy);
    padding: 1rem 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo:hover {
    color: var(--accent-color);
    transition: color var(--transition-fast);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* Login Button */
.login-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    margin-left: 1rem;
}

.login-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 50px;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.95), rgba(40, 116, 186, 0.92)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a5490" width="1200" height="600"/><g fill="%23ffffff" opacity="0.1"><rect x="100" y="100" width="200" height="150" rx="10"/><rect x="400" y="200" width="180" height="120" rx="10"/><rect x="700" y="50" width="220" height="180" rx="10"/><rect x="950" y="250" width="200" height="140" rx="10"/></g></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
    font-weight: 700;
}

.hero-text h1 span {
    color: var(--accent-color);
    position: relative;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    animation: underline 2s ease-in-out infinite;
}

@keyframes underline {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--light-color);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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 var(--transition-medium);
}

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

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    background: #ffed4e;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== STATISTICS SECTION ===== */
.statistics {
    padding: 80px 5%;
    background: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 84, 144, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 5%;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid var(--light-color);
    transition: all var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 100px 5%;
    background: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    border-right: 4px solid var(--accent-color);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.95rem;
}

.stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ===== CLIENTS SECTION ===== */
.clients {
    padding: 100px 5%;
    background: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
    align-items: center;
}

.client-logo {
    background: var(--white);
    padding: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 3px solid var(--light-color);
    transition: all var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.client-logo:hover::before {
    opacity: 0.1;
}

.client-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.client-logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 100px 5%;
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 84, 144, 0.9), transparent);
    padding: 2rem;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: all var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title::after {
    background: var(--accent-color);
}

.contact .section-subtitle {
    color: var(--light-color);
}

.contact-container {
    max-width: 800px;
    margin: 3rem auto 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    background: var(--white);
    color: #333;
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(40, 116, 186, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 4rem auto 0;
}

.contact-item {
    text-align: center;
    color: var(--white);
}

.contact-item-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== SOCIAL MEDIA SECTION ===== */
.social-media {
    padding: 80px 5%;
    background: var(--white);
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-primary);
}

.social-icon:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 30px rgba(26, 84, 144, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color);
    padding: 3rem 5%;
    text-align: center;
    color: var(--white);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .services-grid,
    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .contact-container {
        padding: 2rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 15px; }
.rounded-full { border-radius: 50%; }

.shadow { box-shadow: var(--shadow-light); }
.shadow-lg { box-shadow: var(--shadow-medium); }
.shadow-xl { box-shadow: var(--shadow-heavy); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-light { background-color: var(--light-gray); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray); }
