/* =========================================
   THEME VARIABLES
   ========================================= */
:root {
    --bg-body: #fbfbfd;
    --bg-nav: rgba(251, 251, 253, 0.85);
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 1);
    
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    
    --border-color: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.08);
    
    /* Green/Teal Accent Theme */
    --accent: #0d9488;
    --accent-bg: #ccfbf1;
    --accent-text: #0f766e;
    
    --btn-text: #ffffff;
    --btn-bg: #0d9488;
    
    --input-bg: #f5f5f7;
    --input-text: #1d1d1f;

    --radius-btn: 8px;   
    --radius-card: 16px; 
}

[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #022c22 0%, #0f172a 100%);
    --bg-nav: rgba(2, 44, 34, 0.85);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #ccfbf1;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
    --accent: #5eead4;
    --accent-bg: rgba(94, 234, 212, 0.1);
    --accent-text: #5eead4;
    --btn-text: #022c22;
    --btn-bg: #5eead4;
    --input-bg: rgba(0,0,0,0.3);
    --input-text: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    transition: background 0.5s ease, color 0.5s ease;
    min-height: 100vh;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; color: var(--text-primary); }
p { color: var(--text-secondary); font-size: 1.05rem; transition: color 0.3s; margin-bottom: 15px; }
h1 span { color: var(--accent); }

ul { list-style: none; padding-left: 0; }
.tech-list li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text-secondary); }
.tech-list li::before { content: "•"; color: var(--accent); position: absolute; left: 0; font-weight: bold; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.full-width { width: 100%; }
.bg-offset { background: var(--input-bg); }
.border-top { border-top: 1px solid var(--border-color); }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); text-decoration: none; cursor: pointer; }
.logo span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 24px; }

.nav-links { display: flex; gap: 25px; list-style: none; align-items: center; }
.nav-links a { 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    font-weight: 500; 
    text-decoration: none; 
    transition: color 0.2s; 
    cursor: pointer;
    display: inline-block; 
}
.nav-links a:hover, .nav-links a.active-link { color: var(--accent); }

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 34px; height: 34px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
    font-size: 0.9rem;
}
.theme-btn:hover { background: var(--border-color); }

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 35px auto;
    font-weight: 400;
}

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 12px 30px;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn.small { padding: 8px 20px; font-size: 0.9rem; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- Stats Strip --- */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    padding: 25px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    width: auto;
    display: inline-flex;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.stat-item { text-align: center; transform: translateZ(20px); }
.stat-item h3 { font-size: 2.2rem; color: var(--accent); margin-bottom: 0; }
.stat-item p { font-size: 0.85rem; margin-top: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- Layout & Grids --- */
.section { padding: 100px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 50px; max-width: 700px; margin: 0 auto 50px auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card:hover { 
    background: var(--bg-card-hover); 
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    z-index: 10;
}

.icon-box { 
    width: 50px; height: 50px; 
    background: var(--accent-bg); 
    border-radius: 8px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--accent); 
    margin-bottom: 20px; 
    transform: translateZ(30px);
}

.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-primary); transform: translateZ(20px); }
.card p { font-size: 0.95rem; line-height: 1.5; color: var(--text-secondary); transform: translateZ(15px); }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; transform: translateZ(25px); }
.tag { font-size: 0.7rem; background: var(--border-color); padding: 5px 10px; border-radius: 4px; color: var(--text-primary); font-weight: 600; }

/* --- Product Cards --- */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-img { height: 260px; background-size: cover; background-position: center; transform: translateZ(10px); }
.product-content { padding: 28px; transform: translateZ(30px); background: var(--bg-card); }
.badge { background: var(--accent-bg); color: var(--accent-text); padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; display: inline-block; margin-bottom: 10px; text-transform: uppercase; }
.one-line-desc { margin-top: 10px; font-size: 0.9rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Text Content Layout --- */
.text-content-layout { max-width: 800px; margin: 0 auto; }
.content-block { margin-bottom: 40px; }

/* UPDATED: Green Theme for Description Page Headings */
.block-title { 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    color: var(--accent); /* CHANGED: Now uses the Green/Teal accent color */
}

/* UPDATED: Green Tint for Bold Text in Descriptions */
.content-block p strong, .tech-list li strong {
    color: var(--accent-text);
}

.content-block.underlined { border-bottom: 1px solid var(--border-color); padding-bottom: 40px; margin-bottom: 40px; }
.product-image-banner { width: 100%; height: 300px; border-radius: var(--radius-card); background-size: cover; background-position: center; margin-top: 30px; }

/* --- Contact Form --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.form-box { background: var(--bg-card); padding: 35px; border-radius: var(--radius-card); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); transform-style: preserve-3d; transform: perspective(1000px); }
.input-group { margin-bottom: 18px; transform: translateZ(20px); }
.input-group label { display: block; margin-bottom: 6px; font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; }
.input-field { width: 100%; padding: 12px; background: var(--input-bg); border: 1px solid transparent; color: var(--input-text); border-radius: 8px; font-size: 0.95rem; transition: 0.2s; }
.input-field:focus { outline: none; border-color: var(--accent); }
.contact-item { display: flex; gap: 12px; margin-bottom: 18px; font-size: 1rem; color: var(--text-primary); align-items: center; }
.contact-item i { color: var(--accent); font-size: 1.1rem; }

footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-secondary); margin-top: 60px; font-size: 0.85rem; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.page-view { display: none; padding-top: 60px; animation: fadeIn 0.4s ease-out; }
.page-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- MOBILE OPTIMIZATIONS (STRICTLY FROM PROVIDED CODE) --- */
.menu-btn { display: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 768px) {
    /* Navbar Logic */
    .nav-links {
        position: fixed; top: 60px; left: 0; width: 100%; 
        background: var(--bg-body);
        flex-direction: column; padding: 30px; display: none; 
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .menu-btn { display: block; }
    
    .hero { padding-top: 80px; } /* Reduced spacing */
    .hero h1 { font-size: 2.2rem; margin-bottom: 15px; } /* Smaller text */
    .hero p { font-size: 1rem; line-height: 1.5; margin-bottom: 25px; }
    .hero-btns { flex-direction: row; flex-wrap: nowrap; gap: 10px; width: 100%; justify-content: center; }
    .btn { padding: 10px 16px; font-size: 0.85rem; width: auto; flex: 1; text-align: center; white-space: nowrap; }

    .section { padding: 60px 0; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 1.8rem; }
    
    .stats-container { flex-direction: row !important; flex-wrap: nowrap; gap: 5px; padding: 15px 10px; width: 100%; justify-content: space-between; }
    .stat-item { flex: 1; min-width: 0; padding: 0; }
    .stat-item h3 { font-size: 1.6rem; }
    .stat-item p { font-size: 0.75rem; white-space: nowrap; }
    
    .card { padding: 20px; }
    .icon-box { width: 45px; height: 45px; font-size: 1.2rem; }
    .grid-2, .contact-layout { grid-template-columns: 1fr; }

    /* Disable 3D on mobile */
    .card, .form-box, .product-card, .stats-container { transform: none !important; transform-style: flat !important; }
    .icon-box, .card h3, .card p, .tags, .input-group, .stat-item { transform: none !important; }
}