/* SCROLL ANIMATIONS */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all .6s ease;
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all .6s ease;
}

.zoom-in {
    opacity: 0;
    transform: scale(.9);
    transition: all .6s ease;
}

.fade-up.show,
.fade-left.show,
.fade-right.show,
.zoom-in.show {
    opacity: 1;
    transform: none;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle at top right,
        rgba(37,99,235,.12),
        transparent 30%),

        radial-gradient(circle at bottom left,
        rgba(245,158,11,.12),
        transparent 30%),

        var(--bg-page);
}

.error-card {
    max-width: 720px;
    margin: auto;
    text-align: center;

    background: var(--bg-surface);

    padding: 80px 50px;

    border-radius: 32px;

    box-shadow:
        0 25px 80px rgba(15,23,42,.08);
}

.error-code {
    display: block;

    font-size: 120px;
    line-height: 1;

    font-weight: 900;

    color: var(--primary);

    margin-bottom: 20px;
}

.error-card h1 {
    font-size: 42px;
    font-weight: 800;

    color: var(--text-primary);

    margin-bottom: 20px;
}

.error-card p {
    font-size: 18px;
    color: var(--text-secondary);

    max-width: 500px;
    margin: 0 auto 40px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .error-card {
        padding: 50px 30px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-card h1 {
        font-size: 30px;
    }

}

body {
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-main, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.hero-section {
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, .12), transparent 30%),
        var(--bg-page);
}

.hero-section h1,
.page-hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 900;
    letter-spacing: -.06em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-section p,
.page-hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-card {
    background: var(--dark);
    color: var(--white);
    border-radius: 34px;
    padding: 42px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
}

.hero-card span {
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-card strong {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.hero-card p {
    color: rgba(255,255,255,.72);
    margin: 0;
}

.page-hero {
    padding: 120px 0 70px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 30%),
        var(--bg-page);
}

.page-hero-inner {
    max-width: 860px;
}

.content-section {
    padding: 80px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-heading h2,
.content-card h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -.045em;
    margin-bottom: 18px;
}

.section-heading p,
.content-card p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 12px;
}

.feature-card,
.content-card,
.contact-info-card,
.contact-form-card,
.about-box {
    background: var(--bg-surface);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
    border: 1px solid rgba(148, 163, 184, .15);
}

.feature-card {
    height: 100%;
    transition: .25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 65px rgba(15, 23, 42, .09);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 850;
    margin-bottom: 14px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.portfolio-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--bg-surface);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
}

.portfolio-image {
    height: 220px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(245, 158, 11, .18)),
        var(--light);
}

.portfolio-content {
    padding: 26px;
}

.portfolio-content span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.portfolio-content h3 {
    font-weight: 850;
    margin: 8px 0;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin: 0;
}

.about-box {
    background: var(--dark);
    color: var(--white);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.about-box strong {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.about-box p {
    color: rgba(255,255,255,.72);
    margin: 0;
}

.contact-line {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.contact-line strong,
.contact-line span,
.contact-line a {
    display: block;
}

.contact-line strong {
    margin-bottom: 4px;
}

.contact-line a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.contact-form-card .form-control {
    border-radius: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(148, 163, 184, .35);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-card {
        min-height: 260px;
    }

    .content-section {
        padding: 60px 0;
    }
}

.main-navbar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148,163,184,.12);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-brand img {
    height: 42px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-left: 12px;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-content p {
    color: rgba(255,255,255,.7);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,.6);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h5 {
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-bottom-links a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: .2s ease;
}

.footer-links a:hover,
.footer-bottom-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-content small {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.portfolio-link {
    display: inline-flex;
    margin-top: 14px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.portfolio-link:hover {
    color: var(--accent);
}

.site-footer a {
    text-decoration: none;
    color: var(--light);
}

.site-footer a:hover {
    color: var(--accent);
}