/* =========================
   Base
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    color: #f1f5f9;
    background:
            radial-gradient(circle at top, rgba(16, 185, 129, 0.08), transparent 35%),
            linear-gradient(180deg, #020617 0%, #03101b 100%);
}

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

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    opacity: 0.95;
}

section {
    scroll-margin-top: 100px;
}

/* =========================
   Background
========================= */

.background-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-parallax {
    position: absolute;
    inset: -10%;
    will-change: transform;
}

.bg-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(16, 185, 129, 0.20) 0%,
            rgba(16, 185, 129, 0.12) 30%,
            rgba(16, 185, 129, 0.06) 55%,
            rgba(16, 185, 129, 0.02) 75%,
            rgba(16, 185, 129, 0) 100%
    );
    filter: blur(90px);
}

.bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.25;
    will-change: transform;
}

.bg-shape.blue {
    background: radial-gradient(
            circle at 30% 30%,
            rgba(59, 130, 246, 0.45) 0%,
            rgba(59, 130, 246, 0.22) 35%,
            rgba(59, 130, 246, 0.08) 65%,
            rgba(59, 130, 246, 0) 100%
    );
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.18);
    filter: blur(12px);
}

.bg-shape.green {
    background: radial-gradient(
            circle at 30% 30%,
            rgba(52, 211, 153, 0.45) 0%,
            rgba(52, 211, 153, 0.20) 35%,
            rgba(52, 211, 153, 0.07) 65%,
            rgba(52, 211, 153, 0) 100%
    );
    box-shadow: 0 0 80px rgba(52, 211, 153, 0.18);
    filter: blur(14px);
}

.bg-shape.white {
    background: radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.16) 45%,
            rgba(255, 255, 255, 0.05) 70%,
            rgba(255, 255, 255, 0) 100%
    );
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.14);
    filter: blur(14px);
}

/* =========================
   Layout
========================= */

.container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    position: relative;
    padding: 2rem 0;
}

.section-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.page-content {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

/* =========================
   Utility
========================= */

.parallax-layer {
    will-change: transform;
}

.highlight {
    color: #34d399;
}

/* =========================
   Header
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.site-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f8fafc;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.main-nav a {
    color: #cbd5e1;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

/* =========================
   Hero
========================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    min-height: 560px;
    position: relative;
    z-index: 2;
}

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

.hero-badge,
.badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    margin: 0;
    max-width: 10ch;
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-text {
    max-width: 38rem;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.hero-text h1 {
    margin: 0 0 1rem 0;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #f8fafc;

}

.hero-text p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-section.small {
    padding: 2rem 0 2rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 520px;
}

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

.hero-image-card {
    position: relative;
}

.hero-image {
    width: 24rem;
    max-width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

/* =========================
   Cards / Glass
========================= */

.content-card,
.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

/* =========================
   Buttons
========================= */

.btn,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.3rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition:
            transform 0.2s ease,
            background 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            box-shadow 0.25s ease;
}

.btn:hover,
.primary-button:hover {
    transform: translateY(-2px);
}

.btn-primary,
.primary-button {
    border: 1px solid #10b981;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #03100b;
}

.btn-primary:hover,
.primary-button:hover {
    border-color: #059669;
    background: linear-gradient(135deg, #2cc58f, #059669);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.28);
}

.btn-outline {
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.35);
    color: #f1f5f9;
}

.btn-outline:hover {
    border-color: #475569;
    background: #0f172a;
}

/* =========================
   About
========================= */

.about-text {
    max-width: 52rem;
    margin: 0 0 1rem 0;
    line-height: 1.8;
    color: #cbd5e1;
}

.about-actions {
    margin-top: 2rem;
}

/* =========================
   Contact
========================= */

.contact-section {
    padding: 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

.contact-info h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.6rem;
    color: #ffffff;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 28px;
}

.info-item {
    margin-bottom: 18px;
}

.info-item strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.info-item span {
    color: rgba(255, 255, 255, 0.74);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.86);
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: rgba(52, 211, 153, 0.38);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.08);
}

/* =========================
   Projects
========================= */

.projects-grid-section {
    margin-top: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    padding: 28px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 211, 153, 0.24);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.project-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    color: #9ff3cf;
    background: rgba(52, 211, 153, 0.10);
    border: 1px solid rgba(52, 211, 153, 0.18);
}

.project-card h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    color: #ffffff;
}

.project-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
}

.project-link {
    color: #8af0c5;
    text-decoration: none;
    font-weight: 600;
}

.project-link:hover {
    color: #c9ffe8;
}

/* =========================
   Footer
========================= */

.site-footer {
    margin-top: 12rem;
    border-top: 1px solid #1e293b;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .hero-title {
        max-width: none;
        font-size: 2.75rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .hero-image-wrapper {
        justify-content: center;
        min-height: auto;
        margin-top: 1rem;
    }

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

    .page-content {
        width: min(100% - 24px, 1100px);
        padding: 24px 0 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.1rem;
    }

    .section {
        padding: 4rem 0;
    }

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

    .site-title {
        font-size: 1.1rem;
    }

    .site-subtitle {
        font-size: 0.8rem;
    }

    .hero-badge,
    .badge {
        font-size: 0.8rem;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .primary-button {
        width: 100%;
    }

    .hero-image {
        width: 19rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bg-glow {
        width: 420px;
        height: 420px;
        top: 18%;
        filter: blur(70px);
    }
}

@media (max-width: 540px) {
    .hero {
        padding-top: 4.5rem;
    }

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

    .hero-image {
        width: 16rem;
        border-radius: 1.25rem;
    }

    .contact-section,
    .project-card,
    .content-card {
        padding: 22px;
        border-radius: 22px;
    }
}