/* ==========================================================================
   DESIGN SYSTEM & FOUNDATION
   ========================================================================== */

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

:root {
    /* Color Palette */
    --primary: #0f2b5c;       /* Deep Royal Blue */
    --primary-light: #1b448a; /* Lighter variant */
    --primary-dark: #071530;  /* Very dark blue */
    --accent: #c5a880;        /* Warm Gold */
    --accent-light: #decbb3;  /* Soft Gold */
    --accent-dark: #a08155;   /* Darker Gold */
    
    /* Neutrals */
    --bg-main: #f8fafc;       /* Slate White */
    --bg-card: #ffffff;       /* Pure White */
    --text-main: #1e293b;     /* Charcoal Dark */
    --text-muted: #64748b;    /* Slate Gray */
    --border-color: #e2e8f0;  /* Cool Gray */
    
    /* Semantic Colors */
    --success: #10b981;
    --error: #ef4444;
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(15, 43, 92, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 43, 92, 0.12);
    
    /* Transition Speed */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.25;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition-smooth);
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ==========================================================================
   REUSABLE COMPONENTS
   ========================================================================== */

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

.section-padding {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-light);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    color: var(--bg-card);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(15, 43, 92, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.85rem 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

header.scrolled .logo-img {
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 43, 92, 0.85) 0%, rgba(7, 21, 48, 0.5) 100%);
    z-index: 2;
}

#hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.4s;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 650px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.8s;
}

.hero-controls {
    position: absolute;
    bottom: 3rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hero-indicator.active {
    background-color: var(--accent);
    border-color: var(--accent);
    width: 32px;
}

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

/* ==========================================================================
   ABOUT COMPANY
   ========================================================================== */

#about {
    position: relative;
    background-color: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.highlight-item {
    padding: 1.5rem;
    background-color: var(--bg-main);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.highlight-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.highlight-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: var(--primary);
    color: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 4px solid var(--accent);
}

.badge-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.badge-text h5 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.badge-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================================================
   PARTNERS & TECHNOLOGY
   ========================================================================== */

#technology {
    background-color: var(--bg-main);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.tech-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

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

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: rgba(15, 43, 92, 0.05);
    border-radius: var(--radius-md);
    color: var(--primary);
    margin-bottom: 2rem;
}

.tech-card:hover .tech-icon-container {
    background-color: var(--primary);
    color: #ffffff;
}

.tech-partner {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tech-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tech-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tech-features {
    list-style: none;
}

.tech-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.tech-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ==========================================================================
   FACTORY GALLERY
   ========================================================================== */

#gallery {
    background: var(--bg-card);
}

.gallery-wrapper {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.gallery-viewer {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 550px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(7, 21, 48, 0.9) 0%, rgba(7, 21, 48, 0) 100%);
    padding: 3rem 2rem 2rem 2rem;
    color: #ffffff;
}

.gallery-caption h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.gallery-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 80px;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--accent);
    transform: translateY(-2px);
}

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

/* ==========================================================================
   PRODUCT CATALOG
   ========================================================================== */

#products {
    background: var(--bg-main);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.product-tab {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.product-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.product-tab:hover:not(.active) {
    border-color: var(--accent);
    color: var(--primary);
}

.product-panels {
    position: relative;
}

.product-panel {
    display: none;
}

.product-panel.active {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: fadeIn 0.6s ease-out forwards;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image-container {
    height: 250px;
    background: radial-gradient(circle, #f8fafc 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

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

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

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-btn {
    align-self: stretch;
}

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

/* ==========================================================================
   QUALITY & STANDARDS
   ========================================================================== */

#quality {
    background: var(--bg-card);
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    align-items: center;
}

.quality-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.quality-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.team-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.team-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quality-stamp-container {
    text-align: center;
}

.quality-stamp-box {
    background: var(--bg-main);
    border: 3px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    display: inline-block;
    max-width: 450px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.stamp-img {
    height: 180px;
    margin: 0 auto 2rem auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.stamp-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stamp-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

#contact {
    background: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-text h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

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

.contact-form-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 4rem 3.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 43, 92, 0.08);
    outline: none;
}

textarea.form-input {
    resize: none;
    height: 150px;
}

.form-btn {
    width: 100%;
}

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

footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 6rem 0 3rem 0;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 320px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

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

.footer-links {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-copyright span {
    color: var(--accent);
}

.footer-policy {
    display: flex;
    gap: 2rem;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 21, 48, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-card);
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

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

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    z-index: 10;
    background-color: rgba(0,0,0,0.05);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background-color: var(--error);
    color: #ffffff;
}

.modal-body {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    padding: 3.5rem;
}

.modal-product-visual {
    background: radial-gradient(circle, #f8fafc 0%, #edf2f7 100%);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    border: 1px solid var(--border-color);
}

.modal-product-visual img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.modal-product-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-product-brand {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    display: inline-block;
}

.modal-product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5rem;
    color: var(--primary);
}

.modal-specs-list {
    list-style: none;
    margin-bottom: 2rem;
}

.modal-specs-list li {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-specs-list li svg {
    color: var(--accent);
}

/* Modal Table Styling for Nutritional info */
.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.nutrition-table th,
.nutrition-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.nutrition-table th {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

.nutrition-table tr:nth-child(even) {
    background-color: var(--bg-main);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .about-grid {
        gap: 3rem;
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-panel.active {
        grid-template-columns: repeat(3, 1fr);
    }
    .quality-grid {
        gap: 3rem;
    }
    .gallery-viewer {
        height: 450px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-link {
        font-size: 1.2rem;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .product-panel.active {
        grid-template-columns: repeat(2, 1fr);
    }
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .quality-stamp-container {
        display: flex;
        justify-content: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .modal-body {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }
    .modal-product-visual {
        height: 280px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .product-panel.active {
        grid-template-columns: 1fr;
    }
    .product-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .product-tab {
        text-align: center;
    }
    .gallery-viewer {
        height: 300px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    .about-badge {
        padding: 1.25rem;
        bottom: -1rem;
        left: -1rem;
    }
    .contact-form-box {
        padding: 2.5rem 1.5rem;
    }
}

/* ==========================================================================
   SUBPAGE & MULTIPAGE STYLING
   ========================================================================= */

.subpage-hero {
    padding: 10rem 0 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    position: relative;
    border-bottom: 4px solid var(--accent);
}

.subpage-hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.back-home-btn:hover {
    color: #ffffff;
    transform: translateX(-5px);
}

.subpage-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.subpage-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    font-weight: 300;
}

.subpage-grid-section {
    padding: 6rem 0;
    background-color: var(--bg-main);
}

.subpage-grid-section .product-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on subpages for larger cards */
    gap: 2.5rem;
}

/* Portfolio Brand Cards in Main index.html */
.portfolio-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.portfolio-card-visual {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.portfolio-card-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 43, 92, 0.9) 0%, rgba(15, 43, 92, 0.2) 100%);
    z-index: 1;
}

.portfolio-card-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    z-index: 2;
    color: #ffffff;
}

.portfolio-card-badge h3 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.portfolio-card-badge span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.portfolio-card-body {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.portfolio-card-btn {
    align-self: flex-start;
}

/* Daily Milk Thumbnail Grid in Modal */
.daily-milk-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.daily-milk-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    padding: 0.25rem;
    background: #ffffff;
    transition: var(--transition-smooth);
}

.daily-milk-thumb:hover,
.daily-milk-thumb.active {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.daily-milk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .subpage-grid-section .product-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .subpage-title {
        font-size: 2.5rem;
    }
    .portfolio-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .subpage-grid-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .subpage-grid-section .product-panel {
        grid-template-columns: 1fr;
    }
    .subpage-title {
        font-size: 2rem;
    }
}

