/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

a {
    color: #0070f3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #333;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #0070f3;
}

/* Header with overlay */
.hero-header {
    position: relative;
    height: 100vh;
    background: url('../img/vigo.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.75rem;
    margin: 0 0.75rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0070f3;
    margin: 1rem auto 0;
}

/* Experience & Education */
.experience-item {
    margin-bottom: 2rem;
}

.experience-item h4 {
    margin-bottom: 0.5rem;
}

.education-item {
    margin-bottom: 1.5rem;
}

.education-item i {
    margin-right: 0.75rem;
    color: #0070f3;
}

/* Skills */
.skills-list {
    list-style: none;
    padding-left: 0;
}

.skills-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.skills-list li::before {
    content: '•';
    color: #0070f3;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.25rem;
}

/* Project Carousel */
.swiper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2rem;
    min-height: 30vh;
}

.swiper-wrapper {
    padding: 0 15px;
}

.swiper-slide {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 30vh;
}

.project-slide {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.project-image {
    flex: 1;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: #0070f3;
}

.project-info .h3 {
    margin-bottom: 1rem;
    color: #0070f3;
}

.project-tech {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.project-tech li {
    display: inline-block;
    background-color: #e9ecef;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.project-description {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #0070f3;
    margin: 0 20px;
}

.swiper-pagination {
    position: relative;
    margin-top: 10px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background-color: #0070f3;
}

/* Contact */
.contact-info {
    text-align: center;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #212529;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

footer img.logo {
    width: 50px;
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .project-slide {
        flex-direction: column;
    }

    .project-image, .project-info, .project-description {
        flex: none;
    }

    .project-image {
        height: 200px;
    }

    .swiper {
        min-height: 50vh;
    }

    .swiper-slide {
        min-height: 50vh;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content h3 {
        font-size: 1.25rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* Uniform Carousel Height */
.professional-projects-swiper,
.personal-projects-swiper {
    height: 60vh !important;
}

.professional-projects-swiper .swiper-slide,
.personal-projects-swiper .swiper-slide {
    height: 100% !important;
    display: flex;
    align-items: stretch;
}

.professional-projects-swiper .project-slide,
.personal-projects-swiper .project-slide {
    height: 100% !important;
}
