/* ============================================
   APROPOS.CSS — Full Premium Redesign
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #167475;
    --primary-light: #1a9090;
    --primary-pale: #f0faf7;
    --dark: #1a2332;
    --gray: #6c757d;
    --light-bg: #f7fdf9;
    --white: #ffffff;
    --transition: all 0.35s ease;
    --shadow-sm: 0 4px 15px rgba(22, 116, 117, 0.1);
    --shadow-md: 0 10px 40px rgba(22, 116, 117, 0.15);
    --shadow-lg: 0 20px 60px rgba(22, 116, 117, 0.2);
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ======== LOADER ======== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
.loader.fade-out { opacity: 0; visibility: hidden; }
.loader-circle {
    width: 50px; height: 50px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ======== CONTAINER ======== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ======== HEADER / NAVBAR ======== */
.header {
    background-color: rgba(246, 246, 248, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 90%;
    max-width: 1200px;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.07);
}
.header .container {
    width: 100%; max-width: none;
    padding: 0; margin: 0;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; flex-direction: column; align-items: flex-start; }
.logo-text {
    position: relative;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700; font-size: 1.5rem;
    text-transform: uppercase; letter-spacing: 1px;
    background: linear-gradient(90deg, #167475 0%, #167475 50%, #333 50%, #333 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-bottom: 8px; transition: all 0.3s ease;
}
.logo-text::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #167475 0%, #28a745 100%);
    transform: scaleX(0.8); transform-origin: left; transition: transform 0.3s ease;
}
.logo:hover .logo-text::after { transform: scaleX(1); }
.nav ul { display: flex; list-style: none; gap: 8px; }
.nav-link {
    display: flex; align-items: center;
    text-decoration: none; color: var(--dark);
    font-weight: 500; padding: 10px 18px;
    border-radius: 30px; transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    background-color: var(--primary); color: #fff;
}
.nav-icon { margin-right: 8px; font-size: 0.9rem; }
.nav-text { font-size: 0.95rem; }
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; background: var(--primary); color: #fff;
    border-radius: 50%; font-size: 0.7rem; font-weight: 700; margin-left: 6px;
}
.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: var(--dark); z-index: 1001; }

/* ======== HERO PROFILE SECTION ======== */
.profile-hero {
    min-height: 100vh;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 160px 0 80px;
}

/* ---- Animated Blobs ---- */
.blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(22,116,117,0.18) 0%, transparent 70%);
    top: -150px; right: -150px;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    animation: blobF1 10s ease-in-out infinite;
}
.blob-2 {
    width: 350px; height: 350px;
    background: radial-gradient(ellipse, rgba(22,116,117,0.14) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
    animation: blobF2 13s ease-in-out infinite;
}
.blob-3 {
    width: 200px; height: 200px;
    background: rgba(22,116,117,0.10);
    top: 35%; right: 8%;
    border-radius: 50% 50% 70% 30% / 30% 60% 40% 70%;
    animation: blobF1 17s ease-in-out infinite reverse;
}
.blob-4 {
    width: 110px; height: 110px;
    background: rgba(22,116,117,0.12);
    top: 20%; left: 5%;
    border-radius: 50%;
    animation: blobF2 11s ease-in-out infinite;
}
.blob-5 {
    width: 65px; height: 65px;
    background: rgba(22,116,117,0.15);
    bottom: 25%; right: 28%;
    border-radius: 50%;
    animation: blobF1 14s ease-in-out infinite 3s;
}
@keyframes blobF1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(12px,-18px) scale(1.06); }
    66%      { transform: translate(-9px,9px) scale(0.97); }
}
@keyframes blobF2 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(-14px,12px) scale(1.05); }
    66%      { transform: translate(9px,-14px) scale(0.98); }
}

/* ---- Profile Hero Inner ---- */
.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

/* ---- Photo Area ---- */
.photo-area {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-orbit-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(22,116,117,0.25);
    animation: spin linear infinite;
}
.orbit-ring-1 {
    width: 300px; height: 300px;
    animation-duration: 20s;
}
.orbit-ring-2 {
    width: 355px; height: 355px;
    border-style: solid;
    border-color: rgba(22,116,117,0.12);
    border-width: 1px;
    animation-duration: 30s;
    animation-direction: reverse;
}

/* Orbiting dots */
.orbit-dot {
    position: absolute;
    width: 14px; height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(22,116,117,0.5);
}
.dot-1 { top: 0; left: 50%; transform: translateX(-50%); animation: orbitDot1 20s linear infinite; }
.dot-2 { top: 50%; right: 0; transform: translateY(-50%); animation: orbitDot2 20s linear infinite; }
.dot-3 {
    width: 8px; height: 8px;
    background: rgba(22,116,117,0.6);
    bottom: 8%; left: 8%;
    animation: orbitDot3 20s linear infinite;
}

@keyframes orbitDot1 {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); top: 50%; left: 50%; }
    to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); top: 50%; left: 50%; }
}
@keyframes orbitDot2 {
    from { transform: rotate(120deg) translateX(150px) rotate(-120deg); top: 50%; left: 50%; }
    to   { transform: rotate(480deg) translateX(150px) rotate(-480deg); top: 50%; left: 50%; }
}
@keyframes orbitDot3 {
    from { transform: rotate(240deg) translateX(150px) rotate(-240deg); top: 50%; left: 50%; }
    to   { transform: rotate(600deg) translateX(150px) rotate(-600deg); top: 50%; left: 50%; }
}

/* Photo frame */
.photo-frame {
    position: relative;
    z-index: 2;
    width: 220px; height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary);
    box-shadow: 0 0 0 8px rgba(22,116,117,0.12), var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    animation: framePulse 3s ease-in-out infinite;
}
@keyframes framePulse {
    0%,100% { box-shadow: 0 0 0 8px rgba(22,116,117,0.12), 0 20px 60px rgba(22,116,117,0.2); }
    50%      { box-shadow: 0 0 0 14px rgba(22,116,117,0.08), 0 25px 70px rgba(22,116,117,0.28); }
}
.photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
}
.photo-icon-fallback {
    display: none;
    width: 100%; height: 100%;
    align-items: center; justify-content: center;
    font-size: 5rem; color: rgba(255,255,255,0.8);
}
.photo-frame.photo-fallback img { display: none; }
.photo-frame.photo-fallback .photo-icon-fallback { display: flex; }

/* Profile badge card */
.profile-badge-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 12px 22px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    margin-top: 24px;
    border: 1px solid rgba(22,116,117,0.12);
    animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.badge-icon {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}
.badge-text { display: flex; flex-direction: column; }
.badge-text strong { font-size: 0.9rem; color: var(--dark); line-height: 1.2; }
.badge-text span { font-size: 0.75rem; color: var(--gray); }

/* ---- Profile Info ---- */
.profile-info-area { flex: 1; }
.profile-tag {
    display: inline-block;
    font-size: 0.95rem; font-weight: 600;
    color: var(--primary);
    background: rgba(22,116,117,0.08);
    padding: 6px 16px; border-radius: 30px;
    margin-bottom: 16px;
}
.profile-name {
    font-size: 3.5rem; font-weight: 800;
    color: var(--dark); line-height: 1.1;
    margin-bottom: 20px;
}
.profile-divider {
    width: 70px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px; margin-bottom: 24px;
}
.profile-description {
    color: #4a5568; font-size: 1.05rem;
    line-height: 1.85; margin-bottom: 16px;
}

/* Skill chips */
.skill-chips {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 24px 0;
}
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.82rem; font-weight: 600;
    padding: 8px 16px; border-radius: 30px;
    border: 1.5px solid rgba(22,116,117,0.3);
    cursor: default;
    transition: var(--transition);
}
.chip:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,116,117,0.3);
}

/* CV button */
.btn-cv {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; padding: 16px 36px;
    border: none; border-radius: 50px; cursor: pointer;
    font-size: 1rem; font-weight: 600; letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(22,116,117,0.35);
    transition: var(--transition);
    margin-top: 8px;
}
.btn-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(22,116,117,0.45);
}

/* ======== SKILLS SECTION ======== */
.skills-section {
    padding: 100px 0;
    background: var(--white);
}
.section-title {
    text-align: center;
    font-size: 2.2rem; font-weight: 700;
    color: var(--dark); margin-bottom: 60px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block; width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    margin: 14px auto 0;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.skill-card {
    display: flex; align-items: center; gap: 18px;
    background: var(--light-bg);
    padding: 22px 24px; border-radius: 16px;
    border: 1px solid rgba(22,116,117,0.1);
    transition: var(--transition);
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.skill-card-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.skill-card-content { flex: 1; }
.skill-card-header {
    display: flex; justify-content: space-between;
    margin-bottom: 10px;
}
.skill-label { font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.skill-pct { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.skill-track {
    height: 8px; background: rgba(22,116,117,0.1);
    border-radius: 10px; overflow: hidden;
}
.skill-fill {
    height: 100%; width: 0; border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ======== TIMELINE SECTION ======== */
.timeline-section {
    padding: 100px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}
.timeline-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -150px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(22,116,117,0.06);
    pointer-events: none;
}

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

/* Vertical center line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(22,116,117,0.2) 100%);
    transform: translateX(-50%);
    border-radius: 3px;
}

.tl-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.tl-right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
    transform: translateX(40px);
}
.tl-item.tl-left { transform: translateX(-40px); }
.tl-item.visible { opacity: 1; transform: translateX(0); }

/* Dot on the center line */
.tl-dot {
    position: absolute;
    top: 28px; left: 50%;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px rgba(22,116,117,0.3);
    transform: translateX(-50%);
    z-index: 2;
    transition: transform 0.3s ease;
}
.tl-item:hover .tl-dot { transform: translateX(-50%) scale(1.3); }

/* Card */
.tl-card {
    background: var(--white);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 4px 24px rgba(22,116,117,0.08);
    border: 1px solid rgba(22,116,117,0.1);
    max-width: 360px;
    transition: var(--transition);
    position: relative;
}
.tl-card::before {
    content: '';
    position: absolute;
    top: 28px;
    width: 24px; height: 3px;
    background: var(--primary);
    opacity: 0.5;
}
.tl-item.tl-left .tl-card::before { right: -24px; }
.tl-item.tl-right .tl-card::before { left: -24px; }

.tl-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22,116,117,0.25);
}
.tl-year {
    font-size: 0.78rem; font-weight: 700;
    color: var(--primary); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 8px;
}
.tl-title {
    font-size: 1.1rem; font-weight: 700;
    color: var(--dark); margin-bottom: 10px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.tl-badge {
    font-size: 0.68rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; padding: 3px 10px;
    border-radius: 30px; text-transform: uppercase; letter-spacing: 0.5px;
}
.tl-desc { color: #4a5568; font-size: 0.9rem; line-height: 1.7; margin-bottom: 14px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tl-tags span {
    font-size: 0.72rem; font-weight: 600;
    color: var(--primary);
    background: rgba(22,116,117,0.08);
    border: 1px solid rgba(22,116,117,0.2);
    padding: 4px 11px; border-radius: 30px;
}

/* ======== FOOTER ======== */
.footer {
    background: #f4f4f6;
    padding: 60px 0 20px;
    margin-top: 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; margin-bottom: 40px;
}
.footer-logo span {
    font-size: 1.5rem; font-weight: 700; color: var(--dark);
    display: block; margin-bottom: 8px;
}
.footer-logo p { color: var(--gray); }
.footer-links h3, .footer-contact h3 {
    font-size: 1.1rem; margin-bottom: 16px; color: var(--dark);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: var(--gray); transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { margin-bottom: 14px; color: var(--gray); }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px; height: 40px;
    background: var(--primary); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary-light); transform: translateY(-3px); }
.footer-bottom {
    text-align: center; padding-top: 20px;
    border-top: 1px solid #e0e0e6;
    color: var(--gray); font-size: 0.88rem;
}

/* ======== MODAL ======== */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 9000;
    justify-content: center; align-items: center;
}
.modal[style*="block"] { display: flex !important; }
.modal-content {
    background: #fff; border-radius: 20px;
    padding: 40px; max-width: 420px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-content h3 { margin-bottom: 10px; font-size: 1.3rem; }
.modal-content p { color: var(--gray); margin-bottom: 16px; }
.modal-content input {
    width: 100%; padding: 12px 16px;
    border: 2px solid #e0e0e6; border-radius: 10px;
    font-size: 1rem; margin-bottom: 16px;
    transition: border-color 0.3s;
}
.modal-content input:focus { outline: none; border-color: var(--primary); }
.modal-buttons { display: flex; gap: 12px; }
.btn, .btn-cancel {
    padding: 12px 28px; border: none; border-radius: 30px;
    cursor: pointer; font-size: 0.9rem; font-weight: 600;
    transition: var(--transition);
}
.btn { background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-light); }
.btn-cancel { background: #f0f0f5; color: var(--dark); }
.btn-cancel:hover { background: #e0e0ea; }
.error-message { color: #dc3545; font-size: 0.85rem; margin-top: 8px; }

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
    .nav {
        position: fixed; top: 0; left: -100%;
        width: 80%; height: 100vh;
        background: #fff;
        box-shadow: 0 0 30px rgba(0,0,0,0.1);
        padding: 100px 30px; z-index: 1000;
        transition: var(--transition);
    }
    .nav.active { left: 0; }
    .nav ul { flex-direction: column; gap: 15px; }
    .nav-link { color: var(--dark) !important; background: transparent !important; }
    .menu-toggle { display: block; }
    .profile-hero-inner { flex-direction: column; gap: 50px; text-align: center; }
    .profile-name { font-size: 2.6rem; }
    .profile-divider { margin: 20px auto; }
    .skill-chips { justify-content: center; }
    .btn-cv { margin: 0 auto; }
}

@media (max-width: 768px) {
    .header { width: 95%; top: 10px; padding: 10px 15px; border-radius: 30px; }
    .profile-hero { padding: 130px 0 60px; }
    .photo-orbit-wrapper { width: 250px; height: 250px; }
    .photo-frame { width: 170px; height: 170px; }
    .orbit-ring-1 { width: 230px; height: 230px; }
    .orbit-ring-2 { width: 270px; height: 270px; }
    .profile-name { font-size: 2.2rem; }

    /* Timeline becomes vertical single column */
    .timeline::before { left: 20px; }
    .tl-item, .tl-item.tl-right {
        justify-content: flex-start;
        padding-left: 60px; padding-right: 0;
        transform: translateY(20px);
    }
    .tl-item.tl-left { transform: translateY(20px); }
    .tl-dot { left: 20px; }
    .tl-card { max-width: 100%; }
    .tl-card::before { display: none; }
}
