/* ============================================
   SAHARA DIGITAL - Main Stylesheet
   Converted from Next.js/React to PHP/Bootstrap
   ============================================ */

/* CSS Variables - Color Palette */
:root {
    --primary-color: #B64E27;
    --primary-dark: #9d4221;
    --secondary-color: #193A61;
    --dark-bg: #193A61;
    --darker-bg: #122a47;
    --light-bg: #F5F0E8;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-gray: #6b7280;
    --border-color: rgba(182, 78, 39, 0.2);
    --card-bg: rgba(25, 58, 97, 0.8);
    --gradient-gold: linear-gradient(135deg, #B64E27 0%, #d65b2d 50%, #B64E27 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #B64E27;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .dropdown:hover .nav-link.dropdown-toggle {
    color: #B64E27 !important;
}

/* Smooth Dropdown Animation for Desktop */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeDropdown 0.3s ease forwards;
    }
    .navbar .dropdown-menu {
        display: none;
        margin-top: 0;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
    }
    .navbar .dropdown:hover .dropdown-menu {
        pointer-events: auto;
    }
}
@keyframes fadeDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 46, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 26, 0.7) 0%,
        rgba(15, 15, 26, 0.5) 50%,
        rgba(15, 15, 26, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-title .highlight {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-gold {
    background: var(--gradient-gold);
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 164, 92, 0.3);
    color: var(--secondary-color);
}

.btn-outline-gold {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--darker-bg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-title .highlight {
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.gold-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 1.5rem 0;
}

.gold-line-center {
    margin: 1.5rem auto;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
    background-color: var(--dark-bg);
}

.intro-image {
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
}

.intro-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   SERVICES / WHAT WE DO SECTION
   ============================================ */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(200, 164, 92, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   QUOTE SECTION
   ============================================ */
.quote-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: 20%;
    left: 5%;
    font-size: 20rem;
    color: rgba(200, 164, 92, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.quote-author {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ============================================
   PORTFOLIO / PROJECTS
   ============================================ */
.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(15, 15, 26, 0.95) 0%,
        rgba(15, 15, 26, 0.5) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-category {
    color: var(--primary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-title {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(200, 164, 92, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.feature-item h5 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   MEDIA SHOWCASE / CAROUSEL
   ============================================ */
.media-showcase {
    background: var(--darker-bg);
}

.showcase-item {
    padding: 1rem;
}

.showcase-video {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 150px 0 100px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h5 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.team-info p {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    background: var(--dark-bg);
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(200, 164, 92, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.contact-info-text h6 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-info-text p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.form-control,
.form-select {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color);
    color: #212529 !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color);
    color: #212529 !important;
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

/* Options inside select dropdowns */
.form-select option {
    color: #212529 !important;
    background-color: #ffffff;
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--text-light);
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-title {
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(200, 164, 92, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: var(--text-gray);
}

/* ============================================
   WORK/PORTFOLIO PAGE
   ============================================ */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-gold {
    color: var(--primary-color) !important;
}

.bg-dark-custom {
    background-color: var(--dark-bg) !important;
}

.bg-darker {
    background-color: var(--darker-bg) !important;
}

.border-gold {
    border-color: var(--primary-color) !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
}

/* ── Fix: Carousel controls were blocking hero CTA buttons ── */
/* Default Bootstrap carousel-control-prev/next each take up 15% of slide  */
/* width as a transparent overlay, intercepting clicks on the hero buttons. */
.carousel-control-prev,
.carousel-control-next {
    width: 5% !important;
}
