/* --------------------------------------------------------------
   Global
-------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fafafa;
}

.svg {
    width: 1rem;
}

li {
    list-style-type: none;
}

/* --------------------------------------------------------------
   Layout
-------------------------------------------------------------- */
.container {
    width: min(90%, 1200px);
    margin-inline: auto;
    padding-block: 2rem;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* --------------------------------------------------------------
   Header & Navigation
-------------------------------------------------------------- */
@keyframes popIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
    animation-name: popIn;
    animation-duration: 4s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo a {
    font-weight: 600;
    font-size: 1.25rem;
    color: #111;
    text-decoration: none;
}
.nav {
    display: none; /* hidden on mobile, shown via JS */
}
.nav-list {
    display: flex;
    gap: 1.5rem;
}
.nav-list a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}
.nav-list a:hover { color: #000; }

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav { display: block; }
    .nav-toggle { display: none; }
}

/* --------------------------------------------------------------
   Hero Section
-------------------------------------------------------------- */
.hero {
    background: url("assets/lab.jpg") center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding-block: 6rem 4rem;
    height: 400px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0; 
    background: rgba(0, 0, 0, 0.219); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    z-index: 0;
    height: 517px;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: clamp(2rem, 6vw, 3rem);
}

.highlight {
    color: #f15025;
}
.btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: .75rem 1.5rem;
    background: #f15025;
    color: #111;
    border-radius: .4rem;
    text-decoration: none;
    font-weight: 600;
}
.btn-primary:hover { background: #ffd633; }

/* --------------------------------------------------------------
   Projects Grid
-------------------------------------------------------------- */
.projects-section {
    background: #fff;
}
.projects-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding-bottom: 10%;
}
.project-card {
    background: #f9f9f9;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}
.project-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.project-title {
    margin: .75rem 1rem 0;
    font-size: 1.125rem;
    padding-top: 5%;
}
.project-desc {
    flex-grow: 1;
    margin: .5rem 1rem;
    font-size: .95rem;
    color: #555;
}
.btn-secondary {
    margin: 1rem;
    align-self: start;
    padding: .5rem 1rem;
    background: #f15025;
    color: #fff;
    border-radius: .3rem;
    text-decoration: none;
    font-size: .9rem;
}
.btn-secondary:hover { background: #357ab8; }

/* --------------------------------------------------------------
   Footer
-------------------------------------------------------------- */
.site-footer {
    background: #f9f9f9;
    color: #bbb;
    font-size: .9rem;
    border-top: #000 1px solid;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.social-list {
    display: flex;
    gap: .75rem;
}
.social-list a {
    color: #bbb;
    font-size: 1.2rem;
    text-decoration: none;
}
.social-list a:hover { color: #fff; }

/* --------------------------------------------------------------
   Back‑to‑top button
-------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s;
}
.back-to-top.show { opacity: 1; }

 /* -------------------------------------------------
     Profile section
   ------------------------------------------------- */
@keyframes slideFromLeft {
    from {padding-left: 50%; opacity: 0%;}
    to {padding-left: 0%; opacity: 100%;}
}

@keyframes brightness {
    from {opacity: 0%;}
    to {opacity: 100%;}
}

@media (max-width: 768px) {
    .profile-section {flex-direction: column; gap: 2rem;}
    .slides h2 {font-size: 0.5rem;}
}

.profile-section {
    display: flex;
    width: 100vw;
    background-color: #fff;
    padding-top: 8vh;
    padding-bottom: 5vh;
    align-items: center;
    justify-content: center;
  }

.profile-section h2 {
    margin-left: 1.5rem;
    font-size: 1.8rem;
    color: #333;
    animation-name: slideFromLeft;
    animation-duration: 4s;
  }

.profile-section img {

    width: 300px;
    height: 350px;
    background-color: #f9f9f9;
    border-radius: 200px;
    animation-name: brightness;
    animation-duration: 4s;
  }

#cycle {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    color: #f15025;
  }

  
  /* --------------------------------------------------------------
   Competencies section
-------------------------------------------------------------- */

@keyframes loadBar {
  from { width: 0px; }
  to   { width: 100px; }
}

.load-bar {
    position: absolute;
    background-color: #f15025;
    height: 5px;
    border-radius: 10px;
    animation: loadBar 5s ease-in-out infinite;
    width: 100px;
  }

.c-container {
    margin: 15vh 25vw 15vh;
    width: 50vw;
    height: 100px;
}

.slides {
    position: absolute;
    display: flexbox;
    box-sizing:border-box;
    border-radius: 35px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slides img {
    top: 45%;
    width: 100px;
    height: 100px;
}

.slides h2 {
    top: 45%;
    float: right;
    color: #000000;
    font-size: 2rem;
    margin-left: 2vw;
    margin-right: 2vw;
    width: 46vw;
    justify-content: center;
}

.slides.active { opacity: 1; }

  /* --------------------------------------------------------------
   Dark mode
-------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
    body{
    background: #fff;
    }
    
}
