:root {
    --primary-dark: #0d1b2a;
    --primary-light: #1b4965;
    --accent-sky: #62b6cb;
    --accent-orange: #f39c12;
    --light-bg: #ffffff;
    --dark-text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-weight: 700;
}

/* ===== Navbar Styles ===== */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(98, 182, 203, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    padding: 10px 0;
    transition: all 0.4s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.navbar.scrolled .navbar-logo {
    height: 70px;
}

.navbar-nav {
    gap: 5px;
}

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 25px 18px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    position: relative;
}

.navbar.scrolled .navbar-nav .nav-link {
    padding: 15px 18px !important;
}

.navbar-nav .nav-link .nav-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover .nav-icon {
    transform: translateY(-3px);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-sky), var(--accent-orange));
    transition: all 0.4s ease;
    transform: translateX(50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-sky) !important;
    background: linear-gradient(180deg, transparent 0%, rgba(98, 182, 203, 0.05) 100%);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-btn {
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    color: white !important;
    box-shadow: 0 4px 15px rgba(98, 182, 203, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    box-shadow: 0 6px 25px rgba(98, 182, 203, 0.4);
    transform: translateY(-2px);
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

.admin-btn {
    background: linear-gradient(135deg, var(--accent-orange), #e67e22);
    color: white !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.admin-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: 2px solid var(--accent-sky);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(98, 182, 203, 0.1);
    border-color: var(--accent-orange);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(98, 182, 203, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: none !important;
}

.navbar-toggler-icon i {
    color: var(--accent-sky);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon i {
    color: var(--accent-orange);
    transform: rotate(90deg);
}

/* ===== Page Header Modern ===== */
.page-header-modern {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 140px 0 100px;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(98, 182, 203, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.15) 0%, transparent 50%);
    opacity: 0.6;
}

.page-header-modern .container {
    position: relative;
    z-index: 2;
}

.page-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(98, 182, 203, 0.2);
    border: 2px solid rgba(98, 182, 203, 0.5);
    border-radius: 50px;
    color: var(--accent-sky);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-sky), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ===== Stats Section ===== */
.about-stats-modern {
    padding: 80px 0;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card-modern {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
}

.stat-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-sky);
}

.stat-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.stat-card-modern:hover .stat-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon-modern i {
    font-size: 2rem;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* ===== Story Section ===== */
.story-section-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, white 0%, #f8f9fa 100%);
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(98, 182, 203, 0.1);
    border: 2px solid rgba(98, 182, 203, 0.3);
    border-radius: 50px;
    color: var(--accent-sky);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.section-title-modern {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.story-content {
    margin: 30px 0;
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.story-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(98, 182, 203, 0.05);
    border-radius: 10px;
    border-right: 4px solid var(--accent-sky);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(98, 182, 203, 0.1);
    transform: translateX(-5px);
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--accent-sky);
}

.feature-item span {
    font-weight: 600;
    color: var(--primary-dark);
}

.story-image-wrapper {
    position: relative;
}

.experience-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.badge-content {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-orange), #e67e22);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
    animation: float 3s ease-in-out infinite;
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.badge-text {
    font-size: 0.85rem;
    color: white;
    margin-top: 5px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.story-video {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.story-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Vision Mission Section ===== */
.vision-mission-modern {
    padding: 80px 0;
    background: white;
}

.vision-card-modern,
.mission-card-modern {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
}

.vision-card-modern:hover,
.mission-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-decoration {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.1;
}

.vision-card-modern .card-decoration {
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
}

.mission-card-modern .card-decoration {
    background: linear-gradient(135deg, var(--accent-orange), #e67e22);
}

.card-icon-wrapper {
    margin-bottom: 30px;
}

.card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mission-card-modern .card-icon {
    background: linear-gradient(135deg, var(--accent-orange), #e67e22);
}

.vision-card-modern:hover .card-icon,
.mission-card-modern:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.card-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* ===== Matrouh Section ===== */
.matrouh-section-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.matrouh-video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.matrouh-video-wrapper:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 4rem;
    color: white;
}

.matrouh-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.matrouh-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.matrouh-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.matrouh-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.matrouh-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.matrouh-feature-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.matrouh-feature-item .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.matrouh-feature-item .feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.matrouh-quote {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(98, 182, 203, 0.1), rgba(243, 156, 18, 0.1));
    border-right: 4px solid var(--accent-sky);
    border-radius: 10px;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary-dark);
    position: relative;
}

.matrouh-quote i {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: var(--accent-sky);
    opacity: 0.3;
}

/* ===== Services Section ===== */
.services-section-modern {
    padding: 100px 0;
    background: white;
}

.service-card-modern {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-sky);
}

.service-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(98, 182, 203, 0.1), rgba(98, 182, 203, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-modern {
    background: linear-gradient(135deg, var(--accent-sky), var(--primary-light));
    transform: scale(1.1) rotate(5deg);
}

.service-icon-modern i {
    font-size: 2rem;
    color: var(--accent-sky);
    transition: color 0.3s ease;
}

.service-card-modern:hover .service-icon-modern i {
    color: white;
}

.service-card-modern h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.service-card-modern p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ===== Team Section ===== */
/* .team-section-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.team-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.team-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.team-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card-modern:hover .team-image-wrapper img {
    transform: scale(1.1);
}

.team-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 27, 42, 0.95) 100%);
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.team-card-modern:hover .team-name-overlay {
    transform: translateY(0);
}

.team-name-overlay h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-align: center;
}

.team-info {
    padding: 30px;
    text-align: center;
}

.team-role {
    color: var(--accent-sky);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.team-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
} */

/* ===== CTA Section ===== */
.cta-section-modern {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 100px 0;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(98, 182, 203, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.2) 0%, transparent 50%);
    opacity: 0.5;
}

.cta-section-modern .container {
    position: relative;
    z-index: 2;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: pulse 2s infinite;
}

.cta-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-cta-primary:hover {
    background: var(--accent-sky);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(98, 182, 203, 0.4);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
    transform: translateY(-5px);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--light-bg);
    color: var(--dark-text);
    padding-top: 80px;
    border-top: 1px solid #eee;
}

.footer-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.footer h5 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-orange);
    bottom: 0;
}

[dir="rtl"] .footer h5:after {
    right: 0;
}

[dir="ltr"] .footer h5:after {
    left: 0;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-right: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 10px;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: translateY(-5px);
}

.copyright {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
}

.maay {
    color: chocolate;
    text-decoration: none;
    font-weight: 600;
}

.maay:hover {
    color: var(--accent-sky);
}

/* ===== Responsive Design ===== */

/* ========================================
   RESPONSIVE MEDIA QUERIES - ABOUT PAGE
   ======================================== */

/* Nest Hub Max (1280x800) */
@media (min-width: 1200px) and (max-width: 1366px) and (max-height: 850px) {
    /* Navbar */
    .navbar {
        padding: 0 !important;
    }

    .navbar-logo {
        height: 28px;
    }

    .navbar-brand {
        padding: 2px 0;
    }

    .navbar-nav .nav-link {
        font-size: 0.55rem;
        padding: 4px 4px !important;
    }

    .navbar-nav .nav-link .nav-icon {
        font-size: 0.8rem;
    }

    .nav-action-btn {
        padding: 2px 5px;
        font-size: 0.55rem;
    }

    .nav-action-btn i {
        font-size: 0.8rem;
    }

    .navbar-actions {
        padding: 0 8px;
        gap: 5px;
    }

    /* Page Header */
    .page-header-modern {
        padding: 80px 0 60px;
        min-height: 50vh;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .about-stats-modern {
        padding: 50px 0;
        margin-top: -40px;
    }

    .stat-card-modern {
        padding: 30px 20px;
    }

    .stat-icon-modern {
        width: 65px;
        height: 65px;
    }

    .stat-icon-modern i {
        font-size: 1.6rem;
    }

    .stat-number {
        font-size: 2.3rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .story-section-modern,
    .vision-mission-modern,
    .matrouh-section-modern,
    .services-section-modern {
        padding: 60px 0;
    }

    .section-title-modern {
        font-size: 2.2rem;
    }

    .story-text {
        font-size: 0.95rem;
    }

    .experience-badge .badge-content {
        width: 100px;
        height: 100px;
    }

    .badge-number {
        font-size: 2rem;
    }

    .badge-text {
        font-size: 0.75rem;
    }

    .card-icon {
        width: 75px;
        height: 75px;
    }

    .card-icon i {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 0.95rem;
    }

    .matrouh-subtitle {
        font-size: 1.7rem;
    }

    .matrouh-description {
        font-size: 0.95rem;
    }

    .matrouh-feature-item {
        padding: 15px;
    }

    .matrouh-feature-item .feature-icon {
        width: 50px;
        height: 50px;
    }

    .matrouh-feature-item .feature-icon i {
        font-size: 1.2rem;
    }

    .feature-content h5 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }

    .service-card-modern {
        padding: 30px 20px;
    }

    .service-icon-modern {
        width: 65px;
        height: 65px;
    }

    .service-icon-modern i {
        font-size: 1.6rem;
    }

    .service-card-modern h4 {
        font-size: 1.1rem;
    }

    .service-card-modern p {
        font-size: 0.85rem;
    }

    .cta-section-modern {
        padding: 60px 0;
    }

    .cta-icon {
        width: 80px;
        height: 80px;
    }

    .cta-icon i {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* Large Tablets (992px - 1199px) */
@media (max-width: 1199px) {
    /* Navbar */
    .navbar {
        padding: 0 !important;
    }

    .navbar-logo {
        height: 60px;
    }

    .navbar-brand {
        padding: 3px 0;
    }

    .navbar-nav .nav-link {
        font-size: 0.55rem;
        padding: 8px 8px !important;
    }

    .nav-action-btn {
        padding: 4px 5px;
        font-size: 0.75rem;
    }

    .navbar-actions {
        padding: 0 10px;
    }

    /* Page Content */
    .page-title {
        font-size: 3rem;
    }

    .section-title-modern {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.7rem;
    }
}

/* iPad Pro & Tablets (768px - 991px) */
@media (max-width: 991px) {
    /* Navbar */
    .navbar {
        padding: 0 !important;
    }

    .navbar-logo {
        height: 35px;
    }

    .navbar-brand {
        padding: 2px 0;
    }

    .navbar-nav .nav-link {
        font-size: 0.65rem;
        padding: 6px 6px !important;
    }

    .nav-action-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    .navbar-actions {
        padding: 0 8px;
        gap: 6px;
    }
    
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .navbar-collapse .navbar-nav .nav-link {
        padding: 15px 20px !important;
        border-radius: 10px;
        margin-bottom: 5px;
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link::before {
        display: none;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: linear-gradient(90deg, rgba(98, 182, 203, 0.1), rgba(243, 156, 18, 0.1));
        transform: translateX(-5px);
    }
    
    .navbar-collapse .navbar-actions {
        flex-direction: column;
        width: 100%;
        padding: 15px 0 0 0;
        gap: 10px;
        border-top: 2px solid rgba(98, 182, 203, 0.2);
        margin-top: 15px;
    }
    
    .navbar-collapse .nav-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Page Header */
    .page-header-modern {
        padding: 110px 0 80px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }

    .page-description {
        font-size: 1.05rem;
    }

    .about-stats-modern {
        padding: 60px 0;
    }

    .stat-card-modern {
        padding: 35px 25px;
    }
    
    .section-title-modern {
        font-size: 2.2rem;
    }

    .story-section-modern,
    .vision-mission-modern,
    .matrouh-section-modern,
    .services-section-modern {
        padding: 80px 0;
    }
}

/* Nest Hub & Landscape Tablets (768px - 1024px, height ≤ 900px) */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 900px) {
    /* Navbar */
    .navbar {
        padding: 0 !important;
    }

    .navbar-logo {
        height: 32px;
    }

    .navbar-brand {
        padding: 2px 0;
    }

    .navbar-nav .nav-link {
        font-size: 0.6rem;
        padding: 5px 5px !important;
    }

    .nav-action-btn {
        padding: 3px 6px;
        font-size: 0.6rem;
    }

    .navbar-actions {
        padding: 0 8px;
        gap: 5px;
    }

    /* Page Header */
    .page-header-modern {
        padding: 70px 0 50px;
        min-height: 45vh;
    }

    .page-badge {
        padding: 6px 18px;
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .page-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-description {
        font-size: 0.95rem;
    }

    .about-stats-modern {
        padding: 45px 0;
        margin-top: -35px;
    }

    .stat-card-modern {
        padding: 25px 20px;
    }

    .stat-icon-modern {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }

    .stat-icon-modern i {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .story-section-modern,
    .vision-mission-modern,
    .matrouh-section-modern,
    .services-section-modern {
        padding: 55px 0;
    }

    .section-badge {
        padding: 6px 16px;
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .section-title-modern {
        font-size: 1.9rem;
        margin-bottom: 25px;
    }

    .story-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .feature-item {
        padding: 12px 15px;
        gap: 10px;
    }

    .feature-item i {
        font-size: 1.1rem;
    }

    .feature-item span {
        font-size: 0.9rem;
    }

    .experience-badge {
        top: 20px;
        right: 20px;
    }

    .experience-badge .badge-content {
        width: 90px;
        height: 90px;
    }

    .badge-number {
        font-size: 1.8rem;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-icon i {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .vision-card-modern,
    .mission-card-modern {
        padding: 35px 30px;
    }

    .matrouh-subtitle {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .matrouh-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .matrouh-feature-item {
        padding: 15px;
        gap: 15px;
    }

    .matrouh-feature-item .feature-icon {
        width: 50px;
        height: 50px;
    }

    .matrouh-feature-item .feature-icon i {
        font-size: 1.2rem;
    }

    .feature-content h5 {
        font-size: 0.95rem;
    }

    .feature-content p {
        font-size: 0.8rem;
    }

    .matrouh-quote {
        padding: 18px;
        font-size: 0.9rem;
    }

    .service-card-modern {
        padding: 30px 20px;
    }

    .service-icon-modern {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }

    .service-icon-modern i {
        font-size: 1.6rem;
    }

    .service-card-modern h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .service-card-modern p {
        font-size: 0.85rem;
    }

    .cta-section-modern {
        padding: 55px 0;
    }

    .cta-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 25px;
    }

    .cta-icon i {
        font-size: 2.2rem;
    }

    .cta-title {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }

    .cta-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .cta-buttons {
        gap: 15px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Nest Hub (1024x600) */
@media (min-width: 1000px) and (max-width: 1100px) and (max-height: 650px) {
    /* Navbar */
    .navbar {
        padding: 0 !important;
    }

    .navbar-logo {
        height: 30px;
    }

    .navbar-brand {
        padding: 2px 0;
    }

    .navbar-nav .nav-link {
        font-size: 0.6rem;
        padding: 5px 4px !important;
    }

    .nav-action-btn {
        padding: 2px 5px;
        font-size: 0.6rem;
    }

    .navbar-actions {
        padding: 0 6px;
        gap: 4px;
    }

    /* Page Header */
    .page-header-modern {
        padding: 60px 0 40px;
        min-height: 40vh;
    }

    .page-badge {
        padding: 5px 15px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .page-title {
        font-size: 1.9rem;
        margin-bottom: 12px;
    }

    .page-description {
        font-size: 0.85rem;
    }

    .about-stats-modern {
        padding: 35px 0;
        margin-top: -30px;
    }

    .stat-card-modern {
        padding: 20px 15px;
    }

    .stat-icon-modern {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .stat-icon-modern i {
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .story-section-modern,
    .vision-mission-modern,
    .matrouh-section-modern,
    .services-section-modern {
        padding: 45px 0;
    }

    .section-badge {
        padding: 5px 14px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .section-title-modern {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .story-text {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .story-features {
        gap: 10px;
        margin-top: 20px;
    }

    .feature-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .feature-item i {
        font-size: 1rem;
    }

    .feature-item span {
        font-size: 0.8rem;
    }

    .experience-badge {
        top: 15px;
        right: 15px;
    }

    .experience-badge .badge-content {
        width: 75px;
        height: 75px;
    }

    .badge-number {
        font-size: 1.5rem;
    }

    .badge-text {
        font-size: 0.65rem;
    }

    .vision-card-modern,
    .mission-card-modern {
        padding: 30px 25px;
    }

    .card-icon-wrapper {
        margin-bottom: 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .card-description {
        font-size: 0.8rem;
    }

    .matrouh-subtitle {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .matrouh-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .matrouh-features {
        gap: 12px;
    }

    .matrouh-feature-item {
        padding: 12px;
        gap: 12px;
    }

    .matrouh-feature-item .feature-icon {
        width: 45px;
        height: 45px;
    }

    .matrouh-feature-item .feature-icon i {
        font-size: 1.1rem;
    }

    .feature-content h5 {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .feature-content p {
        font-size: 0.75rem;
    }

    .matrouh-quote {
        padding: 15px;
        font-size: 0.8rem;
        margin-top: 20px;
    }

    .matrouh-quote i {
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }

    .service-card-modern {
        padding: 25px 18px;
    }

    .service-icon-modern {
        width: 55px;
        height: 55px;
        margin-bottom: 18px;
    }

    .service-icon-modern i {
        font-size: 1.4rem;
    }

    .service-card-modern h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .service-card-modern p {
        font-size: 0.75rem;
    }

    .cta-section-modern {
        padding: 45px 0;
    }

    .cta-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }

    .cta-icon i {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .cta-description {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }

    .cta-buttons {
        gap: 12px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 10px 22px;
        font-size: 0.85rem;
        gap: 6px;
    }
}

/* Mobile & Small Tablets (576px - 767px) */
@media (max-width: 767px) {
    /* Navbar */
    .navbar-logo {
        height: 70px;
    }
    
    /* Page Header */
    .page-header-modern {
        padding: 100px 0 70px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .section-title-modern {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-stats-modern {
        padding: 60px 0;
    }
    
    .story-section-modern,
    .vision-mission-modern,
    .matrouh-section-modern,
    .services-section-modern {
        padding: 70px 0;
    }
    
    .cta-section-modern {
        padding: 70px 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .experience-badge {
        top: 20px;
        right: 20px;
    }
    
    .badge-content {
        width: 100px;
        height: 100px;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }

    .matrouh-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .matrouh-feature-item .feature-icon {
        margin: 0 auto;
    }
}

/* Mobile Phones (< 576px) */
@media (max-width: 575px) {
    /* Navbar */
    .navbar-logo {
        height: 60px;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 12px 15px !important;
    }

    .nav-action-btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    /* Page Header */
    .page-header-modern {
        padding: 90px 0 60px;
    }

    .page-badge {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-description {
        font-size: 0.95rem;
    }
    
    .section-title-modern {
        font-size: 1.5rem;
    }

    .stat-card-modern {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .story-section-modern,
    .vision-mission-modern,
    .matrouh-section-modern,
    .services-section-modern {
        padding: 60px 0;
    }

    .service-card-modern {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 0.95rem;
    }
}

/* Extra Small Phones (< 400px) */
@media (max-width: 399px) {
    .page-title {
        font-size: 1.6rem;
    }

    .section-title-modern {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .badge-content {
        width: 85px;
        height: 85px;
    }

    .badge-number {
        font-size: 1.7rem;
    }
}
