/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #0066CC;
    --secondary-color: #FF6600;
    --whatsapp-color: #25D366;
    --danger-color: #D32F2F;
    --dark-bg: #222222;
    --light-bg: #F5F5F5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --overlay: rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 102, 204, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.logo-icon {
    font-size: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.nav-menu a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px var(--shadow);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004999 100%);
    background-image: url('../images/coolage2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

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

.btn-primary:hover {
    background: #0052a3;
}

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

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
}

.btn-icon {
    font-size: 1.5rem;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-image {
    height: 200px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 1.5rem;
    text-align: center;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Offers Section
   =================================== */
.offers-section {
    padding: 4rem 0;
    background: #FFF9E6;
}

.offers-title {
    color: var(--danger-color);
}

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

.offer-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease;
}

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

.offer-orange {
    border-color: #FF9800;
}

.offer-green {
    border-color: #4CAF50;
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offer-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.offer-orange .offer-title {
    color: #FF9800;
}

.offer-green .offer-title {
    color: #4CAF50;
}

.offer-desc {
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===================================
   Articles Section
   =================================== */
.articles-section {
    padding: 4rem 0;
    background: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-image {
    height: 200px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 1.25rem;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 4rem 0;
    background: var(--dark-bg);
    color: var(--white);
}

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

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-location {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-map {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.map-placeholder {
    height: 200px;
    background: #333333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.125rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.copyright {
    text-align: center;
    color: #999999;
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* ===================================
   Floating Action Buttons
   =================================== */
.fab-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 15px var(--shadow-hover);
    transition: all 0.3s ease;
    animation: fabPulse 2s ease-in-out infinite;
}

.fab:hover {
    transform: scale(1.05);
    animation: none;
}

.fab-whatsapp {
    background: var(--whatsapp-color);
}

.fab-phone {
    background: var(--primary-color);
}

.fab-icon {
    font-size: 1.875rem;
}

.fab-text {
    font-size: 1.125rem;
}

@keyframes fabPulse {

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

    50% {
        transform: scale(1.05) rotate(2deg);
    }
}

/* Mobile FAB */
@media (max-width: 768px) {
    .fab-container {
        left: 1rem;
        bottom: 1rem;
    }

    .fab {
        padding: 0.75rem 1.25rem;
    }

    .fab-text {
        font-size: 1rem;
    }
}

/* ===================================
   Modal
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 25px 25px 0 0;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-handle {
    width: 50px;
    height: 5px;
    background: #CCCCCC;
    border-radius: 10px;
    margin: 0 auto 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: var(--light-bg);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.modal-body {
    padding: 1rem 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ===================================
   Social Links
   =================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link.tiktok:hover {
    background: #000000;
    color: #fff;
    border-color: #000000;
}

.social-link.snapchat:hover {
    background: #FFFC00;
    color: #000000;
    border-color: #FFFC00;
}

.social-link.facebook:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
    border-color: transparent;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }

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

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

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

@media (min-width: 769px) and (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {

    .header,
    .fab-container,
    .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero-section {
        background: none;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-overlay {
        display: none;
    }
}

/* ===================================
   Utility Classes for Inline Style Removal
   =================================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-15 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 3rem;
}

.pt-2 {
    padding-top: 2rem;
}

.areas-section {
    padding: 60px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.areas-section p {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.areas-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-area {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.2rem;
}

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

.btn-secondary:hover {
    background: #e55a00;
}

/* Footer Links */
.footer-links {
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-links a {
    color: #bbb;
    margin: 0 10px;
}

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

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

.btn-cta:hover {
    background-color: var(--light-bg);
}

/* Article Page Styles */
.article-page-container {
    padding-top: 120px;
    padding-bottom: 60px;
}

.article-hero-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 2rem;
    max-height: 400px;
    object-fit: cover;
}

.share-buttons {
    margin: 2rem 0 3rem;
    text-align: center;
}

.share-buttons h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.share-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1.5rem;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-share {
    background-color: #25D366;
}

.btn-twitter-share {
    background-color: #1DA1F2;
}

.btn-facebook-share {
    background-color: #4267B2;
}

.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-article-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    background: white;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-3px);
}

.related-article-image {
    height: 180px;
    overflow: hidden;
}

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

.related-article-content {
    padding: 1.5rem;
}

.related-article-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-article-content a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-article-content a:hover {
    color: var(--primary-color);
}

.article-cta {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.article-cta h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* Hero Background Variants */
.hero-dammam {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/coolage1.jpg');
}

.hero-khobar {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/coolage2.jpg');
}

.hero-jubail {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/coolage3.jpg');
}

/* Footer Styles */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 40px 0;
    text-align: center;
}