/* ========================================
   NABOOGH CONSULTANCY - MAIN STYLESHEET
   Colors: Primary Blue (#0d6efd), Success Green (#198754)
   ======================================== */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-blue: #0d6efd;
    --success-green: #198754;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ===== NAVBAR CUSTOMIZATION ===== */
.navbar {
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
}

.navbar-brand small {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--success-green);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--success-green) !important;
}

/* ===== HERO CAROUSEL ===== */
.carousel-item {
    height: 600px;
    background: linear-gradient(45deg, var(--primary-blue), var(--success-green));
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    opacity: 0.85;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    max-width: 800px;
    margin: 0 auto;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2rem !important;
    animation: slideUp 1s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.carousel-caption .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== SECTION STYLES ===== */
section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--success-green);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== STATS SECTION ===== */
.stats-item {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stats-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.15);
}

.stats-item .display-4 {
    color: var(--success-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ===== TEAM SECTION ===== */
.team-card {
    position: relative;
    overflow: hidden;
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(33,37,41,0.9), transparent);
    padding: 1rem;
    transition: var(--transition);
    text-align: center;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.team-social a:hover {
    color: var(--success-green);
    transform: translateY(-3px);
}

/* ===== PROJECT CARDS ===== */
.project-card {
    position: relative;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 1rem 0;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--success-green);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--success-green);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.8rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--success-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.btn-submit {
    background: var(--success-green);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* ===== FAQ SECTION ===== */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-blue);
    background: white;
    padding: 1.2rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(45deg, var(--primary-blue), var(--success-green));
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* ===== TIMELINE (CAREERS) ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--success-green);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    width: calc(50% - 30px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--success-green);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-bg);
    color: white;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--success-green));
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--success-green) !important;
    padding-left: 5px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--success-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: var(--transition);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--success-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 1rem !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item::before {
        left: 30px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        display: none;
    }
}