/* ==========================================================================
   MAAN FOODS & SRIT PROPOSAL DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Maan Foods Color Palette */
    --clr-primary: #8B1E1E;
    --clr-primary-dark: #661212;
    --clr-primary-light: #B23B3B;
    --clr-secondary: #E67E22;
    --clr-secondary-hover: #D35400;
    --clr-accent: #27AE60;
    --clr-accent-light: #E8F8F0;
    --clr-bg: #FDFBF7;
    --clr-surface: #FFFFFF;
    --clr-surface-muted: #F8F6F0;
    --clr-text-main: #1F2937;
    --clr-text-muted: #4B5563;
    --clr-text-light: #6B7280;
    --clr-border: #E5E7EB;
    --clr-border-light: #F3F4F6;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(139, 30, 30, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SRIT Proposal Theme Variables */
.theme-proposal {
    --clr-proposal-bg: #0B1329;
    --clr-proposal-surface: #131F3A;
    --clr-proposal-card: #1E293B;
    --clr-proposal-border: #334155;
    --clr-proposal-lime: #84CC16;
    --clr-proposal-lime-hover: #65A30D;
    --clr-proposal-text: #F8FAFC;
    --clr-proposal-text-muted: #94A3B8;
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.theme-proposal {
    background-color: var(--clr-proposal-bg);
    color: var(--clr-proposal-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    font-weight: 700;
    line-height: 1.25;
}

.theme-proposal h1, 
.theme-proposal h2, 
.theme-proposal h3, 
.theme-proposal h4 {
    color: var(--clr-proposal-text);
}

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

a:hover {
    color: var(--clr-primary-dark);
}

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

ul {
    list-style: none;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(139, 30, 30, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 30, 30, 0.4);
}

.btn-secondary {
    background-color: var(--clr-secondary);
    color: #FFFFFF !important;
}

.btn-secondary:hover {
    background-color: var(--clr-secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary) !important;
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: #FFFFFF !important;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF !important;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
}

/* Mobile Drawer Navigation */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.mobile-drawer.active {
    display: block;
}

.drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background-color: var(--clr-surface);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    z-index: 2;
    transform: translateX(100%);
    transition: transform var(--transition-base);
}

.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}

/* Product Cards & Filters */
.product-card {
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px -10px rgba(87, 0, 0, 0.15);
}

/* Specification Tables */
.spec-table-container {
    background-color: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.spec-table th,
.spec-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--clr-border-light);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table th {
    background-color: var(--clr-surface-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    width: 35%;
    color: var(--clr-primary-dark);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: floatSlow 4s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: #111827;
    color: #FFFFFF;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    z-index: 98;
    padding: 0.6rem 1rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.sticky-btn-primary {
    background-color: var(--clr-primary);
    color: #FFFFFF !important;
}

.sticky-btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF !important;
}

/* Modal Popup */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-card {
    position: relative;
    z-index: 2;
    background-color: var(--clr-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--clr-surface-muted);
    border-bottom: 1px solid var(--clr-border);
}

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

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

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEAL UTILITIES
   ========================================================================== */

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(87, 0, 0, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(87, 0, 0, 0); }
}

.animate-float {
    animation: floatSlow 4s ease-in-out infinite;
}

.animate-glow {
    animation: pulseGlow 2.5s infinite;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: opacity;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active,
.reveal-fade.active,
.reveal-scale.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger Delay Classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Micro-Interactions */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}
