/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #172554;
    --accent-color: #b91c1c;
    --dark-color: #0b1220;
    --slate-800: #172033;
    --slate-700: #334155;
    --slate-600: #5b677a;
    --light-color: #f8fafc;
    --soft-blue: #eef5ff;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.14);
    --border-radius: 8px;
    --border-color: rgba(203, 213, 225, 0.72);
    --header-height: 120px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--slate-700);
    overflow-x: hidden;
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(115deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 48%, rgba(238, 245, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0;
    height: var(--header-height);
    padding: 0;
    transition: var(--transition);
    box-shadow: none;
    overflow: visible;
    animation: headerSlideDown 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.navbar.scrolled {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    background: linear-gradient(115deg, rgba(248, 250, 252, 0.99) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(238, 245, 255, 0.97) 100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    width: 400px;
    height: var(--header-height);
    position: relative;
    overflow: visible;
    z-index: 2;
    animation: headerFadeUp 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo:hover {
    opacity: 0.95;
}

.logo-img {
    width: 400px;
    height: 300px;
    object-fit: fill;
    transition: var(--transition);
    filter: drop-shadow(0 12px 26px rgba(15, 23, 42, 0.14));
    max-width: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-42%);
    transform-origin: left center;
}

.logo:hover .logo-img {
    transform: translateY(-42%) scale(1.01);
    filter: drop-shadow(0 16px 30px rgba(15, 23, 42, 0.18));
}

.nav-menu {
    display: flex;
    gap: 1.45rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--slate-700);
    font-size: 0.86rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.55rem 0;
    animation: headerFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav-link:nth-child(1) {
    animation-delay: 0.2s;
}

.nav-link:nth-child(2) {
    animation-delay: 0.26s;
}

.nav-link:nth-child(3) {
    animation-delay: 0.32s;
}

.nav-link:nth-child(4) {
    animation-delay: 0.38s;
}

.nav-link:nth-child(5) {
    animation-delay: 0.44s;
}

.nav-link:nth-child(6) {
    animation-delay: 0.5s;
}

.nav-link:nth-child(7) {
    animation-delay: 0.56s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--dark-color);
    transition: var(--transition);
    border-radius: 2px;
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headerFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 220px 0 80px;
    background: linear-gradient(115deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 48%, rgba(238, 245, 255, 0.95) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
    pointer-events: none;
}

.hero-inner {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 920px;
    padding: 0;
    text-align: center;
}

.hero-motto {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: clamp(3.1rem, 5vw, 5.35rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    line-height: 1.1;
    letter-spacing: 0;
}

.hero-title span {
    display: block;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--dark-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: #0f766e;
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-color);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--light-color);
    border-color: var(--slate-600);
    transform: translateY(-2px);
}

section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--dark-color);
    letter-spacing: 0;
}

.services {
    background: var(--light-color);
}

.section-white {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.4rem;
    border-radius: var(--border-radius);
    text-align: left;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 138, 0.28);
}

.icon {
    width: 48px;
    height: 48px;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--light-color);
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--slate-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.project-card {
    padding: 2.6rem;
}

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

.feature-list {
    margin: 1.4rem 0 0;
    padding-left: 1.15rem;
    color: var(--slate-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

.feature-list li + li {
    margin-top: 0.45rem;
}

#projects {
    background: var(--white);
    padding: 120px 0;
}

#projects .service-card {
    border: 1px solid var(--border-color);
    background: var(--white);
}

#projects .service-card:hover {
    border-color: var(--primary-color);
}

.security-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1.5rem 0;
}

.security-tag {
    background: var(--light-color);
    color: var(--slate-700);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about {
    background: linear-gradient(180deg, var(--light-color), var(--white));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.7;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-item {
    height: 180px;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--white), var(--soft-blue));
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.grid-item:hover {
    border-color: rgba(30, 58, 138, 0.32);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.clients {
    background: var(--light-color);
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.4rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(30, 58, 138, 0.28);
}

.client-logo {
    width: 116px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 1.4rem;
}

.client-card h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.client-card p {
    color: var(--slate-600);
    font-size: 0.94rem;
    line-height: 1.6;
}

.pricing {
    background: var(--white);
}

.pricing-intro {
    max-width: 820px;
    margin: -2rem auto 3rem;
    text-align: center;
}

.pricing-intro p {
    color: var(--slate-600);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pricing-grid,
.charge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.charge-grid {
    margin-top: 1.25rem;
}

.price-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.2rem;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.price-card.featured {
    background: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

.price-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
}

.price-card.featured .price-label {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.price-card h3 {
    color: var(--dark-color);
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.price-card.featured h3,
.price-card.featured p {
    color: var(--white);
}

.price-card p {
    color: var(--slate-600);
    font-size: 0.94rem;
    line-height: 1.65;
}

.price-card.featured p {
    opacity: 0.82;
}

.contact {
    background: linear-gradient(180deg, var(--light-color), #edf4ff);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 6rem;
}

.contact-title {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--slate-600);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.contact-form input,
.contact-form textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    width: 100%;
    transition: var(--transition);
}

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

.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 4.5rem 0;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 1.25rem;
}

.footer p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background:
            linear-gradient(115deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 48%, rgba(238, 245, 255, 0.95) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: none;
        padding: 2rem 0;
        gap: 1.5rem;
        margin-left: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        width: 400px;
        height: 300px;
    }

    .hero {
        padding-top: 220px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 760px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

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

@media (max-width: 768px) {
    :root {
        --header-height: 112px;
    }

    .nav-menu {
        top: var(--header-height);
    }
    
    .hero-title {
        font-size: 2.75rem;
    }

    .hero {
        min-height: 72vh;
        padding: 205px 0 64px;
    }

    .hero-inner {
        width: min(100% - 32px, 640px);
    }

    .hero-motto {
        font-size: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo-img {
        width: 360px;
        height: 260px;
    }

    .logo {
        width: 360px;
    }

}

@media (max-width: 520px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo-img {
        width: calc(100vw - 90px);
        height: 220px;
    }

    .logo {
        width: calc(100vw - 90px);
    }

    .nav-menu {
        top: var(--header-height);
    }

    .hero {
        padding-top: 195px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .services-grid,
    .project-grid,
    .client-grid,
    .pricing-grid,
    .charge-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

}
