html{
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  background: black;
  text-align: center;
}
a{
    text-decoration: none;
    color: white;
}
nav{
  color : black;
}
header{
    position : fixed;
    top : 0;
    display : flex;
    justify-content : space-between;
    align-items : center;
    background-color : #007fff;
    
    height :5vh;
    width : 100%;
    z-index : 100;
    
    font-family: Arial, sans-serif;
    padding: 0 1rem;
    box-sizing: border-box;
}
.logo{
    margin-left : 1rem;
    font-size : 2.5rem;
    font-weight: bold;
    font-family: 'Dancing Script', cursive;
}
.nav-links{
    margin-left : 1rem;
    margin-right : 1rem;
    font-size : 1rem;
    font-weight: bold;
}
.first-page {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 5vh;
  box-sizing: border-box;
}
.landing{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}
.landing-image{
    height : 40rem;
    width : 30rem;
    background : url("land_img.jpg");
    background-size : cover;
    background-position: center;
    border-radius: 20px;
    flex-shrink: 0;
}
.landing-text{
    flex: 1;
    padding: 2rem;
}
.landing-text,.landing-image{
    margin : 2rem;
}
/* Landing text animation: fade in */
/* Initial state for fade-in */
#heading2 {
  font-size: clamp(3rem, 8vw, 8rem);
  font-family: 'Dancing Script', cursive;
  opacity: 0;
  transform: translateY(-50px);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.fade-in {
  animation: fadeInHeading 1.2s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInHeading {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Heading animation */
#heading1 {
  font-size: clamp(2rem, 5vw, 4rem);
}
.cursor {
    font-size: clamp(2rem, 4vw, 3rem);
  display: inline-block;
  margin-left: 5px;
  color: #ff00ff;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}

/* Remove subtitle animation, make p visible */
p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1rem;
  opacity: 1;
  transform: none;
  transition: none;
}
/* Button styling and animation */
/* Remove button animation */
.btn {
  margin: 1rem 0.5rem;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background-color: #007fff;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  background-color: #00d5ff;
}

/* Typewriter effect */
#typewriter {
  color: #cc99ff;
  font-weight: bold;
  margin-top: 0.5rem;
  min-height: 2rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
}
.about {
  text-align: center;
  padding: 6rem 2rem 4rem 2rem;
  background: black;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}
h2{
  font-size : clamp(2rem, 5vw, 3rem);
  margin-bottom : 2rem;
}
.about p{
  font-size : clamp(1rem, 2vw, 1.5rem);
  margin : 2rem 1rem;
}
.about-text{
  height : auto;
  min-height: 60vh;
  width  : 90%;
  max-width: 1200px;
  margin : auto;
  background-color: white;
  border-radius: 20px;
  color : black;
  padding : 2rem 1rem;
  font-size : clamp(1.2rem, 2.5vw, 2rem);

}
.no-bullets{
  list-style-type: none;
  padding : 1rem;
}
.no-bullets li{
  margin-bottom: 1rem;
  text-align: left;
}
#bold{
  font-weight: bold;
}
.skills{
  text-align: center;
  padding: 6rem 2rem 4rem 2rem;
  background: black;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}
.skills h2{
  font-size : clamp(2rem, 5vw, 3rem);
  margin-bottom : 2rem;
}
.skills-container{
  display : grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
  background-color  : white;
  padding: 2rem;
  width : 90%;
  max-width: 1400px;
  margin : auto;
  border-radius : 20px;
  place-items: stretch;
}

/* Specific positioning for skill cards */
.div1 { grid-column: 1 / 3; grid-row: 1; }
.div2 { grid-column: 3 / 5; grid-row: 1; }
.div3 { grid-column: 5 / 7; grid-row: 1; }
.div4 { 
  grid-column: 2 / 4; 
  grid-row: 2; 
}
.div5 { 
  grid-column: 4 / 6; 
  grid-row: 2; 
}
.div1,.div2,.div3,.div4,.div5{
  height : 22rem;
  width : 100%;
  border-radius : 20px;
  background-color : #007fff;
  text-align: left;
  padding : 2rem 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Header for the skill category */
.skillname {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}
.skill-name{
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  margin  : 0.7rem 0;
  
}

/* Container for individual skill items */
.skillbody {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
  justify-content: space-evenly;
  padding: 0.5rem 0;
}

/* Individual skill item */
.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-height: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Skill name (e.g., "HTML") */
.skill-name {
  flex-basis: 25%;
  min-width: 80px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Container for the progress bar */
.skill-bar-container {
  background-color: black;
  height: 8px;
  border-radius: 5px;
  flex-grow: 1;
  min-width: 100px;
  display : flex;
  align-items : center;
  
}

/* The actual progress bar */
.skill-bar {
  height: 100%;
  border-radius: 5px;
  background-color: White;
}

/* Percentage text */
.skill-percentage {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  margin-left: 10px;
}

.projects{
  text-align: center;
  padding: 6rem 2rem 4rem 2rem;
  background: black;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-container{
  display : grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  background-color  : white;
  padding: 2rem 2rem 1rem 2rem;
  width : 90%;
  max-width: 1400px;
  margin : auto;
  border-radius : 20px;
  place-items: stretch;
}
.proj{
  height : 40rem;
  width : 100%;
  border-radius : 20px;
  margin : 0;
  background-color : #007fff;
  text-align: center;
  padding : 1rem;
  display : flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
#proj-image1,#proj-image2,#proj-image3{
  height : 12rem;
  width : 100%;
  max-width: 25rem;
  background-color : black;
  border-radius : 15px;
  margin : 1rem 0;
  background-size : cover;
  background-position: center;
  background-repeat: no-repeat;

}
#proj-image1{
  background : url("tictactoe.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#proj-image2{
  background : url("rockpapersci.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#proj-image3{
  background : url("currency.avif");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.proj-header{
  font-size : clamp(1.5rem, 3vw, 2rem);
  font-weight : bold;
  margin : 0.5rem 0;
}
.proj-description{
  font-size : clamp(1rem, 2vw, 1.2rem);
  margin : 0.5rem 0;
  text-align: center;
  flex-grow: 1;
}
.proj-elements{
  display : flex;
  justify-content : center;
  align-items : center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.elements{
  margin : 0.2rem;
  height : 2rem;
  width : 5rem;
  background-color : black;
  border-radius : 15px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 2rem;
}
.proj-btn{
  height : 3rem;
  width : 100%;
  max-width: 22rem;
  margin-top : 1rem;
  padding: 0.5rem 1rem;
  background-color: white;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  cursor: pointer;
  font-weight: 600;
  box-sizing: border-box;
}
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#view-more-a{
  display : inline-block;
  margin: 2rem auto;
  padding: 0.8rem 1.5rem;
  background-color: white;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  width: auto;
  height: 3rem;
  line-height: 1.8rem;
  
}

.certifications{
  text-align: center;
  padding: 6rem 2rem 4rem 2rem;
  background: black;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

.certifications-container{
  display : flex;
  flex-direction: column;
  align-items: center;
  background-color  : white;
  padding: 2rem;
  width : 90%;
  max-width: 1000px;
  margin : auto;
  border-radius : 20px;
}

.certi{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#certi1,#certi2,#certi3,#certi4,#certi5{
  height: auto;
  min-height: 12rem;
  width: 100%;
  color: white;
  background-color:#007fff ;
  font-size : clamp(1.2rem, 2.5vw, 2rem);
  text-align: left;
  border-radius : 20px;
  padding: 1.5rem;
  box-sizing: border-box;
}
h3{
  padding : 0;
  margin : 0 0 1rem 0;
  font-size : clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.3;
}
#view-more-certi{
  display : inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background-color: #007fff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  cursor: pointer;
  font-weight: 600;
}
.certi p{
  margin : 0.5rem 0;
  padding: 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
}
.certi-btn{
  margin-top : 1rem;
  padding: 0.8rem 1rem;
  background-color: black;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  height : auto;
  min-height: 3rem;
  font-weight: 600;
}
.btn-div{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width : 100%;
}

.contact {
  padding: 60px 20px;
  background: black;
}
.contact-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Left Info */
.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #00e0ff;
  text-align: left;
}
.contact-info h2 span {
  color: #00ff88;
}
.contact-info p {
  margin: 15px 0 30px;
  color: #bbb;
  line-height: 1.6;
  text-align: left;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 12px;
}
.info-item i {
  font-size: 1.4rem;
  background: #111;
  color: #00ff88;
  padding: 12px;
  border-radius: 8px;
  flex-shrink: 0;
}
.info-item h4 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #fff;
  text-align : left;
}
.info-item p {
  margin: 0;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #bbb;
  text-align: left;
}

.socials {
  margin-top: 20px;
}
.socials a {
  display: inline-block;
  margin-right: 12px;
  font-size: 1.4rem;
  color: #bbb;
  background: #111;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
}
.socials a:hover {
  color: #00e0ff;
  background: #222;
}

/* Right Form */
.contact-form {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  width : 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
.contact-form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  text-align: left;
  font-size: clamp(1rem, 2vw, 1.1rem);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: #262626;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1rem);
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00e0ff;
}
input::placeholder,
textarea::placeholder {
  font-family: Arial, sans-serif;
}
.contact-form button {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: 2px solid #00e0ff;
  background: transparent;
  color: #00e0ff;
  font-size: clamp(1rem, 2vw, 1.1rem);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background: #00e0ff;
  color: #111;
}

.success-message {
  margin-top: 12px;
  text-align: center;
  color: #22c55e;
  display: none;
}
footer{
  background-color : #007fff;
  text-align : center;
  height : 5vh;
  width  : 100vw;
  
}
footer p{
  font-size : clamp(0.8rem, 1.5vw, 1rem);
  padding : 0.2rem;
  margin : 0;
  
}


/* Media Queries for better responsiveness */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
  .landing {
    flex-direction: column;
    text-align: center;
  }
  
  .landing-image {
    height: 25rem;
    width: 20rem;
    order: -1;
  }
  
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  
  .div1 { grid-column: 1; grid-row: 1; }
  .div2 { grid-column: 2; grid-row: 1; }
  .div3 { grid-column: 1; grid-row: 2; }
  .div4 { 
    grid-column: 2; 
    grid-row: 2;
    justify-self: stretch;
    margin: 0;
  }
  .div5 { 
    grid-column: 1; 
    grid-row: 3;
    grid-column-end: 3;
    justify-self: center;
    margin: 0;
    max-width: 400px;
  }
  
  .div1,.div2,.div3,.div4,.div5 {
    height: 18rem;
  }
  
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .proj {
    height: 38rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  header {
    height: 8vh;
    padding: 0 1rem;
  }
  
  .logo {
    font-size: 2rem;
    margin-left: 0;
  }
  
  .nav-links {
    font-size: 0.9rem;
    margin: 0 0.5rem;
  }
  
  .first-page {
    padding-top: 8vh;
  }
  
  .landing-image {
    height: 20rem;
    width: 15rem;
  }
  
  .about-text {
    width: 95%;
    padding: 1.5rem;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .div1, .div2, .div3, .div4, .div5 { 
    grid-column: 1;
    justify-self: stretch;
    margin: 0;
    max-width: none;
  }
  .div1 { grid-row: 1; }
  .div2 { grid-row: 2; }
  .div3 { grid-row: 3; }
  .div4 { grid-row: 4; }
  .div5 { grid-row: 5; }
  
  .skills-container,
  .projects-container,
  .certifications-container {
    width: 95%;
    padding: 1.5rem;
  }
  
  .div1,.div2,.div3,.div4,.div5 {
    height: 16rem;
  }
  
  .proj {
    height: 36rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info h2 {
    text-align: center;
  }
  
  .contact-info p {
    text-align: center;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  header {
    height: 10vh;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem;
  }
  
  .logo {
    font-size: 1.5rem;
    margin: 0;
  }
  
  nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .nav-links {
    font-size: 0.8rem;
    margin: 0 0.2rem;
  }
  
  .first-page {
    padding-top: 10vh;
  }
  
  .landing {
    padding: 1rem;
  }
  
  .landing-image {
    height: 15rem;
    width: 12rem;
  }
  
  .btn {
    display: block;
    width: 90%;
    margin: 1rem auto;
    font-size: 1rem;
  }
  
  .about, .skills, .projects, .certifications {
    padding: 4rem 1rem 3rem 1rem;
  }
  
  .about-text {
    padding: 1rem;
    font-size: 1.2rem;
  }
  
  .no-bullets li {
    text-align: center;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .div1,.div2,.div3,.div4,.div5 {
    padding: 1rem;
  }
  
  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .skill-name {
    flex-basis: auto;
    width: 100%;
  }
  
  .skill-bar-container {
    width: 100%;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .proj-elements {
    justify-content: center;
  }
  
  .elements {
    width: 4rem;
    font-size: 0.8rem;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .socials {
    text-align: center;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .landing-image {
    height: 12rem;
    width: 10rem;
  }
  
  .about-text {
    font-size: 1rem;
  }
  
  .elements {
    width: 3.5rem;
    font-size: 0.7rem;
  }

}

