/* ============================================
   STYLES.CSS — Cleaned, no duplicates
   ============================================ */

/* General Reset and Body Styling */
* {
    box-sizing: border-box;
    font-family: "Playwrite NZ Basic", sans-serif;
}

body {
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    text-align: center;
    font-family: "Playwrite NZ Basic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h1,
h2,
h3,
h4 {
    color: white !important;
    font-weight: 400;
}

h2,
h3,
h4 {
    font-weight: 400;
}

p {
    font-weight: 400;
}

label {
    color: white !important;
}

/* ── HERO SECTION ──────────────────────────── */
#landing {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 140, 255, 0.6)), url('/images/backgroundPortfilio.jpg') center/cover;
    position: relative;
    padding: 20px;
}

#landing .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    max-width: 800px;
    text-align: center;
}

#landing h1 {
    color: white;
}

#landing h2 {
    font-size: 3.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out forwards;
}

#landing p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    animation: fadeIn 1s ease-out 0.5s forwards;
    color: white;
}

#landing button {
    background: #3498db;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    font-weight: 400;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out 1s forwards;
}

#landing button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Image Frame */
.image-frame {
    width: 120px;
    height: 120px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    margin: 20px auto;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-frame:hover {
    transform: scale(1.1);
    box-shadow: 0px 30px 100px rgba(26, 152, 210, 0.681);
}

/* Hero social icons */
.contact-info {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.contact-info a {
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info a:hover {
    color: #3498db;
    transform: scale(1.2);
}

/* ── GENERAL SECTIONS ──────────────────────── */
.section>* {
    position: relative;
    z-index: 1;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px !important;
    color: #ffffff;
}

.section p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 100%;
    margin: auto;
    margin-bottom: 2rem;
}

.button.is-primary {
    background-color: #3498db !important;
}

.subtitle {
    max-width: 50% !important;
}

/* ── TIMELINE ──────────────────────────────── */
#timeline {
    position: relative;
    overflow: hidden;
}

#timeline .container {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 10px;
}

/* Center spine */
.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: #3498db;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

/* Center dot */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 12px;
    background: #3498db;
    border: 2px solid #0d1117;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 20%;
    z-index: 1;
}

.timeline-content {
    width: 46%;
    background: #fff;
    padding: 10px 13px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    color: black;
    text-align: left !important;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -8px;
    right: auto;
    transform: none;
    border: 8px solid transparent;
    border-right-color: #fff;
    border-left: 0;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px;
    left: auto;
    transform: none;
    border: 8px solid transparent;
    border-left-color: #fff;
    border-right: 0;
}

.timeline-content h3 {
    color: black !important;
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 400;
}

.timeline-item:nth-child(odd) .timeline-content h3 {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content h3 {
    text-align: left;
}

.timeline-content h4 {
    color: #000 !important;
    font-size: 15px;
    margin: 0 0 3px 0;
    text-align: center;
    font-weight: 400;
}

.timeline-text {
    color: #333 !important;
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.4;
}

.timeline-content a {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #3498db;
    text-decoration: none;
}

.timeline-content a:hover {
    text-decoration: underline;
}

/* ── CONTACT SECTION ───────────────────────── */
#contact {
    background: #0d1117;
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 60%, rgba(52, 152, 219, 0.13) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 20%, rgba(99, 179, 237, 0.09) 0%, transparent 65%);
    pointer-events: none;
}

#contact::after {
    display: none;
}

#contact .container {
    position: relative;
    z-index: 1;
}

.contact-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.13);
    border: 15px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 1px rgba(52, 152, 219, 0.08),
        0 8px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    border-style: solid;
}

/* Eyebrow badge */
.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.25);
    border-radius: 100px;
    padding: 0.3rem 0.85rem;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #63b3ed;
    margin-bottom: 1.5rem;
}

.contact-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3498db;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.contact-heading {
    font-family: 'Playwrite NZ Basic', cursive;
    font-size: clamp(1.9rem, 5vw, 3rem);
    color: #eef2ff;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.contact-sub {
    color: #6b7a99;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Social pills */
.contact-socials {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    justify-content: center;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #94a3b8;
    font-size: 100%;
    font-weight: 400;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.social-pill:hover {
    border-color: rgba(52, 152, 219, 0.5);
    color: #63b3ed;
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.15);
}

.social-pill i {
    font-size: 0.95rem;
}

/* Divider */
.contact-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    color: #fff;
    font-size: 17px;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* Form card */
.contact-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff !important;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(52, 152, 219, 0.55);
    background: rgba(52, 152, 219, 0.05);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #2980b9, #3498db);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #3498db, #5dade2);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(52, 152, 219, 0.35);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.contact-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.contact-email-note {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #2e3d55;
}

.contact-email-note a {
    color: #3498db;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px dashed rgba(52, 152, 219, 0.3);
    transition: color 0.2s;
}

.contact-email-note a:hover {
    color: #63b3ed;
}

/* ── FOOTER ────────────────────────────────── */
footer {
    line-height: 2.5 !important;
    color: white !important;
}

/* ── BACK TO TOP ───────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 1000;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top i {
    margin: 0;
}

/* ── KEYFRAMES ─────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── MEDIA QUERIES ─────────────────────────── */
@media (max-width: 768px) {
    #landing {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 140, 255, 0.7)),
            url('images/backgroundPortfilio.jpg') center/cover no-repeat;
    }

    #landing h2 {
        font-size: 2.5rem;
    }

    #landing p {
        font-size: 1rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar a {
        font-size: 0.9rem;
        color: black !important;
    }

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

    .section p {
        font-size: 1rem;
    }

    .image-frame {
        width: 100px;
        height: 100px;
    }

    .contact-inner {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    @media (max-width: 480px) {

        /* Further adjustments for very small screens */
        .timeline-content {
            width: 12rem;
            /* Full width for the timeline items */
            padding: 20px;
            /* Adjust padding */
        }

        .timeline-content h3 {
            font-size: 20px;
        }

        .timeline-content h4 {
            font-size: 14px;
        }

        .timeline-content a {
            font-size: 12px;
            /* Smaller font for links */
        }

        /* Adjust spacing */
        .timeline-item {
            margin-bottom: 15px;
        }
    }
}