/* General resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Inter', sans-serif;
    background-color:#323232;
    line-height: 1.6;
    color: #e8ecf4;
}

/* ================= HEADER ================= */

header { 
    font-family: "Orbitron", sans-serif; 
    background: #e8ecf4; 
    display: flex; flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    width: 100%; 
    padding-top: 30px; 
    opacity:0; 
    transition: opacity 1s ease-in; 
} 
    
.email { 
    color: #264276; 
    align-self: flex-start; 
    margin-top: 10px; 
    margin-left: 10px; 
    font-size: 1.2rem; 
} 

header.visible{ 
    opacity: 1; 
} 
    
.logo { 
    margin-left: auto; 
} 

.logo img { 
    margin-left: 5px ; 
    width: 100%; 
    max-width: 140px; 
    height: auto; 
    position: relative; 
    left: 50%; 
    transform: translateX(-60%); 
} 

.header-content { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    bottom: 0px; 
    color: #323232; 
} 

.name-job{ 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    flex: 1; left: 50%; 
    transform: translateX(4%); 
} 

.header-name { 
    color: #264276; 
    font-size: 2rem; 
} 

.header-role { 
    color: #323232; 
    font-size: 1rem; 
} 

.buttons{ 
    display: flex; 
    justify-content: space-between;
     width: 100% 
    }

/* Navigation */
nav ul {  
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    font-size: 1rem;
    color: #323232;
}

nav ul li a:hover {
    color: #264276;
}

/* ================= SECTIONS ================= */

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    opacity:0;
    transition: opacity 1s ease-in;
}

section.visible{
    opacity:1;
}

section h2 {
    font-family: "Orbitron", sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

section p {
    font-size: 1.1rem;
    text-align: left;
    max-width: 700px;
    margin-top: 10px;
}

/* ================= VIDEO ================= */

.video {
    width: 100%;
    max-width: 800px;
}

.video iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 12px;
}

/* ================= PROJECT CARD ================= */

.project-container{
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 30px;
}

.project-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.title-images{
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ================= PROJECT SECTION ================= */

.project-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.project-description {
    max-width: 500px;
}

.project-images,
.project-video,
.controls-container{
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 550px;
    width: 100%;
    margin-left: 50px;
}

.project-video iframe {
    width: 100%;
    height: 450px;
    border-radius: 12px;
}

.main-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.project-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 22%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid #264276;
}

/* ================= ABOUT ================= */

.about-section{
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.about-content{
    max-width: 700px;
}

.about-image img {
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ================= BUTTONS ================= */

.DownloadButton a,
.scroll-button {
    text-decoration: none;
    padding: 10px 25px;
    font-size: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
    color: #e8ecf4;
}

.DownloadButton a:hover,
.scroll-button:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #e8ecf4;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.08);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fa {
    padding: 12px;
    font-size: 24px;
    width: 45px;
    height: 45px;
    text-align: center;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fa:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.fa-linkedin {
    background: #007bb5;
    color: white;
}

.fa-github {
    background: #000;
    color: white;
}
/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 20px;
    background-color: #e8ecf4;
    color: #323232;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: center;
    }

    .project-section,
    .about-section {
        flex-direction: column;
        align-items: center;
    }

    .video iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {

    .video iframe {
        height: 220px;
    }

    section {
        padding: 50px 15px;
    }
}