/* Rivon Chemical Industries - Main Frontend Premium Stylesheet (Vanilla CSS) */

:root {
    --primary: #0a549d; /* Rivon Blue */
    --primary-light: #eff6ff;
    --primary-hover: #073f77;
    --secondary: #f2a20b; /* Rivon Amber/Orange */
    --secondary-light: #fef3c7;
    --secondary-hover: #cf8805;
    --accent: #d62828; /* Crimson Red */
    --white: #ffffff;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

/* Global Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-drawing {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.8rem;
    position: relative;
    user-select: none;
}

.logo-swoop {
    position: absolute;
    top: -2px;
    left: 47px;
    width: 32px;
    height: 14px;
    border-radius: 50% 50% 0 0;
    border-top: 3px solid var(--secondary);
    transform: rotate(15deg);
}

.logo-dot {
    position: absolute;
    top: -6px;
    left: 45px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2.2px;
    margin-top: -3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

.btn-nav-inquiry {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(10, 84, 157, 0.2);
}

.btn-nav-inquiry:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 84, 157, 0.3);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    padding: 100px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242,162,11,0.06) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-badge {
    background-color: var(--secondary-light);
    color: var(--secondary-hover);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--secondary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10, 84, 157, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 84, 157, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

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

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Custom beaker rendering via premium pure CSS */
.beaker-illustration {
    width: 320px;
    height: 380px;
    background: rgba(255, 255, 255, 0.3);
    border: 8px solid rgba(10, 84, 157, 0.2);
    border-top: none;
    border-radius: 0 0 160px 160px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.beaker-neck {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 8px solid rgba(10, 84, 157, 0.2);
    border-bottom: none;
    top: -95px;
    left: 110px;
    background-color: rgba(255,255,255,0.2);
}

.beaker-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, rgba(242,162,11,0.65) 0%, rgba(10,84,157,0.75) 100%);
    border-top: 4px solid var(--secondary);
    animation: slosh 6s ease-in-out infinite alternate;
}

@keyframes slosh {
    0% { transform: skewY(-2deg); }
    100% { transform: skewY(2deg); }
}

.beaker-bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: rise 5s infinite ease-in;
}

@keyframes rise {
    0% { bottom: 0; transform: translateX(0) scale(0.6); opacity: 0; }
    50% { opacity: 0.8; }
    100% { bottom: 100%; transform: translateX(30px) scale(1.2); opacity: 0; }
}

/* Feature/Value Cards Section */
.section-padding {
    padding: 80px 0;
}

.section-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-bottom-color: var(--secondary);
}

.value-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.value-title {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: var(--primary);
}

.value-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Products Front Grid styling */
.products-filter-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    list-style: none;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.product-img-wrapper {
    height: 250px;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

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

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

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(7, 33, 61, 0.85);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.product-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    height: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.btn-detail-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-hover);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-detail-link:hover {
    color: var(--primary);
}

/* Product Detail Page layout */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.spec-list {
    margin-top: 25px;
    list-style: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.spec-item {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    width: 35%;
    padding: 14px 20px;
    font-weight: 700;
    color: var(--text-muted);
    background-color: var(--light-bg);
    font-size: 0.9rem;
    border-right: 1px solid var(--border-color);
}

.spec-value {
    width: 65%;
    padding: 14px 20px;
    font-size: 0.9rem;
}

/* Responsive video player container */
.video-player-wrapper {
    margin-top: 40px;
    background-color: #07213d;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding: 15px;
}
.video-player-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Blog Front Grid layouts */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.blog-img-wrapper {
    height: 220px;
    position: relative;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 24px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--secondary-hover);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.blog-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.blog-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Inquiry form Modal window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 33, 61, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.9);
    transition: all 0.3s ease;
    border-top: 6px solid var(--secondary);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-body {
    padding: 24px;
}

/* Form inputs for frontend */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 84, 157, 0.15);
}

/* Contact Us Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-panel {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.contact-info-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.contact-info-desc {
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 30px;
}

.contact-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 1rem;
    font-weight: 600;
}

/* Footer structure */
.site-footer {
    background-color: #07213d;
    color: var(--white);
    padding: 60px 0 30px 0;
    margin-top: 80px;
    border-top: 4px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
    color: var(--secondary);
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Map frame styles */
.map-container {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

/* Alert Notification Boxes */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
}
.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: var(--accent);
}
.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left-color: #10b981;
}

/* Responsive grid overrides */
@media (max-width: 992px) {
    .hero-grid, .product-detail-grid, .contact-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* simple mobile hide */
    }
    .mobile-nav-toggle {
        display: block;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}
