/* General Styles */
:root {
    --primary-color: #FF6F61;
    --secondary-color: #FFC857;
    --accent-color: #3A7DFF;
    --accent-soft: #A7C5FF;
    --support-color: #4CC9F0;
    --text-color: #1D3557;
    --dark-text: #0B1B35;
    --light-gray: #F9F7F2;
    --medium-gray: #FFE1CE;
    --dark-gray: #7E86A2;
    --black: #0B1B35;
    --white: #FFFFFF;
    --surface-main: #F9F7F2;
    --surface-strong: #FFE1CE;
    --surface-accent: #EDF2FF;
    --surface-contrast: #FFFFFF;
    --divider-color: rgba(29, 53, 87, 0.08);
    --transition: all 0.35s ease;
    --shadow-sm: 0 4px 10px rgba(92, 122, 234, 0.12);
    --shadow-md: 0 12px 30px rgba(255, 123, 84, 0.16);
    --shadow-lg: 0 22px 40px rgba(92, 122, 234, 0.18);
    --shadow-xl: 0 35px 55px rgba(92, 198, 208, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--surface-main);
    direction: rtl;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 20px;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-gray);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: var(--surface-contrast);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 3px solid rgba(92, 122, 234, 0.25);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo h2:hover {
    transform: scale(1.05);
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 20px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(255, 123, 84, 0.12);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    background: linear-gradient(115deg, rgba(58, 125, 255, 0.94), rgba(255, 111, 97, 0.92));
    position: relative;
    overflow: hidden;
    color: var(--white);
    margin-top: 70px;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(0);
}

.hero::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
}

.hero::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: -60px;
}

.hero-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgba(76, 201, 240, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 10px;
    max-width: 800px;
    margin-right: auto;
    margin-left: 0;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    animation: fadeInUp 1s ease 0.4s both;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.secondary {
    background-color: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: var(--white);
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.15);
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stat {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(6px);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--white);
}

.hero-stat span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.hero-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-media {
    display: flex;
    justify-content: flex-end;
}

.hero-media-card {
    background-color: var(--surface-contrast);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(11, 27, 53, 0.22);
    overflow: hidden;
    max-width: 520px;
    border: 1px solid rgba(58, 125, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.hero-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.hero-media-info {
    padding: 28px 32px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-media-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.hero-media-info p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.hero-media-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.hero-media-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.hero-media-info i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* About Section */
.about-section {
    background-color: var(--surface-contrast);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-badge {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(42, 107, 242, 0.12);
    color: #2A6BF2;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.about-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    display: grid;
    gap: 15px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--accent-color);
}

.about-list i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.about-gallery {
    flex: 1;
    display: grid;
    grid-template-rows: auto auto;
    gap: 20px;
}

.about-gallery-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(42, 107, 242, 0.25);
}

.about-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.about-gallery-main:hover img {
    transform: scale(1.05);
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 213, 111, 0.35);
}

.about-gallery-grid img:hover {
    transform: translateY(-6px);
}

/* Services Section */
.services-section {
    background-color: var(--surface-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--surface-contrast);
    padding: 50px 35px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 37, 94, 0.08);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(92, 122, 234, 0.35);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Why Us Section */
.why-us-section {
    background-color: var(--surface-main);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background-color: var(--surface-contrast);
    padding: 40px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(30, 37, 94, 0.08);
    position: relative;
    overflow: hidden;
}

.feature:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl);
    border-color: rgba(92, 122, 234, 0.35);
    background-color: var(--surface-accent);
}

.feature i {
    font-size: 2.5rem;
    color: #2A6BF2;
    margin-top: 5px;
    transition: var(--transition);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    transition: var(--transition);
}

.feature p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--surface-main);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-form {
    background-color: var(--surface-contrast);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(30, 37, 94, 0.08);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 15px;
    border: 2px solid rgba(42, 107, 242, 0.18);
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--surface-contrast);
    color: var(--text-color);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    right: 18px;
    top: 18px;
    color: var(--dark-gray);
    transition: var(--transition);
    pointer-events: none;
    background-color: var(--white);
    padding: 0 8px;
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(92, 122, 234, 0.15);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -12px;
    right: 12px;
    font-size: 0.8rem;
    color: var(--accent-color);
    background-color: var(--surface-main);
    padding: 2px 8px;
    border-radius: 4px;
}

.submit-btn {
    background-color: #2A6BF2;
    color: var(--white);
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background-color: var(--support-color);
}

.contact-info {
    padding: 30px 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    padding: 25px;
    background-color: var(--surface-contrast);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(30, 37, 94, 0.08);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(92, 122, 234, 0.3);
}

.info-item i {
    font-size: 2rem;
    color: #2A6BF2;
    margin-left: 20px;
    margin-top: 5px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 700;
}

.info-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #2A6BF2;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--support-color);
    transition: var(--transition);
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.12);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.social-links a:hover::before {
    left: 0;
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    grid-column: 1 / 2;
}

.footer-logo h3 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--white);
}

.footer-links {
    grid-column: 2 / 3;
}

.footer-links h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    color: var(--secondary-color);
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    opacity: 0.85;
    transition: var(--transition);
    font-weight: 500;
    display: inline-block;
    font-size: 1rem;
}

.footer-links a:hover {
    opacity: 1;
    padding-right: 10px;
    transform: translateX(-4px);
    color: var(--secondary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    opacity: 0.85;
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    gap: 10px;
}

.footer-contact i {
    margin-left: 0;
    color: var(--secondary-color);
}

.footer-contact p span {
    direction: ltr;
    display: inline-flex;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    nav {
        width: 95%;
    }
    
    .container {
        width: 95%;
    }
    
    header {
        padding: 12px 0;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 95%;
    }
}

@media (max-width: 768px) {
    nav {
        width: 100%;
        padding: 0 15px;
    }
    
    header {
        padding: 10px 0;
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-inner {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero {
        padding: 140px 0 90px;
        margin-top: 60px;
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 80px 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 0;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    nav {
        width: 100%;
        padding: 0 10px;
    }
    
    header {
        padding: 8px 0;
    }
    
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .section {
        padding: 60px 10px;
    }
    
    .hero-inner {
        width: 100%;
        padding: 0 10px;
    }
    
    .hero {
        padding: 120px 0 80px;
        margin-top: 55px;
    }
    
    .logo h2 {
        font-size: 1.35rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 30px 15px;
    }
}
