:root {
    --bg-body: #030617;
    --bg-section: #050b1f;
    --bg-card: #070b24;
    --accent: #f4b41a;
    --text-muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #151b3d 0, #020312 55%, #000 100%);
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.94), rgba(3, 7, 18, 0.70), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--accent);
}

.hero-section {
    min-height: 100vh;
    padding-top: 96px;
    padding-bottom: 96px;
    display: flex;
    align-items: center;
}

.hero-subtitle {
    letter-spacing: 0.23em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.hero-photo-wrapper {
    width: 320px;
    max-width: 100%;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.9);
}

.hero-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title span {
    color: var(--accent);
}

.hero-description {
    max-width: 520px;
    color: var(--text-muted);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    transition: all 0.2s ease-out;
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.section-dark {
    background-color: var(--bg-section);
}

.section-title-tag {
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.about-section {
    position: relative;
    overflow: hidden;
}

.about-card {
    background:
        radial-gradient(circle at 0 0, rgba(244, 180, 26, 0.16), transparent 55%),
        rgba(15, 23, 42, 0.94);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 32px;
}

.portrait-wrapper {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.9);
}

.about-meta-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.about-meta-value {
    font-size: 0.9rem;
}

.about-meta-grid {
    margin-bottom: 1.25rem;
}

.about-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.30);
}

.about-meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, rgba(244, 180, 26, 0.35), transparent 55%),
                rgba(15, 23, 42, 0.95);
    color: var(--accent);
    flex-shrink: 0;
}

.about-meta-icon i {
    font-size: 0.95rem;
}

.about-skills-list {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    column-count: 2;
    column-gap: 24px;
}

.about-skills-list li {
    margin-bottom: 0.2rem;
    position: relative;
    padding-left: 14px;
    break-inside: avoid;
}

.about-skills-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: var(--accent);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #020617;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    padding-inline: 1.75rem;
    border-radius: 999px;
}

.btn-accent:hover {
    background-color: #ffd35c;
    border-color: #ffd35c;
    color: #020617;
}

.bg-alt-dark {
    background-color: #020617;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 28px 26px;
    height: 100%;
    transition: all 0.2s ease-out;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
    border-color: rgba(244, 180, 26, 0.55);
}

.experience-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-block: 10px;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
            rgba(148, 163, 184, 0.0),
            rgba(148, 163, 184, 0.6),
            rgba(148, 163, 184, 0.0));
}

.experience-step {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    min-height: 140px;
    column-gap: 24px;
}

.experience-step-left .experience-card {
    grid-column: 2;
}

.experience-step-left .experience-badge {
    grid-column: 1;
    justify-self: center;
}

.experience-step-right .experience-card {
    grid-column: 1;
}

.experience-step-right .experience-badge {
    grid-column: 2;
    justify-self: center;
}

.experience-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    padding: 20px 22px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
}

.experience-badge {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(244, 180, 26, 0.8);
    background-color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.95);
}

.experience-badge i {
    font-size: 1.3rem;
}

.experience-company {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.experience-company-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.experience-role {
    font-size: 1rem;
}

.experience-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.experience-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.experience-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(244, 180, 26, 0.8);
    background-color: #020617;
}

.experience-logo-wrapper i {
    font-size: 1.2rem;
    color: var(--accent);
}

.experience-bullets {
    padding-left: 1.2rem;
    margin-bottom: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.experience-bullets li {
    margin-bottom: 0.2rem;
}

.experience-entry {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 22px;
}

.experience-rail {
    width: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
}

.experience-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(244, 180, 26, 0.18);
}

.experience-line {
    flex: 1;
    width: 2px;
    margin-top: 4px;
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.7), transparent);
}

.experience-entry:last-child .experience-line {
    display: none;
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, rgba(244, 180, 26, 0.35), transparent 55%),
                rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(244, 180, 26, 0.45);
    color: var(--accent);
    margin-bottom: 16px;
}

.service-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.service-text {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.reference-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 20px 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.92);
}

.reference-thumb {
    border-radius: 14px;
    overflow: hidden;
    background-color: #020617;
}

.reference-thumb img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.reference-card:hover .reference-thumb img {
    transform: scale(1.03);
}

.reference-project {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
}

.reference-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fed7aa;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(248, 250, 252, 0.18);
    background: rgba(15, 23, 42, 0.95);
}

.reference-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.reference-meta {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reference-meta li {
    display: flex;
    gap: 4px;
}

.reference-meta li span {
    color: #e5e7eb;
}

.reference-meta a {
    color: var(--accent);
    text-decoration: none;
}

.reference-meta a:hover {
    text-decoration: underline;
}

.contact-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 24px 24px 26px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.92);
}

.contact-card .form-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-card .form-control,
.contact-card textarea.form-control {
    background-color: #020617;
    border-color: rgba(148, 163, 184, 0.45);
    color: #e5e7eb;
    font-size: 0.86rem;
}

.contact-card .form-control:focus,
.contact-card textarea.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.15rem rgba(244, 180, 26, 0.2);
}

.education-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 880px;
    margin: 0 auto;
    padding: 16px 0 32px;
}

.education-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.6));
    opacity: 0.6;
}

.education-step {
    position: relative;
    width: 100%;
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.education-timeline.in-view .education-step {
    opacity: 1;
    transform: translateY(0);
}

.education-step-header {
    max-width: 260px;
    text-align: left;
    padding: 14px 16px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.education-step-year {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.education-step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

.education-step-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.education-step-marker {
    position: relative;
    margin-top: 4px;
}

.education-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, rgba(244, 180, 26, 0.45), transparent 55%),
                rgba(15, 23, 42, 0.98);
    border: 2px solid rgba(244, 180, 26, 0.9);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9);
}

.education-step-circle i {
    color: var(--accent);
    font-size: 1.25rem;
}

.education-step-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -26px;
    width: 2px;
    height: 26px;
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.85), transparent);
}

.education-step:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 40%;
}

.education-step:nth-child(even) {
    justify-content: flex-end;
    padding-left: 40%;
}

.education-step:nth-child(1) .education-step-header {
    background: radial-gradient(circle at 10% 0, rgba(244, 180, 26, 0.35), transparent 55%),
                rgba(15, 23, 42, 0.98);
}

.education-step:nth-child(2) .education-step-header {
    background: radial-gradient(circle at 10% 0, rgba(59, 130, 246, 0.30), transparent 55%),
                rgba(15, 23, 42, 0.98);
}

.education-step:nth-child(3) .education-step-header {
    background: radial-gradient(circle at 10% 0, rgba(16, 185, 129, 0.32), transparent 55%),
                rgba(15, 23, 42, 0.98);
}

.education-step:nth-child(4) .education-step-header {
    background: radial-gradient(circle at 10% 0, rgba(244, 63, 94, 0.32), transparent 55%),
                rgba(15, 23, 42, 0.98);
}

.education-step:nth-child(5) .education-step-header {
    background: radial-gradient(circle at 10% 0, rgba(139, 92, 246, 0.32), transparent 55%),
                rgba(15, 23, 42, 0.98);
}

.education-step:nth-child(6) .education-step-header {
    background: radial-gradient(circle at 10% 0, rgba(14, 165, 233, 0.30), transparent 55%),
                rgba(15, 23, 42, 0.98);
}

.education-step:nth-child(7) .education-step-header {
    background: radial-gradient(circle at 10% 0, rgba(251, 191, 36, 0.35), transparent 55%),
                rgba(15, 23, 42, 0.98);
}

.education-step:nth-child(8) .education-step-header {
    background: radial-gradient(circle at 10% 0, rgba(248, 113, 113, 0.34), transparent 55%),
                rgba(15, 23, 42, 0.98);
}

@media (max-width: 767.98px) {
    .education-timeline {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0 10px;
    }

    .education-timeline::before {
        display: none;
    }

    .education-step-marker::after {
        display: none;
    }

    .education-step {
        padding: 0;
        justify-content: center;
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.about-card,
.service-card,
.experience-card {
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.about-card:hover,
.service-card:hover,
.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.85);
    border-color: rgba(248, 250, 252, 0.12);
}

footer {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-lang-switch {
    font-size: 0.78rem;
}

.footer-lang-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-lang {
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.72rem;
}

.btn-lang.btn-lang-active {
    border-color: var(--accent);
    background-color: var(--accent);
    color: #111827;
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .about-card {
        padding: 24px;
    }

    .about-skills-list {
        column-count: 1;
    }
}
