/* ===================================
   Ayab Projects - Main Stylesheet
   =================================== */

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e67e22;
    --accent-dark: #d35400;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border: #e0e0e0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-dark); }

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

/* === NAVBAR === */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    padding: 15px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(26, 26, 46, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.navbar .container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar .logo {
    display: flex; align-items: center;
}
.logo-img {
    height: 55px; width: auto; object-fit: contain;
    transition: opacity 0.3s;
}
.navbar.scrolled .logo-img { height: 45px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    color: #ccc; font-weight: 500; transition: color 0.3s;
    padding: 5px 0; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.mobile-toggle {
    display: none; background: none; border: none; color: #fff;
    font-size: 1.5rem; cursor: pointer;
}

/* === NAV DROPDOWN === */
.nav-dropdown {
    position: relative;
}
.nav-dropdown .dropdown-toggle i {
    font-size: 0.7rem; margin-left: 4px; transition: transform 0.3s;
}
.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}
.nav-dropdown .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--primary); border-radius: 8px;
    min-width: 220px; padding: 10px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    list-style: none; z-index: 1001;
    margin-top: 10px;
}
.nav-dropdown .dropdown-menu::before {
    content: ''; position: absolute; top: -8px; left: 20px;
    border-left: 8px solid transparent; border-right: 8px solid transparent;
    border-bottom: 8px solid var(--primary);
}
.nav-dropdown:hover .dropdown-menu {
    display: block;
}
.nav-dropdown .dropdown-menu li {
    list-style: none;
}
.nav-dropdown .dropdown-menu a {
    display: block; padding: 10px 20px; color: #ccc;
    font-size: 0.95rem; transition: all 0.2s; white-space: nowrap;
}
.nav-dropdown .dropdown-menu a:hover {
    background: rgba(230,126,34,0.15); color: var(--accent);
    padding-left: 25px;
}

/* === HERO SLIDER === */
.hero-slider {
    min-height: 64vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    background: var(--primary);
}
.slider-wrapper {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.25);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-slider h1 {
    font-size: 3rem; font-weight: 700; margin-bottom: 20px;
    line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-slider h1 span { color: var(--accent); }
.hero-slider p { font-size: 1.2rem; color: #eee; margin-bottom: 30px; line-height: 1.8; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.btn-hero {
    display: inline-block; padding: 15px 40px;
    background: var(--accent); color: var(--white);
    border-radius: 50px; font-weight: 600; font-size: 1.1rem;
    transition: all 0.3s; border: none; cursor: pointer;
}
.btn-hero:hover {
    background: var(--accent-dark); transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230,126,34,0.4);
    color: var(--white);
}
.slider-dots {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); z-index: 3;
    display: flex; gap: 10px;
}
.slider-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: background 0.3s;
}
.slider-dots .dot.active { background: var(--accent); }

/* === SECTIONS === */
.section { padding: 80px 20px; }
.section .container { max-width: 1200px; margin: 0 auto; }
.section-title {
    text-align: center; margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem; font-weight: 700; color: var(--primary);
    margin-bottom: 10px;
}
.section-title p { color: var(--text-light); font-size: 1.1rem; }
.section-title .underline {
    width: 60px; height: 3px; background: var(--accent);
    margin: 15px auto 0;
}

.bg-light { background: var(--light-bg); }
.bg-dark {
    background: var(--primary); color: var(--white);
}
.bg-dark .section-title h2 { color: var(--white); }

/* === ABOUT === */
.about-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    align-items: center;
}
.about-text p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 15px; }
.about-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 25px;
}
.about-feature {
    display: flex; align-items: center; gap: 12px;
}
.about-feature i {
    color: var(--accent); font-size: 1.2rem; width: 40px; height: 40px;
    background: rgba(230,126,34,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.about-image {
    background: var(--primary-light); border-radius: 15px;
    height: 400px; display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 4rem; position: relative; overflow: hidden;
}
.about-image img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 15px;
}

/* === SERVICES === */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.service-card {
    background: var(--white); border-radius: 15px; padding: 35px 25px;
    text-align: center; transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    cursor: pointer; position: relative; overflow: hidden;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px; background: var(--accent);
    transform: scaleX(0); transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(230,126,34,0.1); margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.service-card .icon i { font-size: 1.8rem; color: var(--accent); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--primary); }
.service-card p { color: var(--text-light); font-size: 0.95rem; }
.service-card .learn-more {
    display: inline-block; margin-top: 15px; color: var(--accent);
    font-weight: 600; font-size: 0.9rem;
}
.service-card .learn-more i { margin-left: 5px; transition: margin 0.3s; }
.service-card:hover .learn-more i { margin-left: 10px; }

/* === LATEST PROJECTS === */
.project-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 24px; border: 2px solid var(--border); background: var(--white);
    border-radius: 50px; font-size: 0.95rem; font-weight: 500;
    color: var(--text-dark); cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent); color: var(--white); border-color: var(--accent);
}
.gallery-service-title {
    font-size: 1.5rem; color: var(--primary); margin-bottom: 25px; text-align: center;
}
.gallery-service-title i {
    color: var(--accent); margin-right: 8px;
}
.projects-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.project-item {
    border-radius: 12px; overflow: hidden; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.project-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}
.project-item img {
    width: 100%; height: 220px; object-fit: cover; display: block;
}
.project-caption {
    background: var(--primary); color: #ccc; padding: 8px 12px;
    font-size: 0.85rem; text-align: center;
}
.no-projects {
    text-align: center; color: var(--text-light); font-size: 1.05rem;
    padding: 40px 0;
}

/* Project Lightbox */
.project-lightbox {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); z-index: 3000;
    align-items: center; justify-content: center;
}
.project-lightbox.active { display: flex; }
.project-lightbox img {
    max-width: 85%; max-height: 85%; border-radius: 8px;
    object-fit: contain;
}
.plb-close {
    position: absolute; top: 20px; right: 30px;
    color: #fff; font-size: 2.5rem; cursor: pointer;
    transition: color 0.3s; z-index: 3001;
}
.plb-close:hover { color: var(--accent); }
.plb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 50px; height: 50px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    z-index: 3001;
}
.plb-nav:hover { background: var(--accent); }
.plb-prev { left: 20px; }
.plb-next { right: 20px; }
.plb-counter {
    position: absolute; bottom: 25px; left: 50%;
    transform: translateX(-50%);
    color: #ccc; font-size: 0.95rem; z-index: 3001;
}

/* === CTA === */
.cta-section {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    text-align: center; padding: 60px 20px; color: var(--white);
}
.cta-section h2 { font-size: 2rem; margin-bottom: 20px; }
.cta-section .btn-cta {
    display: inline-block; padding: 15px 40px;
    background: var(--white); color: var(--accent);
    border-radius: 50px; font-weight: 600; font-size: 1.1rem;
    transition: all 0.3s;
}
.cta-section .btn-cta:hover {
    background: var(--primary); color: var(--white);
    transform: translateY(-2px);
}

/* === TESTIMONIALS === */
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.testimonial-card {
    background: var(--white); border-radius: 15px; padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: relative;
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 15px; font-size: 1.1rem; }
.testimonial-card .quote { color: var(--text-light); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-card .client {
    display: flex; align-items: center; gap: 12px;
}
.testimonial-card .client-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--accent); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-card .client-avatar-img {
    width: 45px; height: 45px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--accent);
}
.testimonial-card .client-name { font-weight: 600; color: var(--primary); }
.testimonial-card .client-role { font-size: 0.85rem; color: var(--text-light); }

/* === QUOTE FORM === */
.quote-section { background: var(--light-bg); }
.quote-form {
    max-width: 700px; margin: 0 auto;
    background: var(--white); border-radius: 15px; padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.quote-form .form-group { margin-bottom: 20px; }
.quote-form label {
    display: block; margin-bottom: 8px; font-weight: 600;
    color: var(--primary);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%; padding: 12px 15px; border: 2px solid var(--border);
    border-radius: 8px; font-size: 1rem; transition: border-color 0.3s;
    font-family: inherit;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none; border-color: var(--accent);
}
.quote-form .btn-submit {
    width: 100%; padding: 15px; background: var(--accent);
    color: var(--white); border: none; border-radius: 8px;
    font-size: 1.1rem; font-weight: 600; cursor: pointer;
    transition: background 0.3s;
}
.quote-form .btn-submit:hover { background: var(--accent-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* === FOOTER === */
.footer {
    background: var(--primary); color: #ccc; padding: 15px 20px 5px;
}
.footer .container { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px;
    margin-bottom: 10px;
}
.footer h4 { color: var(--white); margin-bottom: 8px; font-size: 0.95rem; }
.footer p { margin-bottom: 4px; font-size: 0.8rem; }
.footer .company-desc { color: #999; line-height: 1.4; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { color: #999; transition: color 0.3s; font-size: 0.8rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact i { color: var(--accent); width: 16px; margin-right: 6px; }
.footer-bottom {
    border-top: 1px solid #333; padding-top: 8px; text-align: center;
    color: #666; font-size: 0.8rem;
}

/* === SERVICE DETAIL PAGE === */
.service-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 140px 20px 60px; text-align: center; color: var(--white);
    position: relative; overflow: hidden;
}
.service-hero.service-hero-img {
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.service-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 20, 40, 0.68); z-index: 1;
}
.service-hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.service-hero p { color: #ddd; font-size: 1.1rem; }

/* 4-image preview row */
.service-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.service-preview-item {
    border-radius: 12px; overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-preview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.service-preview-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.service-detail { padding: 60px 20px; }
.service-detail .container { max-width: 1000px; margin: 0 auto; }
.service-detail-content { line-height: 1.8; color: var(--text-light); font-size: 1.05rem; }
.service-detail-content p { margin-bottom: 20px; }

.service-gallery { padding: 40px 20px 80px; }
.service-gallery .container { max-width: 1200px; margin: 0 auto; }
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-item {
    border-radius: 10px; overflow: hidden; cursor: pointer;
    transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img {
    width: 100%; height: 250px; object-fit: cover;
    display: block;
}
.gallery-item .caption {
    background: var(--primary); color: #ccc; padding: 10px 15px;
    font-size: 0.9rem;
}

/* === LIGHTBOX === */
.lightbox {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000;
    align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; }
.lightbox .close-btn {
    position: absolute; top: 20px; right: 30px;
    color: #fff; font-size: 2rem; cursor: pointer;
}

/* === ALERT === */
.alert {
    max-width: 700px; margin: 20px auto; padding: 15px 20px;
    border-radius: 8px; text-align: center;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* === TERMS & CONDITIONS === */
.terms-content {
    max-width: 900px; margin: 0 auto;
}
.terms-updated {
    background: var(--light-bg); padding: 12px 20px; border-radius: 8px;
    color: var(--text-light); font-size: 0.95rem; margin-bottom: 35px;
    border-left: 4px solid var(--accent);
}
.terms-updated i { color: var(--accent); margin-right: 8px; }
.terms-section {
    margin-bottom: 30px; padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}
.terms-section:last-child { border-bottom: none; }
.terms-section h2 {
    font-size: 1.3rem; color: var(--primary); margin-bottom: 12px;
    font-weight: 700;
}
.terms-section p {
    color: var(--text-light); line-height: 1.8; margin-bottom: 10px;
}
.terms-section ul {
    list-style: none; padding: 0; margin: 10px 0;
}
.terms-section ul li {
    color: var(--text-light); line-height: 1.8; padding: 5px 0 5px 24px;
    position: relative;
}
.terms-section ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; color: var(--accent); font-size: 0.8rem; top: 8px;
}
.terms-contact {
    background: var(--light-bg); padding: 20px 25px; border-radius: 10px;
    margin-top: 15px;
}
.terms-contact p {
    margin-bottom: 8px; color: var(--text-dark);
}
.terms-contact i {
    color: var(--accent); width: 20px; margin-right: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .service-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0;
        width: 100%; background: var(--primary);
        flex-direction: column; gap: 0; padding: 20px;
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 10px 0; }
    .nav-dropdown .dropdown-menu {
        position: static; box-shadow: none; margin-top: 0;
        padding-left: 15px; background: rgba(255,255,255,0.05);
        border-radius: 0;
    }
    .nav-dropdown .dropdown-menu::before { display: none; }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .hero h1 { font-size: 2rem; }
    .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .service-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-item img { height: 180px; }
    .plb-nav { width: 40px; height: 40px; font-size: 1rem; }
    .plb-prev { left: 10px; }
    .plb-next { right: 10px; }
}
