/* ==========================================================================
   QASIM RICE MILLS - MASTER STYLESHEET (EXECUTIVE THEME)
   ========================================================================== */

:root {
    /* Premium Color Palette */
    --primary-gold: #C5A059;
    --primary-gold-glow: rgba(197, 160, 89, 0.4);
    --deep-navy: #0A192F;
    --navy-surface: #112240;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Typography Colors */
    --text-main: #E6F1FF;
    --text-muted: #8892B0;
    
    /* System Variables */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-lg: 20px;
    --border-radius-sm: 10px;
}

/* ==========================================================================
   BASE & TYPOGRAPHY
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    background-color: var(--deep-navy);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h3 { font-size: 1.3rem; color: var(--primary-gold); }

/* ==========================================================================
   NAVIGATION (DARK GLASSMORPHISM)
   ========================================================================== */

nav {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-weight: 800;
    color: var(--primary-gold);
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary-gold);
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container { 
    padding: 60px 5%; 
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.9)), url('../images/asset_p3_i0.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    color: var(--primary-gold);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero p {
    color: var(--text-main);
    font-size: 1.2rem;
    max-width: 600px;
}

/* ==========================================================================
   CARDS (PREMIUM INTERACTIVE)
   ========================================================================== */

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover { 
    transform: translateY(-8px);
    background: var(--navy-surface);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--primary-gold-glow);
}

.card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-gold);
    background-color: var(--deep-navy); /* Fallback for transparent images */
}

/* ==========================================================================
   TECHNICAL SPECS TABLE
   ========================================================================== */

.specs-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.specs-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--text-main);
}

/* ==========================================================================
   FORMS & INPUTS (CONTACT PAGE)
   ========================================================================== */

input, select, textarea {
    width: 100%;
    background: var(--navy-surface);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px var(--primary-gold-glow);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

button {
    background: var(--primary-gold);
    color: var(--deep-navy);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: var(--text-main);
    box-shadow: 0 5px 15px var(--primary-gold-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================================================== */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .hero h1 { font-size: 2.2rem; }
    
    .container { padding: 40px 20px; }
    
    .grid { grid-template-columns: 1fr; }
}