/*
 * JAI SHRI KRISHNA ENTERPRISES - CLEAN CSS
 * Base styles only - Header/Hero handled by unified-header-hero.css
 * Version: 3.0 - Conflict-Free Edition
 */

/* =========================================
   PREMIUM TYPOGRAPHY - GOOGLE FONTS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    /* Primary Colors */
    --primary-blue: #004080;
    --secondary-sky: #0066cc;
    --accent-red: #dc3545;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    
    /* Premium Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========================================
   PREMIUM TYPOGRAPHY - GLOBAL RULES
   ======================================== */

/* All Headings - Poppins Bold */
h1, h2, h3, h4, h5, h6,
.heading,
.title,
.section-title,
.card-title,
.product-name,
.brand-name,
.hero-title {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* All Body Text - Inter */
p, span, div, a, li,
.description,
.text,
.content,
.card-text,
.product-description,
button {
    font-family: var(--font-body) !important;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-sky);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
    background: var(--white);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-sky));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 64, 128, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px) scale(1.05);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

.btn-outline:active {
    transform: scale(0.98);
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SWIPER CUSTOMIZATION
   ======================================== */

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--white);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
}

/* ========================================
   BUSINESS METRICS
   ======================================== */

.metrics {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.metric-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.metric-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.metric-item:active {
    transform: translateY(-5px) scale(1.02);
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1.1rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background: var(--white);
    position: relative;
    z-index: 10;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

/* ========================================
   MISSION SECTION
   ======================================== */

.mission {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-sky));
    color: var(--white);
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

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

.mission-content p {
    color: var(--white);
    opacity: 0.95;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ========================================
   BRAND SCROLLER
   ======================================== */

.brand-scroller {
    background: var(--light-gray);
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.brand-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.brand-logo {
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: var(--transition-medium);
}

.brand-logo:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.brand-logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-medium);
}

.brand-logo:hover img {
    transform: scale(1.1);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products {
    background: var(--white);
    position: relative;
    z-index: 10;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.product-info p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

/* ========================================
   INFRASTRUCTURE & CREDENTIALS
   ======================================== */

.infrastructure,
.credentials {
    background: var(--light-gray);
    position: relative;
    z-index: 10;
}

.infrastructure-content,
.credentials-content {
    text-align: center;
}

.infrastructure-content p,
.credentials-content p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition-medium);
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

/* Credentials Section - Uniform Image Sizes */
.credentials-swiper-container {
    position: relative;
    overflow: hidden;
    padding: 30px 0 50px;
}

.credentials .swiper-slide {
    height: auto;
}

.credentials .gallery-item {
    height: 400px;
    margin: 0;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.credentials .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.credentials .gallery-item-inner {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.credentials .gallery-item img,
.credentials .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: var(--white);
}

.credentials .gallery-item-info {
    display: none;
}

.credentials .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 30px;
}

.credentials .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--medium-gray);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.credentials .swiper-pagination-bullet-active {
    background: var(--primary-blue);
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

.credentials .swiper-button-next,
.credentials .swiper-button-prev {
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.95);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    top: 50%;
}

.credentials .swiper-button-next:hover,
.credentials .swiper-button-prev:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.credentials .swiper-button-next::after,
.credentials .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* ========================================
   OFFERS SECTION
   ======================================== */

.offers {
    background: var(--white);
    position: relative;
    z-index: 10;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.offer-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

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

.offer-card:active {
    transform: translateY(-5px) scale(1.02);
}

.offer-card .offer-icon {
    transition: var(--transition-medium);
}

.offer-card:hover .offer-icon {
    transform: scale(1.2) rotate(5deg);
}

.offer-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-sky));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.offer-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.offer-card p {
    color: var(--medium-gray);
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background: var(--white);
    position: relative;
    z-index: 10;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--secondary-sky);
    font-size: 1.3rem;
    width: 30px;
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--secondary-sky);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-phone,
.contact-email {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close:hover {
    color: var(--primary-blue);
    transform: rotate(90deg);
}

/* Success Modal */
.success-modal {
    text-align: center;
}

.success-animation {
    margin-bottom: 20px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.checkmark {
    width: 30px;
    height: 50px;
    border: 5px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

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

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

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

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content-wrapper,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .metric-value {
        font-size: 2.5rem;
    }
    
    .product-grid,
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    /* Credentials Section - Mobile */
    .credentials .gallery-item {
        height: 350px;
    }
    
    .credentials .gallery-item img {
        padding: 15px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    section {
        padding: 40px 0;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .metric-label {
        font-size: 1rem;
    }
    
    /* Credentials Section - Small Mobile */
    .credentials .gallery-item {
        height: 300px;
    }
    
    .credentials .gallery-item img {
        padding: 10px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .transport-banner,
    .menu-toggle,
    .whatsapp-widget,
    .footer-social,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
    }
}
