/* 
    Style for شركة خبرة التصاميم للمقاولات العامة
    Colors:
    Primary (Gold): #be9c67
    Secondary (Dark Gray): #262626
    Light bg: #f9f9f9
    Border: #e2e8f0 
*/

:root {
    --primary-color: #be9c67;
    --primary-dark: #9f8051;
    --secondary-color: #262626;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #fdfdfd;
    --bg-gray: #f2f3f5;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-gray);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.highlight {
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn i {
    margin-right: 8px;
    margin-left: 0;
}

/* Header */
header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Add scrolling class via JS */
header.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

header.scrolled .nav-wrapper {
    height: 75px;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
}

.nav-links ul {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    margin-top: 0;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Light overlay to match image 1 text */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Projects Gallery Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.projects-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.project-card-modern.hide {
    display: none;
}

.project-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(190, 156, 103, 0.3);
}

.project-media {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.project-media.video-thumbnail {
    cursor: pointer;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card-modern:hover .project-media img {
    transform: scale(1.08);
}

.media-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgba(190, 156, 103, 0.95);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
}

.project-card-modern:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.15);
}

.project-card-content {
    padding: 25px;
}

.project-card-content h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.project-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3001;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

/* Clients Slider Section */
.clients {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    right: 0;
    background: linear-gradient(to left, var(--bg-gray), transparent);
}

.marquee-container::after {
    left: 0;
    background: linear-gradient(to right, var(--bg-gray), transparent);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 60px;
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
        /* Moves positively in X because RTL */
    }
}

.client-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    color: var(--text-muted);
    transition: var(--transition);
    opacity: 0.5;
}

.client-logo:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: scale(1.1);
}

.client-logo i {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.client-logo span {
    font-weight: 700;
    font-size: 1.05rem;
}

/* Brief Info Section */
.brief-section {
    background-color: var(--white);
}

.brief-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.brief-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.brief-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mini-service {
    background: var(--bg-gray);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mini-service:hover {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.mini-service i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.mini-service span {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.15rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-list strong {
    display: block;
    color: var(--secondary-color);
}

.contact-list span {
    color: var(--text-muted);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(190, 156, 103, 0.2);
}

/* Footer Section */
.footer {
    background-color: var(--secondary-color);
    color: #cccccc;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo-container {
    background-color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.footer-logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.footer-logo {
    height: 55px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.footer h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s;
    will-change: opacity, transform;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-right {
    /* Right corresponds to elements pushing from the right side towards left or just moving right. In RTL, "right" is the start side. */
    transform: translateX(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.appear {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

/* Responsive Design */
@media (max-width: 992px) {

    .brief-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: right 0.3s ease;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-wrapper {
        justify-content: center;
    }

    .logo-img {
        height: 45px;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-cta {
        display: none;
        /* Hide CTA in mobile for better spacing, or move into nav-links */
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .hero-content {
        text-align: center;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .brief-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .mini-service {
        padding: 20px 15px;
    }

    .mini-service i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .mini-service span {
        font-size: 1rem;
    }

    .project-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
        border-width: 1px;
    }

    .marquee-content {
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Floating Bottom Navigation (Mobile) */
    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        max-width: 400px;
        background-color: var(--white);
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 10px 20px;
        border: 1px solid var(--border-color);
        transition: transform 0.4s ease, opacity 0.4s ease, bottom 0.4s ease;
    }

    .mobile-bottom-nav.nav-hidden {
        transform: translateX(-50%) translateY(150%);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-bottom-nav ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: var(--text-muted);
        font-size: 0.8rem;
        font-weight: 700;
        position: relative;
    }

    .mobile-bottom-nav a i {
        font-size: 1.4rem;
        transition: var(--transition);
    }

    .mobile-bottom-nav a.active {
        color: #d32f2f;
        /* Red tone from reference or keep Gold */
    }

    .mobile-bottom-nav a.active i {
        color: var(--primary-color);
        transform: translateY(-3px);
    }

    .mobile-bottom-nav a.active span {
        color: var(--primary-dark);
    }

    /* Hide Top Nav Items */
    .mobile-toggle {
        display: none !important;
    }

    .nav-links {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ══════════════════════════════════════════
   Services Section
══════════════════════════════════════════ */
.services-section {
    background-color: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card-full {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card-full:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.7rem;
    color: var(--white);
}

.service-card-full h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.service-card-full p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.97rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.service-link i {
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card-full {
        padding: 20px 14px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .service-icon i {
        font-size: 1.3rem;
    }

    .service-card-full h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .service-card-full p {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .service-link {
        font-size: 0.85rem;
    }
}

/* ══════════════════════════════════════════
   PWA Install Popup
══════════════════════════════════════════ */
.pwa-install-popup {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    width: calc(100% - 40px);
    max-width: 480px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-color);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 0;
    overflow: hidden;
}

.pwa-install-popup.pwa-popup-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pwa-popup-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    flex-wrap: wrap;
}

.pwa-popup-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-gray);
    padding: 4px;
}

.pwa-popup-text {
    flex: 1;
    min-width: 140px;
}

.pwa-popup-text h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.pwa-popup-text p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.pwa-popup-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pwa-install-popup {
        bottom: 100px;
    }
}

/* ══════════════════════════════════════════
   Contact Form Validation & Alerts
══════════════════════════════════════════ */
.form-control.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.field-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group label .required {
    color: #e53e3e;
    margin-right: 3px;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #68d391;
    color: #276749;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.alert-success i {
    font-size: 1.2rem;
    color: #38a169;
}

/* Contact list link styling */
.contact-list a {
    color: inherit;
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--primary-color);
}

/* Project card h3 (semantic fix) */
.project-card-content h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

/* ══════════════════════════════════════════
   Hero subtitle (p tag now, was h2)
══════════════════════════════════════════ */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ══════════════════════════════════════════
   Floating WhatsApp Button
══════════════════════════════════════════ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

/* Floating Call Button */
.floating-call {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #be9c67;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-call:hover {
    background-color: #9f8051;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 110px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .floating-call {
        bottom: 170px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
/* ══════════════════════════════════════════
   Footer Developer Link
══════════════════════════════════════════ */
footer .enter-link {
    color: #c5a46d !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
}
footer .enter-link:hover {
    color: #a8864f !important;
}

/* ══════════════════════════════════════════
   Stats / Counters Section
══════════════════════════════════════════ */
.stats-section {
    background: linear-gradient(135deg, #262626 0%, #1a1a1a 50%, #2a2a2a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(190,156,103,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.stats-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(190,156,103,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.stats-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}
.stats-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}
.stats-header p {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}
.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(190,156,103,0.2);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #be9c67, #9f8051);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-card:hover {
    background: rgba(190,156,103,0.1);
    border-color: rgba(190,156,103,0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.stat-card:hover::before { opacity: 1; }
.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #be9c67, #9f8051);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(190,156,103,0.35);
    transition: all 0.3s ease;
}
.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(190,156,103,0.5);
}
.stat-icon i { font-size: 1.8rem; color: #ffffff; }
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #be9c67;
    line-height: 1;
    margin-bottom: 8px;
    direction: ltr;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}
.stat-suffix {
    font-size: 1.8rem;
    font-weight: 800;
    color: #be9c67;
}
.stat-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 10px 0 6px;
}
.stat-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin: 0;
}
.stat-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}
.stat-stars i { color: #be9c67; font-size: 0.9rem; }
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 576px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 22px 14px; }
    .stat-number { font-size: 2.1rem; }
    .stat-icon { width: 52px; height: 52px; }
    .stat-icon i { font-size: 1.3rem; }
    .stats-header h2 { font-size: 1.8rem; }
}

/* ══════════════════════════════════════════
   Utility: Full Width Override
   Used on .footer-bottom.full-width to break out of container padding
══════════════════════════════════════════ */
.footer-bottom.full-width {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Dark Mode Variables and Styles */
[data-theme="dark"] {
    --primary-color: #d4af37;
    --primary-dark: #be9c67;
    --secondary-color: #fdfdfd;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-light: #121212;
    --bg-gray: #1e1e1e;
    --white: #1a1a1a;
    --border-color: #333333;
    --shadow-sm: 0 4px 6px -1px rgba(255, 255, 255, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(255, 255, 255, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(255, 255, 255, 0.05);
}

.theme-toggle {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 1.1rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-left: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    outline: none;
}
.theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.theme-toggle .fa-sun { display: none; }

[data-theme="dark"] .theme-toggle {
    background-color: #2a2a2a;
    border-color: #444;
}
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: block; color: #f39c12; }

/* Fix Hero Overlay in Dark Mode */
[data-theme="dark"] .hero-overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* Fix Footer Background and Colors in Dark Mode */
[data-theme="dark"] .footer {
    background-color: #080808;
    border-top: 1px solid #333;
}
[data-theme="dark"] .footer-logo-container {
    background-color: #ffffff; /* Keep white to show logo clearly */
}
[data-theme="dark"] .footer h3 {
    color: var(--primary-color);
}
[data-theme="dark"] .footer-contact strong,
[data-theme="dark"] .footer-links a {
    color: #e0e0e0;
}

/* Fix Logos Visibility in Dark Mode */
[data-theme="dark"] .logo-img {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 5px 15px;
    border-radius: 8px;
}
