@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

/* reserve space for fixed header when jumping to anchors */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;   /* match your header height */
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/*───────────────────*/
/*   HEADER & NAV    */
/*───────────────────*/
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: var(--bg-color);
}

.logo {
    position: relative;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.navbar {
    position: relative;
    display: flex;
}

.navbar a {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    display: none;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
}

/*───────────────────*/
/*   SECTION BASE    */
/*───────────────────*/
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    position: relative;
    scroll-margin-top: 8rem;   /* fallback for older browsers */
}

/*───────────────────*/
/*      HOME         */
/*───────────────────*/
.home {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 9%;
    background: url('/static/images/home.jpg') no-repeat center/cover;
}

.home-content {
    max-width: 60rem;
    z-index: 2;
}

.home-content h1 {
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
}

.home-content h1 span {
    color: var(--main-color);
}

.text-animate {
    position: relative;
    width: 32.8rem;
}

.text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: -33rem 0;
}

.home.show-animate .text-animate h3 {
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.btn-box {
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
    position: relative;
}

.btn-box .btn {
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    color: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    position: relative;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before {
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    width: 17rem;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    width: 4rem; height: 4rem;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--main-color);
    position: relative;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-imgHover {
    position: absolute;
    top: 0; right: 0;
    width: 45%; height: 100%;
    pointer-events: none;
    transition: 3s;
}

.home-imgHover:hover {
    background: var(--bg-color);
    opacity: .6;
}

/*───────────────────*/
/*      ABOUT        */
/*───────────────────*/
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading {
    font-size: 5rem;
    text-align: center;
    position: relative;
}

.heading span {
    color: var(--main-color);
}

.about-img {
    position: relative;
    width: 25rem; height: 25rem;
    border-radius: 50%;
}

.about-img img {
    width: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.circle-spin {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 98%; height: 98%;
    border-left: .2rem solid var(--main-color);
    border-right: .2rem solid var(--main-color);
    border-top: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-radius: 50%;
    animation: aboutSpinner 8s linear infinite;
}

.about-content {
    text-align: center;
}

.about-content h3 {
    font-size: 2.6rem;
    position: relative;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.btn-box.btns {
    width: 15rem;
}

/*───────────────────*/
/*    EDUCATION      */
/*───────────────────*/
.education {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 5rem;
}

.education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
    position: relative;
}

.education-box {
    position: relative;
    border-left: .2rem solid var(--main-color);
}

.education-box .education-content {
    padding-left: 2rem;
    position: relative;
}

.education-content::before {
    content: '';
    position: absolute;
    top: 0; left: -1.1rem;
    width: 2rem; height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content {
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.education-content .content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.education-content .content:hover::before {
    width: 100%;
}

.education-content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}

.education-content .content h3 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.education-content .content p {
    font-size: 1.6rem;
}

/*───────────────────*/
/*      SKILLS       */
/*───────────────────*/
.skills {
    background: var(--second-bg-color);
    padding-bottom: 7rem;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.skills-box .skills-content {
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: 2rem;
    position: relative;
}

.skills-content .progress {
    margin-bottom: 1.5rem;
}

.progress h3 {
    font-size: 1.8rem;
    margin-bottom: .5rem;
}

.progress .bar {
    width: 100%;
    background: var(--bg-color);
    height: .8rem;
    border-radius: .4rem;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: var(--main-color);
}

/*───────────────────*/
/*  CONTACT SUCCESS  */
/*───────────────────*/
.contact-success {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 9%;
  background: var(--second-bg-color);
}

.contact-success .container {
  max-width: 50rem;
  text-align: center;
  /* ensure vertical stack */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-success .heading {
  font-size: 5rem;       /* larger headline */
  margin-bottom: 1rem;
}

.contact-success .heading span {
  color: var(--main-color);
}

.contact-success .success-message {
  font-size: 2.4rem;     /* bump up body text */
  line-height: 1.4;
  color: var(--text-color);
  max-width: 40rem;
  margin: 0 auto;
}

.contact-success .back-home {
  margin-top: 1.5rem;
  padding: 1rem 2.5rem;  /* a bit bigger button */
  font-size: 1.8rem;
}

/*───────────────────*/
/*    PROJECTS       */
/*───────────────────*/
.projects {
    padding: 6rem 9% 2rem;
    background: var(--bg-color);
}

.projects .heading {
    margin-bottom: 4rem;
    text-align: center;
}

.projects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.project-card {
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    overflow: hidden;
    width: 30rem;
    transition: transform .3s;
}

.project-card:hover {
    transform: translateY(-.5rem);
}

.project-card img {
    width: 100%;
    display: block;
}

.project-content {
    padding: 2rem;
    text-align: center;
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: .5rem;
    color: var(--main-color);
}

.project-content p {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.project-content .btn {
    display: inline-block;
    padding: .8rem 1.5rem;
    font-size: 1.6rem;
    background: var(--main-color);
    color: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    transition: background .3s, color .3s;
}

.project-content .btn:hover {
    background: transparent;
    color: var(--main-color);
}
