/* =====================================================
   Sepanta Company Website - Main Styles
   ===================================================== */

:root {
    --primary-dark: #0d2a4e;
    --primary-light: #1a3a52;
    --secondary: #4CAF50;
    --accent: #f5576c;
    --accent-purple: #9b59b6;
    --accent-blue: #3498db;
    --accent-orange: #e67e22;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #eee;
    --bg-light: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: 12px;
    --shadow-card: 0 8px 32px 0 rgba(13, 42, 78, 0.12);
    --shadow-hover: 0 16px 40px 0 rgba(13, 42, 78, 0.18);
    --shadow-glow: 0 0 30px rgba(76, 175, 80, 0.3);
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Modern card shadow and glass effect for main cards */
.content-item,
.service-card,
.subsidiary-card,
.expertise-item,
.team-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
}

.content-item:hover,
.service-card:hover,
.subsidiary-card:hover,
.expertise-item:hover,
.team-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    transform: translateY(-12px) scale(1.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: white;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* ===== TYPOGRAPHY ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

h1 {
    font-size: 48px;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
}

p {
    color: var(--text-light);
    margin-bottom: 15px;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ===== CONTAINER ===== */

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

/* ===== BUTTONS ===== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 42, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(13, 42, 78, 0.4), 0 0 20px var(--shadow-glow);
}

.btn-primary.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #45a049;
    transform: translateY(-3px);
}

.btn-text {
    background: transparent;
    color: var(--primary-dark);
    padding: 0;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--secondary);
}

/* ===== NAVIGATION ===== */

.navbar-top {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    height: 50px;
    /* Slightly taller container for better spacing */
}

.main-logo {
    max-height: 200px;
    /* Even smaller for a "premium" minimal look */
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    /* Sharper logo */
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    /* Subtle interactivity */
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggler span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
}

/* Language Selector */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: transparent;
    border: 2px solid var(--primary-dark);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: var(--primary-dark);
    color: white;
}

.lang-menu {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    top: 100%;
    right: 0;
    min-width: 140px;
    z-index: 100;
    margin-top: 5px;
}

body[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

/* Invisible bridge to prevent menu from closing when moving mouse */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 1;
}

.lang-dropdown:hover .lang-menu {
    display: block;
}

.lang-option {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.lang-option:hover,
.lang-option.active {
    background: var(--primary-dark);
    color: white;
}

/* ===== HERO SECTION ===== */

.hero-section {
    background: var(--gradient-main);
    color: white;
    padding: 120px 0 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(13, 42, 78, 0.15);
}

/* Animated gradient overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent,
            rgba(76, 175, 80, 0.1));
    animation: gradient-shift 15s ease infinite;
    pointer-events: none;
}

@keyframes gradient-shift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(10%, 10%) rotate(180deg);
    }
}

/* Decorative floating circles */
.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1,
.hero-title {
    font-size: 58px;
    margin-bottom: 20px;
    color: #fff !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(255, 255, 255, 0.1);
    font-weight: 700;
    line-height: 1.2;
}

.hero-section p,
.hero-subtitle {
    font-size: 22px;
    margin-bottom: 35px;
    opacity: 0.95;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== STATS BAR ===== */

.stats-bar {
    background: white;
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    margin-bottom: 5px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ABOUT MINI SECTION ===== */

.about-mini-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.feature-item i {
    color: var(--secondary);
    font-size: 18px;
}

.about-mini-image {
    position: relative;
}

.image-stack {
    position: relative;
    padding: 20px;
}

.img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    height: 450px;
}

.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--gradient-main);
    color: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.experience-badge .years {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

@media (max-width: 992px) {
    .about-mini-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-mini-image {
        order: -1;
    }

    .img-main {
        height: 350px;
    }
}

/* ===== SECTIONS ===== */

.section {
    padding: 80px 0;
}

.about-mini-section,
.projects-section {
    background-color: #fcfcfc;
    /* Very subtle light gray */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-section {
    background-color: white;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

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

.no-data {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px;
}

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

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ===== GRIDS ===== */

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

.content-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.content-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-item .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, #45a049 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    margin: 0 auto 20px;
}

.content-item h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* ===== SERVICES GRID ===== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
    transform: scaleX(0);
    transition: transform 0.4s;
}

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

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(76, 175, 80, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 20px;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.services-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card-large {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s;
}

.service-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    margin: 0 auto 20px;
}

/* ===== PROJECTS GRID ===== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.project-content {
    padding: 25px;
}

.project-category {
    color: var(--secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.projects-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card-full {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.project-card-full:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card-full .project-image {
    width: 100%;
    height: 100%;
}

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

.project-card-full:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Vivid blue background for constant legibility */
    background: linear-gradient(135deg, rgba(13, 42, 78, 0.88) 0%, rgba(26, 58, 82, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    opacity: 1;
    /* Fully visible by default */
    padding: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.project-card-full:hover .project-overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.project-overlay h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transform: none;
    /* Visible by default */
}

.project-overlay .category {
    font-size: 13px;
    text-transform: uppercase;
    color: #ffd700;
    /* Gold for high contrast */
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    transform: none;
    /* Visible by default */
}

.project-overlay .location {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 1;
    transform: none;
    /* Visible by default */
}

/* ===== SUBSIDIARIES ===== */

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.subsidiary-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.subsidiary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.subsidiary-logo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 5px;
    margin-bottom: 20px;
}

.subsidiary-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.subsidiary-contact {
    margin: 15px 0;
    font-size: 14px;
}

.subsidiary-contact p {
    margin-bottom: 8px;
}

.specialization {
    color: var(--secondary);
    font-weight: 600;
}

/* ===== EXPERTISE SECTION ===== */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.expertise-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.expertise-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.expertise-item i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

/* ===== TEAM SECTION ===== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 30px 20px;
    text-align: center;
}

.team-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    /* Show full image without cropping */
    border-radius: 50%;
    margin-bottom: 25px;
    border: 4px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    display: inline-block;
    padding: 10px;
    /* Add some padding so the image doesn't touch the borders */
}

.team-info {
    padding: 0;
    text-align: center;
}

.team-info .position {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ===== TESTIMONIALS ===== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary);
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 15px;
}

.testimonial-card .message {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
}

.testimonial-card .client-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.testimonial-card .client-company {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== PROCESS SECTION ===== */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 16px rgba(13, 42, 78, 0.10);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    opacity: 0.18;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.18);
}

border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
font-weight: 700;
margin: 0 auto 20px;
}

.step h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.step p {
    font-size: 14px;
}

/* ===== PAGE HEADER ===== */

.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

/* ===== CONTACT FORM ===== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(13, 42, 78, 0.1);
}

.contact-info-wrapper h2 {
    margin-bottom: 30px;
}

.info-block {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.info-block:last-child {
    border-bottom: none;
}

.info-block h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: scale(1.1);
}

/* ===== CTA SECTION ===== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */

.footer {
    background: linear-gradient(135deg, #0d2a4e 0%, #1a3a52 100%);
    color: #fff;
    box-shadow: 0 -8px 32px 0 rgba(13, 42, 78, 0.10);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 32px 0;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-section a {
    color: #fff;
    opacity: 0.92;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 0 2px 8px rgba(13, 42, 78, 0.10);
}

.footer-section a:hover {
    color: var(--accent);
    text-shadow: 0 4px 16px rgba(245, 87, 108, 0.18);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary);
    width: 20px;
}

.business-hours {
    font-size: 14px;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===== FILTER BUTTONS ===== */

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* ===== ALERTS ===== */

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggler {
        display: flex;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .content-grid.grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLL ANIMATIONS ===== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Apply animations to sections */
.services-section,
.projects-section,
.cta-section {
    animation: fadeIn 1s ease-out;
}

/* ===== MODERN SECTION STYLING ===== */

.services-section,
.projects-section {
    padding: 80px 0;
    position: relative;
}

.services-section h2,
.projects-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 42px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section {
    background: var(--gradient-cool);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::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 d="M0,0 Q300,100 600,50 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') bottom repeat-x;
    opacity: 0.5;
}

.cta-section h2 {
    color: white !important;
    font-size: 42px;
    margin-bottom: 15px;
}

.cta-section p {
    color: white !important;
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== ENHANCED VISUAL EFFECTS ===== */

/* Project cards with modern styling */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

/* Icon animations */
.service-icon,
.expertise-item i {
    transition: all 0.3s;
}

.service-card:hover .service-icon,
.expertise-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Smooth section transitions */
section {
    opacity: 0;
    animation: sectionFadeIn 0.8s ease-out forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
    }
}

/* Add decorative gradient lines */
.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Enhance button interactions */
.btn {
    z-index: 1;
}

.btn-primary,
.btn-secondary {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Add pulse effect to CTA buttons */
.btn-lg {
    animation: subtlePulse 2s ease-in-out infinite;
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.btn-lg:hover {
    animation: none;
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-logo i {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .testimonial-card {
    border-left: none;
    border-right: 4px solid var(--secondary);
}

[dir="rtl"] .contact-info i {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .social-links a {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .navbar-toggler span {
    margin-left: 0;
}

[dir="rtl"] .hero-section p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

[dir="rtl"] .section-header p {
    text-align: center;
}

[dir="rtl"] .contact-form-wrapper {
    order: 2;
}

[dir="rtl"] .contact-info-wrapper {
    order: 1;
}

[dir="rtl"] .service-card {
    border-top: 4px solid transparent;
    /* Ensure symmetry */
}

@media (max-width: 991px) {
    [dir="rtl"] .navbar-menu {
        right: auto;
        left: -100%;
        flex-direction: column;
        transition: left 0.3s;
    }

    [dir="rtl"] .navbar-menu.active {
        left: 0;
    }
}