/* ============================================
   1. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0e0e0e;
    color: #f0f0f0;
    line-height: 1.6;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

a {
    color: #4f8ef7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   3. LAYOUT
   ============================================ */
section {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

/* Full-width alternate background strip */
.bg-alt {
    background-color: #111116;
    max-width: 100%;
    margin: 0;
    padding: 5rem calc(50vw - 450px + 1.5rem);
}

/* ============================================
   4. SECTION HEADINGS
   ============================================ */
section h2 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 3px;
    background-color: #4f8ef7;
    border-radius: 2px;
}

/* ============================================
   5. SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.from-left {
    transform: translateX(-32px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   6. LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 2px solid #4f8ef7;
    color: #4f8ef7;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    z-index: 100;
    transition: background-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
    background-color: #4f8ef7;
    color: #0e0e0e;
}

/* ============================================
   7. HERO
   ============================================ */
.hero {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 8rem 1.5rem 6rem;
    text-align: center;
    background-color: #0e0e0e;
    background-image: radial-gradient(circle, rgba(79, 142, 247, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(79, 142, 247, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    animation: heroFadeIn 0.7s ease forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-photo {
    display: block;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid #4f8ef7;
    animation: photoGlow 3s ease-in-out infinite;
}

@keyframes photoGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 142, 247, 0.35); }
    50%       { box-shadow: 0 0 0 10px rgba(79, 142, 247, 0); }
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    font-size: 0.82rem;
    color: #4ade80;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.avail-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #4ade80;
    border-radius: 50%;
    animation: availPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes availPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50%       { opacity: 0.75; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

.hero-label {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(79, 142, 247, 0.12);
    border: 1px solid rgba(79, 142, 247, 0.35);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #4f8ef7;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.tagline {
    font-size: 1.15rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0.75rem auto 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #4f8ef7;
    color: #0e0e0e;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.cta-button:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* ============================================
   8. ABOUT
   ============================================ */
.about p {
    max-width: 700px;
    color: #d0d0d0;
    margin-bottom: 1rem;
}

/* ============================================
   9. SKILLS
   ============================================ */
.skills-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.skills-group-label:first-of-type {
    margin-top: 0;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.skill-chip {
    padding: 0.5rem 1.1rem;
    background-color: #1a1a22;
    border: 1px solid #2a3550;
    border-radius: 100px;
    font-size: 0.9rem;
    color: #c8d8f0;
}

.skill-chip--ai {
    background-color: rgba(79, 142, 247, 0.08);
    border-color: rgba(79, 142, 247, 0.3);
    color: #a8c4f5;
}

/* ============================================
   10. SERVICES
   ============================================ */
.services-intro {
    color: #b0b0b0;
    margin-bottom: 2rem;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    border: 1px solid #2a3550;
    border-top: 3px solid #4f8ef7;
    border-radius: 6px;
    padding: 2rem 1.5rem;
    background-color: #141418;
}

.service-icon {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #4f8ef7;
    opacity: 0.85;
    display: block;
}

.service-card h3 {
    color: #4f8ef7;
}

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

.service-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #1e2635;
}

.service-tools span {
    padding: 0.2rem 0.65rem;
    background-color: rgba(79, 142, 247, 0.08);
    border: 1px solid rgba(79, 142, 247, 0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    color: #7aaaf0;
}

/* ============================================
   11. HOW I WORK
   ============================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.1rem;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, #4f8ef7, rgba(79, 142, 247, 0.2));
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: #4f8ef7;
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.process-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: #999;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ============================================
   13. EXPERIENCE
   ============================================ */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.exp-card {
    border-left: 3px solid #4f8ef7;
    padding: 1.25rem 1.5rem;
    background-color: #141418;
    border-radius: 0 6px 6px 0;
}

.exp-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.exp-company {
    font-weight: 700;
    font-size: 1rem;
    color: #f0f0f0;
}

.exp-period {
    font-size: 0.85rem;
    color: #888;
}

.exp-role {
    color: #4f8ef7;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.exp-desc {
    color: #c0c0c0;
    font-size: 0.95rem;
}

.exp-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #4f8ef7;
    font-weight: 600;
    transition: opacity 0.2s;
}

.exp-link:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* ============================================
   12. CREDENTIALS
   ============================================ */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cred-card {
    border: 1px solid #2a3550;
    border-top: 3px solid #4f8ef7;
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
    background-color: #141418;
}

.cred-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(79, 142, 247, 0.12);
    border: 1px solid rgba(79, 142, 247, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4f8ef7;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.cred-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 0.3rem;
}

.cred-institution {
    color: #4f8ef7;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cred-detail {
    color: #888;
    font-size: 0.85rem;
}

/* ============================================
   13. CONTACT
   ============================================ */
.contact-subtext {
    color: #b0b0b0;
    margin-bottom: 2rem;
}

#contactForm {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#contactForm label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 1rem;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #4f8ef7;
}

#contactForm button[type="submit"] {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #4f8ef7;
    color: #0e0e0e;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

#contactForm button[type="submit"]:hover {
    opacity: 0.85;
}

.form-thanks {
    margin-top: 1.5rem;
    color: #4f8ef7;
    font-weight: 600;
}

/* ============================================
   14. FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: #888;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

/* ============================================
   15. RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .bg-alt {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }

    .hero {
        padding: 6rem 1.25rem 4rem;
    }

    section {
        padding: 3rem 1.25rem;
    }

    .bg-alt {
        padding: 3rem 1.25rem;
    }

    .services-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
}
