:root {
    --primary: #1e3a8a;
    --primary-dark: #14285f;
    --accent: #3b82f6;
    --accent-light: #dbeafe;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --text: #334155;
    --light-text: #64748b;
    --white: #ffffff;
    --bg: #f8fafc;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --transition: all 0.35s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-heading h2,
.section-content h2,
.cta-box h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-heading p,
.section-content p,
.cta-box p {
    color: var(--light-text);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    padding: 14px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--dark);
    font-size: 1.05rem;
}

.logo img {
    height: 30px;
    object-fit: contain;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar a {
    color: var(--dark);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.navbar a:hover {
    color: var(--accent);
}

.navbar a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../assets/img/hero.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 700px;
    color: var(--white);
}

.tag {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

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

.hero p {
    max-width: 620px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(59, 130, 246, 0.34);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.section-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

.feature-card,
.service-card,
.project-card,
.contact-form,
.cta-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card {
    padding: 22px;
}

.feature-card h3,
.service-card h3,
.project-card h3,
.why-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.feature-card p,
.service-card p,
.project-card p,
.why-card p {
    color: var(--light-text);
}

.feature-card:hover,
.service-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    border-color: rgba(59, 130, 246, 0.22);
}

.feature-card:hover h3,
.service-card:hover h3,
.project-card:hover h3 {
    color: var(--accent);
}

.services {
    background: var(--bg);
}

.services-grid,
.projects-grid,
.why-grid {
    display: grid;
    gap: 24px;
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.06);
}

.card-body,
.project-content {
    padding: 24px;
}

.dark-section {
    background: linear-gradient(135deg, #0f172a, #172554);
    color: var(--white);
}

.dark-section .section-heading h2 {
    color: var(--white);
}

.dark-section .section-heading p {
    color: rgba(255, 255, 255, 0.75);
}

.dark-section .section-subtitle {
    color: #93c5fd;
}

.why-grid {
    grid-template-columns: repeat(4, 1fr);
}

.why-card {
    padding: 28px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.why-card h3 {
    color: var(--white);
}

.why-card p {
    color: rgba(255, 255, 255, 0.75);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    border-color: rgba(96, 165, 250, 0.35);
    background: #243447;
}

.why-card:hover h3 {
    color: #93c5fd;
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.project-card {
    overflow: hidden;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.05),
            rgba(15, 23, 42, 0.14));
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    object-position: center 35%;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.94) contrast(1.04) saturate(0.96);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(0.98) contrast(1.05) saturate(1);
}

.project-content {
    padding: 26px 24px 28px;
    background: #ffffff;
}

.project-card h3 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 1rem;
}

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 40px;
    background: #ffffff;
}

.contact-info {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.contact-item h4 {
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--light-text);
}

.contact-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    background: #fff;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.btn-full {
    width: 100%;
}

.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 26px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .navbar {
        position: absolute;
        top: 78px;
        right: 4%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 220px;
        border-radius: 16px;
        box-shadow: var(--shadow);
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-heading h2,
    .section-content h2,
    .cta-box h2 {
        font-size: 2rem;
    }

    .services-grid,
    .why-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-image img {
        height: 260px;
        object-position: center 30%;
    }
}