/* ============================================
   EMMARK INDUSTRIES - Custom Stylesheet
   Professional Industrial Corporate Design
   ============================================ */

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    --primary-color: #0d3b66;
    --primary-dark: #062440;
    --secondary-color: #1e5f8a;
    --accent-color: #f4a261;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-section: #f1f5f9;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.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: var(--shadow-lg);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: var(--white);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    display: block;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

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

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

.social-icons a {
    color: var(--white);
    font-size: 1rem;
    margin-left: 0.8rem;
    opacity: 0.8;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.3) 0%, rgba(30, 95, 138, 0.3) 100%);
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.carousel-caption {
    position: absolute;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding: 0;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-caption .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 0.9rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    margin: 0.5rem;
}

.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #e38c3a;
    border-color: #e38c3a;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: var(--transition);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent-color);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

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

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
    background: var(--primary-color);
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.stat-item {
    color: var(--white);
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--accent-color);
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    margin-bottom: 2rem;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

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

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

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--white);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    font-weight: 500;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--primary-color);
    color: var(--white);
}

.about-feature:hover i {
    color: var(--accent-color);
}

.about-feature i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.about-feature h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.85rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* ============================================
   Products Section
   ============================================ */
.products-section {
    background: var(--bg-section);
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 59, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.product-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-features i {
    color: #28a745;
    margin-right: 0.5rem;
}

/* ============================================
   Quality Section
   ============================================ */
.quality-section {
    background: var(--white);
}

.quality-features {
    margin-top: 2rem;
}

.quality-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.quality-item:hover {
    background: var(--bg-light);
}

.quality-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quality-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.quality-content h5 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.quality-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.quality-stats {
    background: var(--bg-section);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.quality-stat-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.quality-image img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
    transition: 0.3s ease-in-out;
}

.quality-image img:hover {
    transform: scale(1.03);
}

.progress-item {
    margin-bottom: 1.25rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    transition: width 1.5s ease;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.badge-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* ============================================
   Clients Section
   ============================================ */
.clients-section {
    background: var(--bg-section);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.client-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--primary-color);
    color: var(--white);
}

.client-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.testimonials-section .section-subtitle {
    color: var(--accent-color);
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.testimonial-rating {
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1.3rem;
    margin: 0 2px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonials-section .carousel-control-prev,
.testimonials-section .carousel-control-next {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e38c3a 100%);
    color: var(--text-dark);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons .btn-light {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 50px;
}

.cta-buttons .btn-light:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.cta-buttons .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 50px;
}

.cta-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--bg-section);
}

.contact-info {
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.contact-item h5 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 59, 102, 0.15);
}

.contact-form .btn-primary {
    padding: 1rem;
    font-size: 1.1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-brand p {
    opacity: 0.8;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-social {
    margin-top: 1.5rem;
}

.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: 50%;
    margin-right: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

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

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

.footer-links a {
    opacity: 0.8;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

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

.footer-contact li {
    margin-bottom: 0.75rem;
    opacity: 0.8;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    padding-bottom: 2rem;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1199px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
    
    .social-icons {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .social-icons a {
        margin-left: 0;
        margin-right: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .experience-badge {
        right: 0;
        bottom: -15px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-section,
    .carousel-item {
        height: 100vh;
        min-height: 500px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption .lead {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-suffix {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .experience-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .about-image-wrapper {
        text-align: center;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .carousel-caption h1 {
        font-size: 1.6rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .badge-item {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ============================================
   Animation on Scroll
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .whatsapp-float,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
    }
    
    body {
        font-size: 12pt;
    }
}