/* Fade-in animation for sections and main elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    height: 100vh;
    /* overflow: hidden; */
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173));
    padding-top: 10vh;
    scroll-behavior: smooth;
}

nav {
    width: 100%;
    height: 10vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(109,67,0,0.08);
}


.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo{
    color: black;
    font-size: 2rem;
    font-weight: bolder;
}

.logo span{
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.hamburg, .cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: black;
    font-size: 2rem;
    display: none;
}

.nav-container .links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transform: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: rgb(109,67, 0);
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .contact-btn{
    background-color: transparent;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid rgb(109,67, 0);
    transition: 0.2s linear;
    
}

.nav-container .contact-btn a{
    color: black;
    transition: 0.3s linear;
}

.nav-container .contact-btn:hover {
    background-color: rgb(109,67, 0);
}
.nav-container .contact-btn:hover a {
    color: rgb(0, 0, 0);
}

.nav-container .links a:hover{
    color: rgb(255, 255, 255);
}

.dropdown {
    z-index: 9999;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    background: rgba(255,255,255,0.85); /* much more opaque for highlight */
    backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px rgba(109,67,0,0.25);
    border-bottom: 4px solid rgb(109,67,0);
    transition: 0.2s linear;
}

.dropdown .links a{
    color: black;
    display: flex;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: rgb(109,67, 0);
}

.dropdown .cancel {
    display: block;
    position: absolute;
    top: 20px;
    right: 30px;
    color: #333;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

section{
    width: 100%;
    min-height: 60vh;
    height: auto;
    padding: 40px 0;
    padding-top: 12vh;
}

.main-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 1;
}

.image img {
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: 50%;   /* Makes it circular */
  border: 4px solid #fff; /* Optional: adds a border */
  box-shadow: 0 2px 12px rgba(0,0,0,0.15); /* Optional: adds a subtle shadow */
  display: block;
  margin: 0 auto;
}

.main-container .image{
    z-index: -1;
    width: 50%;
}

.main-container .content{
    color: black;
    width: 40%;
    min-height: 100px;
}

.content h1{
    font-size: clamp(1rem, 2rem + 5vw, 3rem);
}

.content h1 span{
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.content .typewriter{
    font-weight: 600;
    font-size: clamp(1rem, 1rem + 5vw, 2rem);
}

.content .typewriter span{
    color: rgb(109,67, 0);
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgb(109,67, 0);
    position: relative;
    transition: 0.3s linear;
}

.typewriter span::before{
    content: "Developer";
    animation: words 15s infinite;
}

.typewriter span::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    animation:  cursor 0.6s linear infinite;
}

@keyframes cursor {
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 33%{
        content: "Developer";
    }
    /* 34%, 66%{
        content: "Designer";
    } */
    /* 67%, 100%{
        content: "Youtuber";
    } */
}

.content p{
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color:transparent;
    border: 0.2rem solid rgb(109,67, 0);
    border-radius: 50%;
    color:rgb(109,67, 0);
    margin: 5px 10px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: white;
    background-color: rgb(109,67, 0);
    filter: drop-shadow(0 0 10px rgb(109,67,0));
}

.content button{
    width: 40%;
    height: 6vh;
    margin: 30px;
    background-color: rgb(109,67, 0);
    color: white;
    border: none;
    outline: none;
    font-size: 100%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}

.content button:hover{
 scale: 1.1;
 color: rgb(109,67, 0);
 border: 2px solid rgb(109,67, 0);
 background-color: transparent;
 font-weight: 700;
 box-shadow: 0 0 40px rgb(109,67, 0);
}

@media (max-width:884px) {
    body{
        overflow-y: visible;
    }

    nav .logo{
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    .main-container{
        display: flex;
        flex-direction: column;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,.cancel{
        display: block;
    }

    .main-container .content{
        width: 80%;
    }

    .social-links i{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    .cancel{
        color: white;
    }

    .main-container .image{
        width: 80%;
        margin-bottom: 0px;
    }
}


.skills-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 24px rgba(109,67,0,0.12);
  border-radius: 16px;
  padding: 48px 32px;
  margin: 32px auto;
  max-width: 700px;
}

.skills-card h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: rgb(109,67,0);
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skills-list .skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.skills-list i {
  font-size: clamp(3rem, 6vw, 4rem);
  margin-bottom: 12px;
}

.skills-list .html { color: #e34c26; }
.skills-list .css { color: #2965f1; }
.skills-list .js { color: #f7df1e; }
.skills-list .react { color: #61dafb; }
.skills-list .node { color: #68a063; }
.skills-list .angular { color: #e0200b; }

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 24px rgba(109,67,0,0.12);
  border-radius: 16px;
  padding: 48px 32px;
  margin: 32px auto;
  max-width: 700px;
}

.about-card h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: rgb(109,67,0);
  font-weight: 700;
}


.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 24px rgba(109,67,0,0.12);
  border-radius: 16px;
  padding: 48px 32px;
  margin: 32px auto;
  max-width: 700px;
}

.contact-card h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: rgb(109,67,0);
  font-weight: 700;
}

.contact-card form {
    width:100%;
    margin-top:24px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
}

