/* --- RENTZIO: MODERN STRUCTURE (Original Colors) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 1. CONFIGURATION (Variables) */
:root {
    /* 🎨 ORIGINAL COLORS (Light) */
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #1a1a1a;
    --text-gray: #666666;
    --primary-blue: #0066ff;
    --light-blue-bg: #f0f5ff;
    --border-color: #e0e0e0;
    --nav-bg: rgba(255, 255, 255, 0.85); /* More transparent for glass effect */
    --shadow-color: rgba(0,0,0,0.06);
    
    /* 📐 NEW STRUCTURE VARIABLES (The "Vibe") */
    --radius-card: 24px;   /* Super rounded cards */
    --radius-btn: 100px;   /* Pill-shaped buttons */
    --radius-input: 14px;  /* Softer inputs */
    --nav-height: 80px;
}

/* 🌙 ORIGINAL COLORS (Dark Mode) */
html[data-theme="dark"] {
    --bg-color: #0f1115;
    --card-bg: #181b21;
    --text-color: #ffffff;
    --text-gray: #a0a0a0;
    --primary-blue: #3b82f6;
    --light-blue-bg: #161b22;
    --border-color: #2d3748;
    --nav-bg: rgba(15, 17, 21, 0.85);
    --shadow-color: rgba(0,0,0,0.5);
}

/* --- GLOBAL RESETS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-image: linear-gradient(to top, var(--light-blue-bg) 0%, var(--bg-color) 25%);
    background-repeat: no-repeat;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- HEADER & NAV (Floating Glass Style) --- */
.navbar {
    background: var(--nav-bg);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    /* 🌟 The "Glass" Structure */
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar .logo {
    height: 55px; /* Slightly smaller for cleaner look */
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.navbar .logo:hover { transform: scale(1.08); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px; /* More airy spacing */
    margin: 0;
    align-items: center;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500; /* Slightly lighter font weight */
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links li a:hover, .active-page {
    color: var(--primary-blue);
}

/* 🌗 TOGGLE SWITCH (Pill Style) */
.theme-switch-wrapper { display: flex; align-items: center; margin-left: 25px; }
.theme-switch { display: inline-block; height: 26px; position: relative; width: 50px; }
.theme-switch input { display: none; }
.slider {
    background-color: var(--border-color); /* Adaptive background */
    bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; border-radius: 34px;
}
.slider:before {
    background-color: white; bottom: 3px; content: ""; height: 20px; left: 3px; position: absolute; transition: .4s; width: 20px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: var(--primary-blue); }
input:checked + .slider:before { transform: translateX(24px); }
.slider:after { content: '☀️'; position: absolute; right: 6px; top: 4px; font-size: 12px; }
input:checked + .slider:after { content: '🌙'; left: 8px; right: auto; color: white; }

/* --- LAYOUTS --- */
.container { max-width: 1100px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.hero-section { padding-top: 80px; padding-bottom: 80px; }

/* Typography */
h1 { font-size: 4rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -2px; color: var(--text-color); line-height: 1.1; }
h2 { font-size: 2.5rem; font-weight: 700; color: var(--text-color); margin-bottom: 40px; letter-spacing: -1px; }
h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; color: var(--text-color); }
h4 { color: var(--text-color); font-weight: 600; }
p { color: var(--text-gray); max-width: 650px; margin: 0 auto 30px auto; font-size: 1.1rem; }

/* Buttons (The "Pill" Shape) */
.btn {
    display: inline-block;
    padding: 16px 40px;
    margin: 10px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-btn); /* 🟢 Pill Shape */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent; /* Prepare for border buttons */
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
}
.btn:hover { 
    background-color: #0052cc; 
    transform: translateY(-3px); 
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.35); 
}

/* Secondary Button Style Override */
.btn[style*="background-color: white"], 
.btn[style*="background-color: transparent"] {
    background-color: transparent !important;
    border: 2px solid var(--border-color) !important; /* Subtle border */
    color: var(--text-color) !important;
    box-shadow: none !important;
}
.btn[style*="background-color: white"]:hover, 
.btn[style*="background-color: transparent"]:hover {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    transform: translateY(-3px);
}

/* Cards & Grid (The "Bubble" Shape) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }

.card, .product-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-card); /* 🟢 Super Rounded */
    box-shadow: 0 10px 40px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.card:hover, .product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15); border-color: var(--primary-blue); }

/* Product Cards */
.product-card { padding: 0; }
.image-container { 
    position: relative; 
    width: 100%; 
    height: 260px; 
    overflow: hidden; 
    background: #f4f4f4; 
    border-bottom: 1px solid var(--border-color);
}
.product-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: opacity 0.4s ease-in-out; }
.img-hover { opacity: 0; }
.product-card:hover .img-hover { opacity: 1; }
.product-info { padding: 25px; }
.price-tag { 
    background: var(--light-blue-bg); 
    color: var(--primary-blue); 
    padding: 6px 14px; 
    border-radius: 100px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    display: inline-block; 
    margin-bottom: 10px; 
}

/* Forms (The "Soft" Input) */
input, select, textarea { 
    width: 100%; 
    padding: 18px; 
    margin-bottom: 20px; 
    background: var(--bg-color); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-input); /* 🟢 Rounded Inputs */
    color: var(--text-color); 
    font-family: inherit; 
    font-size: 1rem; 
    transition: 0.3s; 
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1); }
label { display: block; text-align: left; font-weight: 600; margin-bottom: 10px; color: var(--text-color); font-size: 0.95rem; }

/* FAQ Styles */
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-color);
}
.faq-item:hover { border-color: var(--primary-blue); transform: translateY(-2px); }
summary {
    padding: 22px; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; color: var(--text-color); display: flex; justify-content: space-between; align-items: center;
}
summary::after { content: '+'; font-size: 1.5rem; color: var(--primary-blue); transition: transform 0.3s ease; font-weight: 400; }
details[open] summary::after { transform: rotate(45deg); }
summary::-webkit-details-marker { display: none; } 
.faq-content { padding: 0 22px 25px 22px; color: var(--text-gray); font-size: 1rem; line-height: 1.6; border-top: 1px solid var(--border-color); }

/* Footer */
footer { text-align: center; padding: 80px 20px; background: var(--card-bg); border-top: 1px solid var(--border-color); margin-top: 50px; font-size: 0.9rem; color: var(--text-gray); display: flex; flex-direction: column; align-items: center; gap: 15px; }
footer .logo { height: 90px; width: auto; display: block; margin-bottom: 10px; opacity: 0.9; }

/* Mobile Styles */
.menu-icon { display: none; font-size: 24px; cursor: pointer; color: var(--text-color); }

@media screen and (max-width: 768px) {
    .navbar { padding: 10px 20px; }
    .navbar .logo { height: 45px; }
    h1 { font-size: 2.8rem; letter-spacing: -1.5px; }

    .nav-links {
        display: none; flex-direction: column; width: 100%; position: absolute; top: var(--nav-height); left: 0; background-color: var(--card-bg); padding: 20px 0; text-align: center; box-shadow: 0 10px 30px var(--shadow-color); border-bottom: 1px solid var(--border-color);
    }
    .nav-links li { margin: 10px 0; }
    .nav-links.active { display: flex; }
    .menu-icon { display: block; }
    .theme-switch-wrapper { margin: 15px auto; }
    
    .nav-links li:last-child a.btn-join {
        display: block; width: 85%; margin: 10px auto; padding: 14px; text-align: center;
    }
}