*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    background-color: white;
    font-family:'Roboto', sans-serif;
    margin:auto;
}
html, body {
    margin: 0;
    padding: 0;
    background-color:white;
    font-family:'Roboto', sans-serif;
    scroll-behavior:smooth;
}
/* Full-screen loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: gold;
  display: flex;
  flex-direction: column; /* stack message and spinner */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 30px;
  font-weight: bold;
  color: #1F2937;
  text-align: center;
}
#loader h2 {
  margin-bottom: 10px;
  font-size: 32px;
}
/* Spinner */
.spinner {
  margin-top: 30px; /* space between message and spinner */
  width: 50px;
  height: 50px;
  border: 5px solid white;
  border-top: 5px solid #1F2937; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#loader {
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}
#Image{
    width:150px;
    height:auto;
    margin-top: 50px;
    border-radius: 55%;
    margin-bottom: 20px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

header {
    background-color:#1F2937;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: right;
    position: relative;
}
#myresume{
    text-decoration: none; 
    color:#1f2937;
    border-radius: 5px;
    font-weight: bold; 
    cursor: pointer;
    font-weight: bold;
    margin-left: 15px;
    font-size: 20px;
    padding: 10px 15px;
    background-color: gold;
}
#myresume:hover{
  color:white;
}
a:hover{
    color:gold;
}
a{
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-direction: column;
    background: #1F2937;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 0 20px; /* start collapsed */
    border-radius: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
}

.nav-links.active {
    max-height: 500px; /* enough height to show menu */
    padding: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}
.nav-links a:hover{
    color:gold;
}
.menu-btn {
     display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    
    top: 15px;
    right: 20px;
    z-index: 1100;
}
.hero{
        background-color: #1F2937;
        font-size: 48px;
        color:#F9FAF8;
        font-weight: 800;
        text-align: left;
        padding: 100px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .hero-text{
        max-width: 50%;
        text-align: center;
    }
    .hero-text{
        font-size: 48px;
        line-height: 1.2;
    }
    
   span{
    display:block;
    color: gold;
    font-size: 56px;
    font-weight: 900;
    text-align: center;
   }
    h2{
        font-weight: 900;
    }
    button{
        background-color:gold;
        font-size:20px;
        padding: 10px 20px;
        color: white;
        cursor: pointer;
        font-weight: bold;
        border: none;
        border-radius: 10px;
    }
    button:hover{
        color:black;
    }
    #download-cv{
      color: black;
      margin-top:20px;
    }
    #download-cv:hover{
      color: white;
    }
    .hero img{
        max-width:100%;
        height:auto;
    }
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 50px 20px;
  gap: 20px;
    }

/* this selector selects all divs inside of .flex-container */
.flex-container div {
  background: white;
  text-align: center;
  border: 4px solid #3882F6;
  border-radius: 20px;
  padding: 20px;
  max-width: 250px;
  flex: 1 1 auto;
  
}
.flex-container div img{
    height:auto;
    width:100%;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
    
}
.flex-container div p{
    font-size: 16px;
    color:#333;
    font-weight: bold;
}
.image{
    display: flex;
    justify-content: space-between;
}

h1{
    text-align: center;
    color:white;
}
.flex-container{
    display:flex;
    justify-content:center;
}
.about h2, .skills h2, .projects h2 {
    font-size: 32px;
}
.about{
    margin-top:5px;
    max-width: 100%;
    align-items: center;
  margin: 10px auto;
    padding: 50px 20px;
    border-radius: 20px;
    border: 1px solid gold;
    width: 100%;
    height: auto;
  font-size:20px;
}
.pcn{
  color: gold;
  font-weight: 900;
}
.pcn:hover{
  color: #1F2937;
}

.skills{
    background-color:#36454f;
    margin-top:5px;
  max-width: 600px;
  margin: 10px auto;
    padding: 50px 20px;
    border-radius: 20px;
    width: 100%;
    height: auto;
    box-shadow: 0px 4px 10px rgba(109, 39, 39, 0.1);
  font-size:20px;

}
.skills li {
  opacity: 0;
  transform: translateY(10px);
  animation: slideUp 5s ease-in-out forwards;
}





progress{
    width:90%;
    height:10px;
    border-radius: 10px;
    margin-left:20px;
    /* fallback background */
    background-color: gold;
    /* Remove default appearance for better styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Chrome, Safari, Opera */
progress::-webkit-progress-bar {
    background-color: #eee;
    border-radius: 10px;
}
progress::-webkit-progress-value {
    background-color: gold;
    border-radius: 10px;
}

/* Firefox */
progress::-moz-progress-bar {
    background-color: gold;
    border-radius: 10px;
}

/* IE/Edge */
progress::-ms-fill {
    background-color: gold;
    border-radius: 10px;
}

ul{
    align-items: center;
    text-align: center;
    list-style-type: none;
    font-size: 25px;
    font-weight: bold;
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.project-card {
  background: #1F2937;
  color: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 1s ease;
}

.project-card:hover {
  box-shadow:2px 4px 6px  gold;
  margin-left: 15px;
  margin-right: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  transform: translateX(-5px);
  transform: scale(1.14);
  transition: all 2s ease;
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #2563EB;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.5s ease;
}

.project-card a:hover {
  background: #1D4ED8;
}



button a:hover{
    color:orange;
}
.cta{
        background-color: #333;
        color: white;
        align-items: center;
        justify-content: space-between;
        display: flex;
        margin: 50px;
        border-radius: 10px;
        padding: 40px 60px;
    }
    .cta-text p{
        font-size: 20px;
        margin-bottom: 10px;
        padding: 20px 5px;
    }
    .cta button {
        background-color:gold;;
        color: white;
        border: none;
        font-weight: bold;
        border-radius: 10px;
        padding:10px 20px;

    }


.contact-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.contact-info h2 {
  margin-bottom: 15px;
  color: #222;
}

.contact-info .student-tag {
  font-style: italic;
  color: #444;
  margin-bottom: 15px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info ul li {
  margin: 10px 0;
  font-size: 16px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 15px;
}

.contact-form button {
  padding: 12px 20px;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 1s ease;
}

.contact-form button:hover {
  background: #005ecb;
}




footer{
    background-color: #1F2937;
    bottom: 0;
    left:0;
    position:relative;
    width:100%;
    padding: 20px 0;
    text-align: center;
    color: white;
    font-weight: bold;
}
footer p{
      font-size: 20px;
}
.icons{
    font-size: 20px;
    color: orange;
}
#linkedin:hover{
    color:blue;
}

#x:hover{
    color:black;
}
#facebook:hover{
    color:blue;
}
#github:hover{
    color:#4078c0 ;
}
#gmail:hover{
    color: red;
}


#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline:none;
    background-color: gold;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50px;
   transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
   transform: translate(20px);
}
#myBtn img {
    height:28px;
}

#myBtn:hover{
    background-color: #555;
}

#year{
  font-size: 21px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 769px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-radius: 0;
  }
  .nav-links a {
    margin-left: 15px;
  }
  .menu-btn {
    display: none;
  }
}
@media (max-width: 768px) {
    .menu-btn{ display: block;}
    .nav-links{
      display: none;
        flex-direction: column;
    background: #1F2937;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 20px;
    border-radius: 10px;
  }
    .nav-links.active { display: block; }
    }
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text, .flex-container {
    max-width: 100%;
  }
  .cta {
    flex-direction: column;
    text-align: center;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .form-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  span { font-size: 36px; }
  .cta { padding: 20px; margin: 20px; }
}