/* Base reset & typography */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0b1621;
    background: #020617;
    line-height: 1.6;
    position: relative;
}

/* Atmospheric background: gradient sky + simple mountains */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 10% 0%, #60a5fa 0%, #0b1120 45%, #020617 100%);
    overflow: hidden;
}

.page-bg::before,
.page-bg::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 140%;
    height: 40%;
    left: -20%;
    background: linear-gradient(to top, #020617 0%, rgba(15,23,42,0.7) 55%, transparent 100%);
    border-radius: 50% 50% 0 0;
    bottom: -10%;
}

.page-bg::after {
    height: 30%;
    bottom: -5%;
    filter: blur(2px);
    opacity: 0.9;
}

/* Layout containers */
main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(15,23,42,0.92), rgba(15,23,42,0.75), transparent);
    border-bottom: 1px solid rgba(148,163,184,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #020617;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

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

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.15rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #22c55e, #0ea5e9);
    transition: width 0.22s ease-out;
}

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

/* Hero section */
.hero {
    padding: 4rem 0 3rem;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 720px;
    color: #e5e7eb;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: #a5b4fc;
    margin-bottom: 0.9rem;
}

.hero h1 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(2.3rem, 3vw + 1.5rem, 3.4rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: #cbd5f5;
    max-width: 42rem;
    font-size: 0.98rem;
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.18s ease-out;
}

.btn.primary {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #020617;
    border-color: rgba(15,23,42,0.8);
}

.btn.primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(148,163,184,0.6);
    color: #e5e7eb;
}

.btn.ghost:hover {
    background: rgba(15,23,42,0.75);
}

/* Sections */
.section {
    padding: 3.5rem 0 3rem;
    color: #e5e7eb;
}

.section-alt {
    background: radial-gradient(circle at 10% 0%, rgba(148,163,184,0.09), rgba(15,23,42,0.9));
    border-radius: 1.5rem;
    padding-inline: 1.5rem;
    margin-inline: -1.5rem;
}

.section-header {
    max-width: 720px;
    margin-bottom: 2.4rem;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
}

.section-header p {
    font-size: 0.98rem;
    color: #cbd5f5;
}

/* Card grid */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-grid.one-col {
    grid-template-columns: minmax(0, 1fr);
}

.card {
    background: rgba(15,23,42,0.94);
    border-radius: 1.1rem;
    border: 1px solid rgba(148,163,184,0.35);
    padding: 1.5rem 1.6rem;
    box-shadow:
        0 18px 45px rgba(15,23,42,0.75),
        0 0 0 1px rgba(15,23,42,0.8);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    font-family: "Playfair Display", serif;
    color: #e5e7eb;
}

.card p {
    font-size: 0.95rem;
    color: #d1d5db;
}

/* Variant pill card */
.card-pill {
    background: linear-gradient(145deg, rgba(15,23,42,0.98), rgba(6,78,59,0.9));
}

/* Lists */
.bullet-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.4rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.45rem;
    font-size: 0.94rem;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #22c55e;
}

/* Projects */
.project-card {
    position: relative;
}

.project-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #86efac;
    margin-bottom: 0.4rem;
}

/* Contact */
.contact-grid {
    max-width: 640px;
    margin: 0 auto;
}

.contact-card p {
    margin-bottom: 0.6rem;
}

.contact-card a {
    color: #7dd3fc;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.small {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(148,163,184,0.35);
    padding: 1.4rem 1.5rem 1.9rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.9rem;
    }

    main {
        padding-top: 6rem;
    }

    .hero {
        padding-top: 3rem;
    }
}