/* ===== Variables ===== */
:root {
    --accent: #4A90D9;
    --accent-dark: #3570B0;
    --accent-soft: rgba(74, 144, 217, 0.12);
    --dark: #1a1a2e;
    --dark-lighter: #16213e;
}

/* ===== Base ===== */
body {
    font-family: 'Lato', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5 {
    font-family: 'Lato', sans-serif;
}

.fw-900 {
    font-weight: 900;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

/* ===== Accent utilities ===== */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-accent-soft {
    background-color: var(--accent-soft) !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark), #2a5a8a);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.4) !important;
}

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: #fff;
}

/* ===== Section titles ===== */
.section-title {
    font-weight: 900;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
}

/* ===== Navbar ===== */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar .nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent) !important;
}

/* ===== Hero ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--accent-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    opacity: 0.9;
}

/* ===== Cards ===== */
.card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

/* ===== Info list ===== */
.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-list li:last-child {
    border-bottom: none;
}

/* ===== Skill bars ===== */
.skill-bar {
    position: relative;
}

.skill-bar::before {
    content: attr(data-skill);
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.skill-bar::after {
    content: attr(data-level) '%';
    position: absolute;
    top: 0;
    right: 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
}

.skill-bar .progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    overflow: hidden;
}

.skill-bar .progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 5px;
    width: 0;
    transition: width 1.2s ease-out;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px 20px;
}

.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--accent);
    z-index: 1;
}

.timeline-left .timeline-dot {
    right: -8px;
}

.timeline-right .timeline-dot {
    left: -8px;
}

.timeline-content {
    position: relative;
}

.timeline-left .timeline-content {
    text-align: left;
}

/* ===== Timeline responsive ===== */
@media (max-width: 767.98px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline-left,
    .timeline-right {
        text-align: left;
    }

    .timeline-left .timeline-dot,
    .timeline-right .timeline-dot {
        left: 12px;
        right: auto;
    }
}

/* ===== Contact form ===== */
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem var(--accent-soft);
}

/* ===== Footer ===== */
footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

/* ===== Scroll animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Badge styling ===== */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ===== Smooth scroll offset for fixed navbar ===== */
section[id] {
    scroll-margin-top: 70px;
}

/* ===== Buttons transition ===== */
.btn {
    transition: all 0.3s ease;
}
