/* style.css - Main Stylesheet for Utmankhail Traders */

:root {
    --navy-blue: #002855;
    --dark-navy: #001a3a;
    --gold: #C9A84C;
    --light-gold: #D4AF37;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #6C757D;
    --dark-gray: #343A40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--navy-blue);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.gold-text {
    color: var(--gold) !important;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Top Bar */
.top-bar {
    background: var(--dark-navy);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-left span {
    margin-right: 20px;
    color: var(--white);
}

.top-bar-left i {
    color: var(--gold);
    margin-right: 5px;
}

.top-bar-right a {
    color: var(--white);
    margin-left: 15px;
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: var(--gold);
}

/* Navigation */
.bg-navy {
    background: var(--navy-blue) !important;
}

.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

/* Hero Slider */
.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Buttons */
.btn-gold {
    background: var(--gold);
    color: var(--white);
    border: 2px solid var(--gold);
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-gold:hover {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-navy {
    background: var(--navy-blue);
    color: var(--white);
    border: 2px solid var(--navy-blue);
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-navy:hover {
    background: transparent;
    color: var(--navy-blue);
}

/* Welcome Section */
.welcome-section {
    background: var(--white);
}

.vision-mission-box {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--gold);
}

.vision-box h3,
.mission-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Services Section */
.service-category-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s;
}

.service-category-card:hover {
    transform: translateY(-5px);
}

.service-item {
    padding: 10px;
}

.service-item i {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.service-item p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Why Choose Us */
.feature-box {
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-box i {
    transition: transform 0.3s;
}

.feature-box:hover i {
    transform: scale(1.2);
}

/* Partners Section */
.partner-logo {
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.partner-logo img {
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* News Cards */
.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.news-card .card-body {
    padding: 20px;
}

/* Footer */
.footer {
    background: var(--dark-navy);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-widget h3 {
    color: var(--gold);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget ul li a:hover {
    color: var(--gold);
}

.contact-info li i {
    color: var(--gold);
    margin-right: 10px;
    width: 20px;
}

.footer-social a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--gold);
}

.footer-bottom {
    background: var(--navy-blue);
    padding: 20px 0;
    margin-top: 40px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: var(--white);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--navy-blue);
    color: var(--white);
}

/* Contact Page */
.contact-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-info-box i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 5px;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201,168,76,0.25);
}

/* About Page */
.about-image {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding: 20px;
    border-left: 3px solid var(--gold);
    margin-bottom: 30px;
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 25px;
    width: 15px;
    height: 15px;
    background: var(--gold);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .top-bar {
        display: none;
    }
}

/* Additional Styles for New Pages */

/* Page Banner */
.page-banner {
    position: relative;
}

.page-banner .breadcrumb {
    background: transparent;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: var(--gold);
}

.text-gold {
    color: var(--gold) !important;
}

/* About Page */
.stat-box {
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box .counter {
    font-size: 2.5rem;
    font-weight: 700;
}

.value-card, .sector-item, .philosophy-card {
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s;
}

.value-card:hover, .sector-item:hover, .philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Chairman Message */
.chairman-image img {
    border: 5px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.message-content {
    border-left: 5px solid var(--gold);
}

.signature {
    border-top: 2px solid var(--gold);
    padding-top: 20px;
}

/* Services Page */
.service-card {
    background: var(--white);
    transition: all 0.3s;
    border-top: 3px solid var(--gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon i {
    transition: transform 0.3s;
}

.service-card:hover .service-icon i {
    transform: scale(1.2) rotate(360deg);
}

.process-step {
    position: relative;
    padding: 30px 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--navy-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 2px;
    background: var(--gold);
}

/* Projects Page */
.project-card {
    transition: all 0.3s;
    background: var(--white);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.bg-gold {
    background-color: var(--gold) !important;
}

.partner-card {
    transition: all 0.3s;
}

.partner-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* News Page */
.news-card .card-title {
    font-size: 1.2rem;
    line-height: 1.4;
}

.bg-navy {
    background-color: var(--navy-blue) !important;
}

.sidebar-widget {
    transition: all 0.3s;
}

.sidebar-widget ul li a {
    color: var(--dark-gray);
    transition: color 0.3s;
}

.sidebar-widget ul li a:hover {
    color: var(--gold);
}

.recent-post h6 a {
    color: var(--navy-blue);
    transition: color 0.3s;
}

.recent-post h6 a:hover {
    color: var(--gold);
}

/* News Detail */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.share-buttons .btn {
    transition: all 0.3s;
}

.share-buttons .btn:hover {
    transform: translateY(-3px);
}

/* 404 Page */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-section h1 {
    font-size: 8rem;
    font-weight: 900;
    text-shadow: 5px 5px 0 var(--navy-blue);
}

/* Navigation Logo - Updated */
.navbar-brand {
    padding: 5px 0;
}

.navbar-brand .site-logo {
    max-height: 50px;
    width: auto;
    height: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* Agar admin ne logo upload nahi kia to default logo */
.navbar-brand img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .navbar-brand .site-logo {
        max-height: 40px;
        max-width: 150px;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
}