@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #324559;
    --primary-color-light: #455e78;
    --primary-color-dark: #001e53;
    --primary-gradient: linear-gradient(120deg, 
        #002c4d 0%, 
        #003d6b 20%, 
        #003296 40%, 
        #0040bf 60%, 
        #004b96 80%, 
        #00284d 100%);
    --primary-magical-gradient: linear-gradient(120deg, 
        rgba(0, 30, 77, 0.9) 0%, 
        rgba(0, 27, 107, 0.95) 20%, 
        rgb(0, 27, 150) 40%, 
        rgba(0, 54, 191, 0.95) 60%, 
        rgba(0, 40, 150, 0.95) 80%, 
        rgba(0, 35, 77, 0.9) 100%);
    --secondary-color: #E4B24C;
    --secondary-color-light: #f3c768;
    --secondary-color-dark: #c99a32;
    --secondary-gradient: linear-gradient(135deg, #D4AF37 0%, #F3C768 100%);
    --dark-color: #2C3E50;
    --dark-color-light: #3c526a;
    --dark-gradient: linear-gradient(135deg, #1e2b38 0%, #3c526a 100%);
    --light-color: #F7F9F9;
    --light-color-shade: #e8f0f0;
    --accent-color: #D4AF37;
    --accent-color-light: #e8c44d;
    --gold-gradient: linear-gradient(135deg, #C9A227 0%, #F3D77F 50%, #C9A227 100%);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
header {
    background: var(--dark-gradient);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 15, 126, 0.5));
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 8px rgba(0, 29, 191, 0.8));
    transform: scale(1.05);
}

.logo span {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

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

.contact-btn {
    background: var(--secondary-gradient);
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.contact-btn:hover {
    background: var(--gold-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,112,74,0.3) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.cta-btn {
    display: inline-block;
    background: var(--secondary-gradient);
    color: var(--dark-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.cta-btn:hover {
    background: var(--gold-gradient);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

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

.cta-btn.secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary:hover {
    background-color: rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--light-color-shade) 100%);
    position: relative;
    overflow: hidden;
}

.about:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.03;
    top: -150px;
    right: -150px;
}

.about:after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0.03;
    bottom: -100px;
    left: -100px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 36px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 15px auto;
    border-radius: 2px;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
}

.about-text h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 18px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 2.5rem;
    justify-content: center;
    align-items: center;
}

.stat-card {
    background: linear-gradient(135deg, #f7fafc 60%, #e8f0f0 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1.5px solid #e0e7ef;
    padding: 1.5rem 1.7rem;
    width: 170px;
    height: 170px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s, border-color 0.22s, background 0.22s;
    position: relative;
    z-index: 1;
}

.stat-card:hover, .stat-card:focus {
    transform: translateY(-7px) scale(1.045);
    box-shadow: 0 8px 32px rgba(0, 28, 112, 0.13), 0 1.5px 8px rgba(0,0,0,0.07);
    border-color: var(--primary-color-light);
    background: linear-gradient(135deg, #e8ebf0 60%, #d4e4f5 100%);
}

.stat-card i {
    font-size: 6.2rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    transition: color 0.22s;
}

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

.stat-label {
    font-size: 1.08rem;
    color: #666;
    margin-bottom: 0.18rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.stat-value {
    font-size: 1.18rem;
    font-weight: bold;
    color: #222;
    letter-spacing: 0.01em;
}

@media (max-width: 992px) {
    .stat-card {
        width: 140px;
        height: 140px;
        padding: 1.1rem 0.7rem;
    }
    .stat-card i {
        font-size: 3rem;
    }
}
@media (max-width: 600px) {
    .about-stats {
        gap: 10px;
    }
    .stat-card {
        width: 110px;
        height: 110px;
        padding: 0.7rem 0.3rem;
    }
    .stat-card i {
        font-size: 2.1rem;
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #fff;
}

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

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--light-color-shade);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--light-color-shade) 0%, rgba(255,255,255,0) 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0,112,74,0.1);
    border-color: rgba(0,112,74,0.2);
}

.feature-card:hover:before {
    height: 100%;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.feature-icon:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon:after {
    width: 70px;
    height: 70px;
    opacity: 0.15;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.project-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    top: 0;
}

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

.project-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.project-cta {
    text-align: center;
    margin-top: 15px;
}

.project-cta .cta-btn {
    width: 100%;
    padding: 12px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}

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

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card:before {
    content: "\201C";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    color: rgba(0,112,74,0.1);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

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

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 112, 74, 0.2);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--primary-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 112, 74, 0.3);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    margin-left: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.map {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

/* Offer Section */
.offer {
    padding: 60px 0;
    background: var(--primary-magical-gradient);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offer:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(-30deg);
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: rotate(-30deg) translateY(0);
    }
    50% {
        transform: rotate(-30deg) translateY(5%);
    }
    100% {
        transform: rotate(-30deg) translateY(0);
    }
}

.offer h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.offer p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: var(--dark-gradient);
    color: #fff;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold-gradient);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

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

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.social-links a:hover:before {
    opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav {
        display: none;
        width: 100%;
        margin: 15px 0;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        margin: 10px auto;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-content, 
    .contact-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image,
    .contact-form,
    .contact-info {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .features-grid,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .cta-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .about-text h3 {
        font-size: 20px;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-meta span {
        margin-bottom: 5px;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (min-width: 769px) {
    nav {
        display: block !important;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Whatsapp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.whatsapp-btn:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    top: -150%;
    left: -150%;
    transition: all 0.5s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:hover:before {
    top: -50%;
    left: -50%;
}

/* Add magical sparkle effect */
.logo:after, .section-title:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Image hover effects for projects */
.project-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,112,74,0.2) 0%, rgba(0,0,0,0) 50%, rgba(0,112,74,0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-image:after {
    opacity: 1;
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Additional responsive styles for specific images */
.about-image img,
.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.author-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .author-image img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 40px;
    }
}

/* Map Section */
.map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 0;
    background-color: var(--light-color);
}

.map-container {
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    height: 700px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.map-container #map {
    height: 100%;
    width: 100%;
}

.land-info-window {
    padding: 10px;
    font-family: 'Tajawal', sans-serif;
    text-align: center;
}

.land-info-window strong {
    display: block;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .map-container {
        height: 400px !important;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 400px !important;
    }
}
@media (max-width: 476px) {
    .map-container {
        height: 400px !important;
    }
}
@media (max-width: 376px) {
    .map-container {
        height: 400px !important;
    }
}
.map-section .container {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
}

/* Virtual Tour Section */
.virtual-tour-section {
    padding: 80px 0;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.virtual-tour-embed {
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.virtual-tour-embed iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 10px;
    background: #000;
    display: block;
}
@media (max-width: 992px) {
    .virtual-tour-embed iframe {
        min-height: 400px;
    }
}
@media (max-width: 768px) {
    .virtual-tour-section {
        padding: 50px 0;
    }
    .virtual-tour-embed {
        width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }
    .virtual-tour-embed iframe {
        min-height: 300px;
        border-radius: 0;
    }
}
@media (max-width: 576px) {
    .virtual-tour-embed iframe {
        min-height: 220px;
    }
}

/* Filter Bar Styles */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    background: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    margin-bottom: 16px;
    z-index: 10;
    position: relative;
}

.filter-bar label {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-bar select {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 15px;
    margin-right: 4px;
}

#filter-reset {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s;
}

#filter-reset:hover {
    background: var(--primary-color-light);
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 8px;
    }
    .filter-bar label {
        font-size: 14px;
    }
    #filter-reset {
        width: 100%;
        margin: 0;
    }
}

.footer-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #d5d8df;
}
.footer-gallery img {
    width: 350px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 18px;
    transition: box-shadow 0.2s, background 0.2s;
}
.footer-email i {
    color: #c4c0c0;
    font-size: 1.2em;
    margin-left: 4px;
}
.footer-email a {
    color: #8a8686;
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration 0.2s, color 0.2s;
}
.footer-email a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}
.footer-email:hover {
    box-shadow: 0 4px 18px rgba(0,112,74,0.18);
    background: var(--primary-color-light);
}

@media (max-width: 480px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 6px 2vw;
        margin: 8px 0 0 0;
        border-radius: 6px;
        box-shadow: 0 1px 4px #0001;
        width: 98vw;
        max-width: 98vw;
    }
    .filter-bar label {
        font-size: 12px;
        padding: 4px 6px;
        gap: 4px;
        border-radius: 6px;
        margin-bottom: 0;
    }
    .filter-bar select {
        font-size: 12px;
        min-width: 60px;
        padding: 4px 8px 4px 6px;
        border-radius: 4px;
        background-size: 14px 14px;
        background-position: left 4px center;
    }
    .filter-bar button {
        font-size: 13px;
        padding: 7px 10px;
        border-radius: 4px;
        margin-right: 0;
        width: 100%;
        margin-top: 2px;
    }
    .filter-bar button#return-to-main-site {
        margin-top: 4px;
    }
}

/* About Image Slider Styles */
.about-image.slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 320px;
}
.slider-images {
    height: 320px;
    position: relative;
    width: 100%;
    display: block;
}
.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(.4,2,.6,1);
    z-index: 1;
}
.slider-img.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
@media (max-width: 768px) {
    .slider-images {
        height: 180px;
    }
}
.slider-arrow {
    background: rgba(0,0,0,0.18);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: 0 2px 8px #0002;
}
.slider-arrow:focus,
.slider-arrow:hover {
    background: var(--primary-color);
    color: #fff;
}
.slider-arrow-right {
    right: 10px;
}
.slider-arrow-left {
    left: 10px;
}
.slider-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 11;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid #fff;
}
.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    border-color: var(--secondary-color);
}
@media (max-width: 768px) {
    .about-image.slider {
        min-height: 180px;
        padding: 10px;
    }
    .slider-arrow {
        font-size: 1.5rem;
        width: 32px;
        height: 32px;
    }
    .slider-dot {
        width: 9px;
        height: 9px;
    }
} 