* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #0b0e14;
    color: #eef2ff;
    overflow-x: hidden;
}

:root {
    --bg-dark: #0b0e14;
    --bg-card: #131a24;
    --bg-elevated: #1a232e;
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-glow: #ff8c42;
    --text-light: #f1f5f9;
    --text-muted: #9ca3af;
    --border-dim: #2d3748;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ========= NAVBAR ========= */
nav {
    background: rgba(11, 14, 20, 0.96);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-dim);
    padding: 0.9rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: 0.2s;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #0b0e14;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background: var(--primary);
    color: #0b0e14;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

/* ========= HERO - IMPROVED MOBILE ========= */
.hero {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 0 30px;
}

.hero-left {
    flex: 1.2;
    min-width: 0;
}

.hero-left h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    word-break: break-word;
}

.hero-left h1 span {
    color: var(--primary);
}

.hero-left p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-sm {
    padding: 12px 28px;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.hero-right {
    flex: 1;
    min-width: 0;
}

.hero-right img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    transition: 0.3s;
    display: block;
}

/* stats - improved mobile */
.stats-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--bg-card);
    border-radius: 40px;
    padding: 25px 20px;
    margin: 30px 0 50px;
    gap: 20px;
    border: 1px solid var(--border-dim);
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat h3 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: var(--primary);
    font-weight: 800;
}

.stat p {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    color: var(--text-muted);
}

/* section common */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
}

.section-title h2 {
    font-size: clamp(1.6rem, 5vw, 2.3rem);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: clamp(0.85rem, 3vw, 1rem);
    padding: 0 16px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--bg-card);
    padding: 28px 20px;
    border-radius: 28px;
    text-align: center;
    transition: 0.25s;
    border: 1px solid var(--border-dim);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About Us Section - improved mobile */
.about-section {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    align-items: center;
    margin: 40px 0;
    background: var(--bg-elevated);
    border-radius: 32px;
    padding: 30px 24px;
}

.about-img {
    flex: 1;
    min-width: 0;
}

.about-img img {
    width: 100%;
    border-radius: 28px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 16px;
}

.about-text p {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    line-height: 1.5;
    color: var(--text-muted);
}

/* Blog Cards - improved mobile */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.2s;
    border: 1px solid var(--border-dim);
}

.blog-img {
    height: 180px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin: 8px 0;
}

.blog-date {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Login & Registration Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-elevated);
    max-width: 450px;
    width: 90%;
    padding: 32px 24px;
    border-radius: 40px;
    border: 1px solid var(--border-dim);
    position: relative;
    margin: 20px;
}

.modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 40px;
    color: white;
    font-size: 1rem;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.switch-auth {
    text-align: center;
    margin-top: 16px;
    color: var(--primary);
    cursor: pointer;
}

/* Contact Form - improved mobile */
.contact-section {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 30px 24px;
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 250px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    background: #0f151c;
    border: 1px solid var(--border-dim);
    border-radius: 28px;
    color: white;
    font-size: 0.95rem;
}

/* Footer - improved mobile */
footer {
    background: #05070a;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-dim);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-grid h3,
.footer-grid h4 {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 12px;
}

.footer-grid p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.3rem;
    margin-right: 16px;
    transition: 0.2s;
}

.social-icons a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: #6b7280;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-dim);
}

/* Responsive Styles - IMPROVED */
@media (max-width: 900px) {

    .nav-links,
    .auth-buttons {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .nav-links.mobile-active,
    .auth-buttons.mobile-active {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        gap: 1rem;
        align-items: center;
        padding: 10px 0;
    }

    .nav-links.mobile-active li {
        width: 100%;
        text-align: center;
    }

    .nav-links.mobile-active a {
        display: block;
        padding: 8px;
    }

    .hero {
        flex-direction: column;
        padding: 30px 0 20px;
        gap: 30px;
    }

    .hero-left {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-right {
        order: -1;
    }

    .hero-right img {
        max-height: 280px;
        object-fit: cover;
    }

    .about-section,
    .contact-section {
        flex-direction: column;
    }

    .stats-row {
        justify-content: center;
        gap: 25px;
        padding: 25px 16px;
        border-radius: 32px;
    }

    .stat {
        min-width: 120px;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 550px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 20px 0 15px;
    }

    .hero-left h1 {
        font-size: 1.9rem;
    }

    .hero-buttons .btn-sm {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat {
        min-width: 130px;
        flex: 1;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 24px 20px;
    }

    .contact-section {
        padding: 24px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .social-icons {
        text-align: center;
    }

    .section-title {
        margin: 35px 0 25px;
    }

    .modal-content {
        padding: 28px 20px;
        width: 95%;
    }

    .hero-right img {
        border-radius: 24px;
    }
}

@media (max-width: 380px) {
    .hero-left h1 {
        font-size: 1.7rem;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn-sm {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .stat {
        min-width: 100px;
    }
}

button,
.btn-sm,
input,
textarea {
    font-family: inherit;
}

/* Additional utility */
.text-center {
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}