/* --- GENERAL CONFIG & COLOR VARIABLES --- */
:root {
    --dark-blue: #0A2342;
    --aqua: #1ABC9C;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --border-color: #e9ecef;
    --font-family: 'Poppins', sans-serif;
}

/* --- BASE STYLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 20px;
}

/* --- PAGE HEADER --- */
.page-header {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link .logo-img { height: 40px; }
.back-button {
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.back-button:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
}
.back-button i { margin-right: 8px; }

/* --- MAIN CV CONTAINER --- */
.cv-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInContainer 0.8s 0.2s ease-out forwards;
}

@keyframes fadeInContainer {
    to { opacity: 1; transform: translateY(0); }
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(to right, var(--dark-blue), #1c3d6e);
    color: var(--white);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--aqua);
    flex-shrink: 0;
}
.hero-text h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; }
.hero-text p { font-size: 1.3rem; font-weight: 300; color: var(--aqua); }
.hero-cta { margin-left: auto; }

/* --- MAIN CONTENT & SECTIONS --- */
.cv-main-content { padding: 20px 40px; }
.content-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}
.content-section:last-of-type { border-bottom: none; }
h2 {
    font-size: 1.8rem; font-weight: 700; color: var(--dark-blue);
    margin-bottom: 25px; position: relative; padding-bottom: 10px;
}
h2::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 60px; height: 4px; background-color: var(--aqua); border-radius: 2px;
}

/* --- TIMELINE FOR EXPERIENCE --- */
.timeline { position: relative; padding-left: 40px; border-left: 3px solid var(--border-color); }
.timeline-item { margin-bottom: 35px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: -49px; top: 5px;
    width: 18px; height: 18px; background-color: var(--light-gray);
    border: 4px solid var(--aqua); border-radius: 50%;
}
.timeline-content h3 { font-size: 1.3rem; font-weight: 600; color: var(--dark-blue); }
.timeline-company { color: #555; display: block; margin-bottom: 5px; font-style: italic;}
.timeline-date { color: var(--aqua); font-weight: 600; display: block; margin-bottom: 10px; }

/* --- SKILLS GRID --- */
.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tag {
    background-color: #eef8f6; color: #11816d; padding: 10px 20px;
    border-radius: 8px; font-weight: 500; display: inline-flex;
    align-items: center; gap: 10px;
    transition: all 0.3s ease;
}
.skill-tag:hover { background-color: var(--aqua); color: var(--white); transform: translateY(-3px); }
.skill-tag i { font-size: 0.9rem; }

/* --- CTA BUTTONS --- */
.cta-button {
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white); padding: 12px 25px;
    border-radius: 8px; font-weight: 600; font-size: 1rem;
    border: none; cursor: pointer;
    transition: all 0.3s ease;
}
.cta-button.primary { background-color: var(--aqua); }
.cta-button.primary:hover { background-color: #17a589; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4); }

/* --- FORM SECTION --- */
.form-section { background-color: var(--light-gray); padding: 30px; margin: 0 -40px; }
.form-intro { margin-bottom: 20px; text-align: center; }
.contact-form { max-width: 500px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark-blue); }
.form-group input {
    width: 100%; padding: 12px; border-radius: 8px;
    border: 1px solid #ccc; font-family: var(--font-family); font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus {
    outline: none; border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}
.form-submit-button { width: 100%; font-size: 1.1rem; padding: 15px; }

/* --- FOOTER --- */
.cv-footer {
    background-color: #f1f3f5; color: #6c757d; text-align: center;
    padding: 20px; font-size: 0.9rem;
}
.cv-footer a { color: var(--dark-blue); text-decoration: none; font-weight: 600; }
.cv-footer a:hover { color: var(--aqua); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    body { padding: 0; }
    .page-header { border-radius: 0; padding: 15px; margin-bottom: 0; }
    .cv-container { border-radius: 0; box-shadow: none; }
    .hero-section { flex-direction: column; text-align: center; }
    .hero-cta { margin-left: 0; margin-top: 20px; }
    .cv-main-content, .form-section { padding: 20px; margin: 0; }
}
