@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Jost:wght@300;400&display=swap');

/* Basic page setup */
body {
    margin: 0;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

/* ─── Hero section ────────────────────────────────────── */
.hero {
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-left: 7%;

    background: url('Background/guerrillabuzz-3TU34jaW88k-unsplash.jpg') center/cover no-repeat;
    background-size: cover;
    position: relative;
}

/* Overlay for readability */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Eyebrow label above name */
.hero-eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 1rem;
}

/* Typewriter name */
#typed-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: 0.03em;
    color: white;
    margin-bottom: 2.5rem;

    border-right: 1.5px solid rgba(255, 255, 255, 0.7);
    padding-right: 4px;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    0%, 50%, 100% { border-color: rgba(255, 255, 255, 0.7); }
    25%, 75%       { border-color: transparent; }
}

/* ─── Button container ────────────────────────────────── */
.buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
    padding: 0.75rem 1.5rem;
    background: #2ecc71;
    color: black;
    text-decoration: none;
    border-radius: 6px;

    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.03em;

    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Arrow */
.btn::after {
    content: "→";
    position: absolute;
    right: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: black;
}

.btn:hover {
    background: #27ae60;
    padding-right: 2rem;
}

.btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Coming soon page ───────────────────────────────── */
.coming-soon-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    color: white;

    background: url('Background/guerrillabuzz-3TU34jaW88k-unsplash.jpg') center/cover no-repeat;
    background-size: cover;
    position: relative;
}

/* Overlay */
.coming-soon-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

/* Back button */
.back-btn {
    position: absolute;
    top: 2.2rem;
    left: 2.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease, gap 0.3s ease;
}

.back-btn:hover {
    color: rgba(255, 255, 255, 1);
    gap: 0.75rem;
}

.back-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.back-btn:hover .back-arrow {
    transform: translateX(-3px);
}

.license-btn {
    position: fixed;
    bottom: 2.2rem;
    left: 2.5rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.license-btn::before {
    content: "©";
    font-size: 0.85rem;
    opacity: 0.75;
}

.license-btn:hover {
    color: rgba(255, 255, 255, 1);
}

/* Hero content (coming soon) */
.coming-soon-hero .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Eyebrow label */
.eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.75rem;
}

/* Main heading */
.coming-soon-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(4rem, 10vw, 7.5rem);
    line-height: 1;
    letter-spacing: 0.04em;
    margin: 0;
    color: #fff;
}

/* Subtitle */
.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
    margin: 0.75rem 0 0;
}

/* ─── Interior pages (About, Projects) ───────────────── */
.page-hero {
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8rem 7% 6rem;

    background: url('Background/guerrillabuzz-3TU34jaW88k-unsplash.jpg') center/cover no-repeat;
    position: relative;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.page-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.page-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    letter-spacing: 0.03em;
    margin: 0 0 1.5rem;
    color: white;
}

.page-content .eyebrow {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.75rem;
}

.page-content .subtitle {
    margin: 0 0 3rem;
}

/* Body text */
.body-text {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    margin-top: 1rem;
}

.body-text p {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 1.25rem;
}

.inline-link {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    transition: text-decoration-color 0.2s ease;
}

.inline-link:hover {
    text-decoration-color: white;
}

/* ─── About page layout ───────────────────────────────── */
.about-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5rem;
    width: 100%;
    max-width: 1000px;
}

.about-layout .page-content {
    max-width: 560px;
    flex: 1;
}

.about-photo-wrap {
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.about-photo {
    width: 300px;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ─── Contact row ─────────────────────────────────────── */
.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: white;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* ─── Projects grid ───────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.project-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.project-card--photo:hover {
    border-color: rgba(255,255,255,1);
}

.project-label {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.project-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    color: white;
    margin: 0;
}

.project-card p {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    flex: 1;
}

.project-card .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* ─── Report Bug button ───────────────────────────────── */
.btn-report {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    overflow: hidden;
    transition: background 0.3s ease;
}

.btn-report::after {
    content: "→";
    position: absolute;
    right: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: white;
}

.btn-report:hover {
    background: #c0392b;
    padding-right: 2rem;
}

.btn-report:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.btn-report--bottom {
    top: auto;
    bottom: 1.5rem;
}

/* ─── Bug report modal ────────────────────────────────── */
.bug-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.bug-modal-overlay.active {
    display: flex;
}

.bug-modal {
    position: relative;
    background: #0f1419;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
    margin: 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.bug-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.bug-modal-close:hover {
    color: white;
}

.bug-modal-eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 0.6rem;
}

.bug-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: white;
    margin: 0 0 1.75rem;
}

.bug-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bug-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bug-form-group label {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.bug-form-group input,
.bug-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    color: white;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s ease;
    outline: none;
}

.bug-form-group input::placeholder,
.bug-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.bug-form-group input:focus,
.bug-form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.35);
}

.bug-form-group input.field-error,
.bug-form-group textarea.field-error {
    border-color: #e74c3c;
}

.bug-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.btn-submit-bug {
    padding: 0.75rem 1.5rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: background 0.3s ease;
}

.btn-submit-bug:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit-bug:not(:disabled):hover {
    background: #c0392b;
}

.btn-clear-bug {
    padding: 0.75rem 1.5rem;
    background: #b8860b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: background 0.3s ease;
}

.btn-clear-bug:hover {
    background: #9a7009;
}

.bug-form-status {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    display: none;
}

.bug-form-status.success {
    display: block;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.bug-form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}