/* Root Variables */
:root {
    /* Primary Colors */
    --primary-color: #1e3d59;          /* Deep navy blue - main brand color */
    --primary-light: #2c5a85;          /* Lighter navy for hover states */
    --primary-dark: #15304a;           /* Darker navy for active states */
    
    /* Secondary Colors */
    --secondary-color: #ff6b6b;        /* Coral red - accent color */
    --secondary-light: #ff8585;        /* Lighter coral for hover states */
    --secondary-dark: #e65c5c;         /* Darker coral for active states */
    
    /* Neutral Colors */
    --neutral-100: #ffffff;            /* Pure white */
    --neutral-200: #f8f9fa;            /* Light gray background */
    --neutral-300: #e9ecef;            /* Border color */
    --neutral-400: #ced4da;            /* Muted text */
    --neutral-500: #6c757d;            /* Secondary text */
    --neutral-600: #495057;            /* Primary text */
    --neutral-700: #343a40;            /* Dark text */
    --neutral-800: #212529;            /* Headings */
    
    /* Success Colors */
    --success: #28a745;
    --success-light: #34ce57;
    --success-dark: #1e7e34;
    
    /* Warning Colors */
    --warning: #ffc107;
    --warning-light: #ffce3a;
    --warning-dark: #d39e00;
    
    /* Error Colors */
    --error: #dc3545;
    --error-light: #e4606d;
    --error-dark: #bd2130;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    --gradient-light: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 20px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--neutral-600);
    background-color: var(--neutral-100);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition-base);
    color: var(--neutral-600) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    z-index: -1;
    animation: zoomBg 20s infinite alternate;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    overflow: hidden;
    height: 100%;
    background: var(--neutral-100);
}

.card:hover {
    transform: var(--hover-transform);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--neutral-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    color: var(--primary-color);
}

.service-icon i {
    color: var(--primary-color);
    transition: var(--transition-base);
}

.card:hover .service-icon {
    background: var(--primary-color);
}

.card:hover .service-icon i {
    color: var(--neutral-100);
    transform: scale(1.1);
}

/* Button Styles */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Animations */
@keyframes zoomBg {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .lead {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* Navigation */
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .logo-img {
        width: 40px;
        height: auto;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: 4rem 0;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .card-body {
        padding: 1.5rem;
    }

    /* Service Icons */
    .service-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn-group .btn {
        flex: 1 1 auto;
        white-space: nowrap;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    /* Footer */
    footer {
        padding: 2rem 0;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    /* Language Selector */
    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
    }

    .language-flag {
        width: 20px;
        height: 14px;
    }

    /* Animations */
    .fade-in-up {
        animation: fadeInUp 0.6s ease-out;
    }

    .slide-in-left {
        animation: slideInLeft 0.6s ease-out;
    }

    /* Tables */
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
        width: calc(100% + 2rem);
    }

    /* Project Cards */
    .project-card {
        margin-bottom: 1.5rem;
    }

    .project-card img {
        border-radius: 15px 15px 0 0;
    }

    /* Shop Section */
    .shop-card {
        margin-bottom: 1.5rem;
    }

    .shop-logo {
        max-width: 120px;
        margin-bottom: 1rem;
    }

    /* Loading Spinner */
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 576px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    [class*="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .hero-section {
        min-height: 50vh;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .navbar-nav {
    padding-right: 0;
}

.rtl .navbar-nav .nav-item {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl .navbar-brand {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.rtl .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

.rtl .ms-lg-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

.rtl .me-1, .rtl .me-2, .rtl .me-3, .rtl .me-4 {
    margin-right: 0 !important;
}

.rtl .me-1 {
    margin-left: 0.25rem !important;
}

.rtl .me-2 {
    margin-left: 0.5rem !important;
}

.rtl .me-3 {
    margin-left: 1rem !important;
}

.rtl .me-4 {
    margin-left: 1.5rem !important;
}

.rtl .ps-4 {
    padding-left: 0 !important;
    padding-right: 1.5rem !important;
}

.rtl .text-md-end {
    text-align: left !important;
}

.rtl .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

.rtl .dropdown-item {
    text-align: right;
}

.rtl .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.255em;
}

.rtl .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

.rtl .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

.rtl .nav-link::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Form Elements */
.rtl .form-floating > label {
    left: auto;
    right: 0;
}

.rtl .form-select {
    padding: .375rem .75rem .375rem 2.25rem;
    background-position: left .75rem center;
}

/* List groups */
.rtl .list-group {
    padding-right: 0;
}

.rtl .list-unstyled {
    padding-right: 0;
}

/* Footer and social media icons */
.rtl .social-links a {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Input groups */
.rtl .input-group > .form-control:not(:last-child) {
    border-radius: 0 .25rem .25rem 0;
}

.rtl .input-group > .input-group-text:not(:last-child) {
    border-radius: 0 .25rem .25rem 0;
    border-right: 1px solid #ced4da;
    border-left: 0;
}

/* Carousel controls */
.rtl .carousel-control-prev {
    left: auto;
    right: 0;
}

.rtl .carousel-control-next {
    right: auto;
    left: 0;
}

.rtl .carousel-indicators {
    direction: ltr;
}

/* Tables */
.rtl .table {
    text-align: right;
}

/* Cards */
.rtl .card-header {
    text-align: right;
}

/* Existing RTL Support */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .dropdown-menu {
    text-align: right;
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table thead th {
    background: var(--primary-color);
    color: var(--neutral-100);
    border: none;
}

.table tbody tr {
    transition: var(--transition-base);
}

.table tbody tr:hover {
    background: var(--neutral-200);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    padding: 0.8rem;
    border: 2px solid var(--neutral-300);
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 61, 89, 0.25);
}

/* Footer Styles */
footer {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

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

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

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

/* Hover Effects */
.hover-zoom {
    transition: var(--transition-base);
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-shadow:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Grid System Improvements */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.rounded-xl {
    border-radius: 1rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
:root {
    --primary-color: #1e3d59; /* Deep blue for professionalism */
    --secondary-color: #ff6e40; /* Orange accent for energy */
    --dark-color: #17314a; /* Darker blue for contrast */
    --light-color: #f5f5f5; /* Light gray for backgrounds */
    --text-color: #333333; /* Dark gray for text */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #ff9248);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 76px;
    color: var(--text-color);
}

/* Logo and Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #2c3e50;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.brand-text:hover {
    color: #3498db;
}

/* About Section */
#about {
    background-color: white;
}

#about h2 {
    color: var(--primary-color);
    font-weight: 700;
}

#about .lead {
    color: var(--secondary-color);
}

#about img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Projects Section */
#projects {
    background-color: white;
}

.project-card {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: white;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
    background: white;
}

.project-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.project-info .location,
.project-info .year {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.project-info .location i,
.project-info .year i {
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 1rem;
}

.project-info .scope-list {
    margin: 15px 0;
}

.project-info .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.project-info .badge:hover {
    background-color: var(--secondary-color);
}

/* Cards */
.card {
    border: none;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border-radius: 12px;
    overflow: hidden;
}

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

.card-body {
    padding: 2rem;
    text-align: center;
}

.card i {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--neutral-100);
}

/* Contact Form */
.contact-info {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 5px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

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

/* Products Grid */
#products-grid {
    transition: all 0.3s ease;
}

.btn-group .btn {
    margin: 0 5px;
}

/* Section Headers */
section h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Enhanced Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animated Elements */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        background-attachment: scroll;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .table-responsive {
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
    }
}

.shop-card {
    transition: transform 0.3s ease-in-out;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shop-card:hover {
    transform: translateY(-5px);
}

.shop-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

#shop .card-body {
    padding: 2rem;
}

#shop .btn-primary {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Responsive adjustments for shop section */
@media (max-width: 768px) {
    .shop-logo {
        max-width: 150px;
    }
    
    #shop .card-body {
        padding: 1.5rem;
    }
}

/* Enhanced Table Styles */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table thead th {
    background: var(--gradient-primary);
    color: var(--neutral-100);
    font-weight: 500;
    border: none;
}

.table tbody tr {
    transition: var(--transition-smooth);
}

.table tbody tr:hover {
    background-color: rgba(30, 61, 89, 0.05);
    transform: scale(1.01);
}

/* Enhanced Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.alert-info {
    background: var(--neutral-200);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* Language Switcher Styles */
.language-flag {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.current-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bs-light);
}

.dropdown-item:hover .language-flag {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Language Switcher Mobile Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 200px;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 4px;
        margin: 0.25rem;
    }
}

/* Hide Social Elements */
.social-links,
[class*="social-"],
[class*="fa-facebook"],
[class*="fa-twitter"],
[class*="fa-instagram"],
[class*="fa-linkedin"] {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    footer {
        text-align: center;
        padding: 2rem 0;
    }
} 