:root {
    --primary-color: #345a9d; 
    --primary-color-darker: #2a487d;
    --secondary-color: #f8f9fa; 
    --text-color: #333;
    --text-color-light: #555;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    padding-top: 56px; 
}


@media (max-width: 992px) {
    body {
        padding-top: 60px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 30px;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-darker);
    text-decoration: none;
}


section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--secondary-color);
}


.navbar {
    transition: all 0.3s ease;
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar.shadow {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--primary-color-darker) !important;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.7rem !important;
    margin: 0 0.1rem;
    border-radius: 6px;
    color: var(--text-color) !important;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(52, 90, 157, 0.08);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(52, 90, 157, 0.1);
    font-weight: 600;
}


.language-switch {
    display: flex;
    gap: 5px;
    margin-right: 1rem;
}

.language-switch .btn {
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.language-switch .btn.active,
.language-switch .btn:active {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

.language-switch .btn:hover {
    background-color: rgba(52, 90, 157, 0.1);
    border-color: var(--primary-color);
}


.navbar-toggler {
    border: none;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2852, 90, 157, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


@media (max-width: 992px) {
    .navbar {
        padding: 0.7rem 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.1rem 0;
    }

    .language-switch {
        margin-right: 0.8rem;
    }

    .language-switch .btn {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }

    .navbar-collapse {
        background-color: white;
        border-radius: 8px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.6rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .language-switch {
        margin-right: 0.5rem;
    }

    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-link {
        margin: 0.1rem 0;
    }
}


.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a487d 100%);
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(255,255,255,0.1) 0%, transparent 40%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

#heroDescription {
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero .btn-light {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.hero .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero .btn-outline-light {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    transition: all 0.3s ease;
}

.hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cv-buttons {
    display: flex;
    gap: 10px;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    color: white;
}


@media (max-width: 992px) {
    .hero {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cv-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }

    .cv-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-social {
        justify-content: center;
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    #heroDescription {
        font-size: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-social {
        gap: 12px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hero .btn-light,
    .hero .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        margin-left: 0 !important;
        margin-bottom: 10px;
    }

    .hero-social {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

#skills .col-md-4 {
    padding: 20px;
}
#skills h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #e9ecef;
    transform: translateX(-50%);
}

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

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-item:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd):after {
    right: -10px;
}

.timeline-item:nth-child(even):after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
}

.timeline-item h5 {
    font-weight: 700;
    color: var(--primary-color);
}
.timeline-item .period{
    font-style: italic;
    font-size: 0.9em;
}


#projectsContainer .card {
    border: none;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden; 
}

#projectsContainer .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.project-card-inner {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.project-images {
    flex: 0 0 350px; 
    background: var(--secondary-color);
    border-right: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}


.project-carousel {
    position: relative;
}

.project-carousel .carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: contain; 
    background-color: #f8f9fa; 
}

.project-carousel .carousel-indicators {
    bottom: 0;
}


.project-carousel .carousel-control-prev,
.project-carousel .carousel-control-next {
    width: 50px;
    background: rgba(0, 0, 0, 0.5); 
    border-radius: 50%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

.project-carousel .carousel-control-prev:hover,
.project-carousel .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.7); 
}

.project-carousel .carousel-control-prev-icon,
.project-carousel .carousel-control-next-icon {
    filter: brightness(100); 
}

@media (max-width: 992px) {
    .project-card-inner {
        flex-direction: column;
    }
    .project-images {
       border-right: none;
       border-bottom: 1px solid var(--border-color);
    }
}

.project-details {
    flex: 1;
    padding: 20px;
}

@media (max-width: 992px) {
    .project-card-inner {
        flex-direction: column;
    }
    .project-images {
       border-right: none;
       border-bottom: 1px solid var(--border-color);
    }
}



#certifications .list-group-item {
    border: none;
    padding-left: 0;
    padding-right: 0;
    font-size: 1.1rem;
}


footer {
    background-color: #2c3e50 !important; 
}


@media (max-width: 991.98px) {
    .timeline:before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }

    .timeline-item:after {
        left: 20px;
    }
     .timeline-item:nth-child(odd):after {
        left: 20px;
    }
}
