/* ====================== GENERAL RESET ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    background: #f9f9f9;
    color: #111;
    transition: all 0.4s ease;
}

body.dark {
    background: #121212;
    color: #eee;
}

/* ====================== TOP BAR ====================== */
.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 8px 20px;
    background: #f5f5f5;
}

body.dark .top-bar { background: #1e1e1e; }

.top-bar button {
    margin-left: 10px;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    background: #eee;
    transition: 0.3s;
}

.top-bar button:hover { background: #ddd; }
body.dark .top-bar button { background: #333; color: #eee; }
body.dark .top-bar button:hover { background: #555; }

/* ====================== NAVBAR ====================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

body.dark .navbar { background: rgba(20,20,20,0.95); box-shadow: 0 2px 6px rgba(0,0,0,0.5); }

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ff9900;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.btn-small:hover { color: #ff9900; }

.btn-small {
    padding: 6px 14px;
    border: 2px solid #ff9900;
    border-radius: 5px;
}

/* ====================== HERO ====================== */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: url('https://images.unsplash.com/photo-1509395176047-4a66953fd231?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary { background: #ff9900; color: #fff; }
.btn-primary:hover { background: #e68a00; }

.btn-secondary { background: #eee; color: #111; }
.btn-secondary:hover { background: #ddd; }

body.dark .btn-secondary { background: #333; color: #eee; }
body.dark .btn-secondary:hover { background: #555; }

/* ====================== SECTION ====================== */
.section, .section-dark {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: #ff9900;
}

/* ====================== HOW GRID ====================== */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.how-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

body.dark .how-card { background: #1e1e1e; }

.how-card:hover { transform: translateY(-5px); }

.how-card .icon {
    width: 60px;
    margin-bottom: 15px;
}

/* ====================== FEATURES GRID ====================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

body.dark .feature-card { background: #1e1e1e; }

.feature-card:hover { transform: translateY(-5px); }

.feature-card .count {
    font-size: 2rem;
    color: #ff9900;
}

/* ====================== PRICING GRID ====================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

body.dark .price-card { background: #1e1e1e; }

.price-card.popular { border: 2px solid #ff9900; }

.price-card .tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9900;
    color: #fff;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* ====================== CALCULATOR ====================== */
.calc-box {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

body.dark .calc-box { background: #1e1e1e; }

.calc-box input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.calc-box button { margin-top: 10px; }

.calc-box .result { margin-top: 15px; font-weight: 600; font-size: 1.2rem; }

/* ====================== CONTACT FORM ====================== */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

body.dark .contact-form input, body.dark .contact-form textarea { background: #333; color: #eee; border: 1px solid #555; }

.contact-form button { margin-top: 10px; }

/* ====================== FOOTER ====================== */
.footer {
    padding: 30px 20px;
    text-align: center;
    background: #222;
    color: #eee;
}

/* ====================== ANIMATIONS ====================== */
.fade { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.fade.visible { opacity: 1; transform: translateY(0); }

/* ====================== RESPONSIVE ====================== */
@media screen and (max-width: 768px) {
    .navbar .nav-links { display: none; }
    .hero-content h1 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
}
