/**
 * Colossus Overseas Pvt Ltd - Main Stylesheet
 * Professional Import-Export Trading Company Theme
 */

:root {
    --primary: #0a2540;
    --primary-light: #1a3a5c;
    --secondary: #0066cc;
    --accent: #00a3e0;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Justified text alignment for all page content */
main p,
main .card-text,
main .section-desc,
main .testimonial-text,
main .why-card p,
main .hero-subtitle,
main .content,
main .product-description {
    text-align: justify;
}

.footer-about {
    text-align: justify;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--white);
}

.top-contact a {
    margin-right: 1.5rem;
}

.top-contact a i, .top-social a i {
    margin-right: 0.25rem;
}

.top-social a {
    margin-left: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .top-bar .d-flex { flex-direction: column; gap: 0.5rem; text-align: center; }
    .top-contact a { margin-right: 0.75rem; }
}

/* Navbar */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary) !important;
}

.brand-logo {
    height: 45px;
    width: auto;
    margin-right: 12px;
    object-fit: contain;
}

.brand-wrap {
    line-height: 1.2;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
}

.footer-logo-img:hover {
    opacity: 1;
}

.brand-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 60%;
}

.btn-cta {
    background: var(--secondary) !important;
    color: var(--white) !important;
    border-radius: 6px;
    padding: 0.5rem 1.25rem !important;
}

.btn-cta::after { display: none !important; }

.btn-cta:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* Hero Section & Carousel */
.hero-carousel {
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-slides {
    position: relative;
}

.hero-slide {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
    position: relative;
    display: none;
    min-height: 400px;
}

.hero-slide.active {
    display: block;
    animation: heroFadeIn 0.6s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 1;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.hero-nav:hover {
    background: rgba(255,255,255,0.4);
}

.hero-prev { left: 15px; }
.hero-next { right: 15px; }

@media (max-width: 768px) {
    .hero-nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
    .hero-slide { padding: 80px 0 60px; min-height: 350px; }
}

.hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.hero-dot:hover, .hero-dot.active {
    background: var(--white);
    border-color: var(--white);
}

/* Legacy hero-section class for fallback */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service/Product Cards */
.product-card, .service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card .card-img-top, .service-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-top, .service-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body, .service-card .card-body {
    padding: 1.5rem;
}

/* Why Choose Us */
.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.why-card .icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    color: #f59e0b;
    margin: 0.5rem 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-section .btn-light {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,37,64,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    color: var(--white);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer h4, .footer h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-about {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-contact a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--white);
}

.footer-contact li i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white);
    margin-right: 0.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
}

.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    color: var(--white);
}

@media (max-width: 768px) {
    .back-to-top { right: 20px; bottom: 100px; }
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Contact Form */
.contact-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Product Detail */
.product-gallery img {
    border-radius: 12px;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin overrides */
body.admin-body {
    background: var(--light-bg);
}
