/* for index.html */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
     background-color:rgb(18,24,39);
}

header {
    color:lightskyblue;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align:center;
}


/* nav bar */
nav {
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  margin: 20px auto; /* adds top spacing and centers */
  background-color: rgb(18, 24, 39);
  border: 1px solid lightskyblue; /* 👈 Adds the box */
  border-radius: 12px;            /* 👈 Rounded corners */
  width: fit-content;             /* box wraps nav items */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    color: lightskyblue;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav ul li a {
    text-decoration: none;
    color: lightskyblue;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav ul li a:hover {
    color: orangered;
}

/* footer */
footer {
    text-align: center;
    color: lightskyblue;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: static;
    bottom: 0;
    width: 100%;
    background-color: rgb(18,24,39);
    margin: 10px
}

footer p {
    margin: 10px 0;
}

footer a {
    color: lightskyblue;
    text-decoration: none;
}

footer:hover {
    color: orangered;
}

footer a.active {
    color: white;
}

/* main content */

main {
    padding: 20px;
    color: lightskyblue;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h2{
    text-align: center;
}
section {
    margin: 20px 0;
    padding: 20px;
    background-color: rgb(30, 40, 60);
    border-radius: 8px;
}
section h2 {
    color: lightskyblue;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
section p {
    color: lightgray;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
section ul {
    list-style: disc;
    padding-left: 20px;
}

section ul li {
  
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    z-index: 100; /* Ensure it stays on top */
}
  color: lightgray;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
section ul li a {
    color: lightskyblue;
    text-decoration: none;
}
section ul li a:hover {
    color: orangered;
}
section ul li a.active {
    color: white;
}
section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Button */
button {
    background-color: lightskyblue;
    color: rgb(18,24,39);
    border: none;
    padding: 10px 20px;
    margin: 20px 0;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
button:hover {
    background-color: orangered;
    color: white;
}

/* Hero Card  */
.card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  margin-top: 40px;
}

.card {
  width: 300px;
  height: 180px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  cursor: pointer;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgb(30, 40, 60);
  color: lightskyblue;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 20px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card-front h1 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.card-front p {
  margin-bottom: 15px;
}

.card-icons a {
  color: lightskyblue;
  margin-right: 12px;
  font-size: 1.2rem;
  text-decoration: none;
}

.card-icons a:hover {
  color: orangered;
}

.card-back {
  transform: rotateY(180deg);
  text-align: left;
  font-size: 0.9rem;
}

.card-links a {
  color: lightskyblue;
  text-decoration: none;
  display: block;
  margin-top: 10px;
}

.card-links a:hover {
  color: orangered;
}

/* behind the card, background is hidden */
section  {
    background-color:  rgb(18,24,39);
    padding: 0;
    margin: 40px 0;
}

@media (max-width: 500px) {
  .card {
    width: 90%;
    height: auto;
  }
}

html {
  scroll-behavior: smooth;
}
/* Smooth scrolling for links */
a {
  transition: color 0.3s ease;
}

/* Skills Grid */
#skills {
  margin-top: 40px;
  text-align: center;
}

#skills h2 {
  margin-bottom: 20px; /* adjust as needed */
}


.skills-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skill-card {
  background-color: rgb(30, 40, 60);
  border-radius: 8px;
  padding: 15px;
  color: lightskyblue;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  background-color: orangered;
  color: white;
}

/* Spotlight */
#spotlight {
  margin-top: 60px;
  background-color: rgb(30, 40, 60);
  padding: 30px;
  border-radius: 10px;
}

#spotlight h2 {
  color: lightskyblue;
  margin-bottom: 10px;
  text-align: center;
}

#spotlight p,
#spotlight ul {
    color: lightgray;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    flex: 1 1 300px;
    margin-bottom: 1.2em;
    line-height: 1.5;
    color: lightgray;

}

/* Timeline */
#timeline {
  margin-top: 60px;
  padding: 30px;
}

.timeline {
  position: relative;
  margin-top: 30px;
  padding-left: 30px;
  border-left: 2px solid lightskyblue;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
}

.timeline-content h3 {
  margin: 0;
  color: lightskyblue;
}

.timeline-content p {
  color: lightgray;
}

/* CTA Section */
#cta {
  text-align: center;
  margin: 60px auto; /* center horizontally with margin */
  padding: 30px;
  background-color: rgb(18, 24, 39);
  border: 1px solid lightskyblue;
  border-radius: 10px;
  width: fit-content; /* wrap content */
  max-width: 90%;      /* prevent it from overflowing on small screens */
}


#cta h2 {
  color: lightskyblue;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  background-color: lightskyblue;
  color: rgb(18, 24, 39);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.cta-button:hover {
  background-color: orangered;
  color: white;
}

.grid-break {
  grid-column: 1 / -1; /* spans the full row */
  height: 0; /* no visual size */
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* for about.html */

.about-section {
  margin: 30px auto;
  max-width: 900px;
  padding: 30px;
  background-color: rgb(30, 40, 60);
  border-radius: 10px;
  color: lightskyblue;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1 1 300px;
  margin-bottom: 1.2em;
  line-height: 1.5;
  color: lightgray;
}

.about-image {
  flex: 1 1 250px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.about-section blockquote {
  margin-top: 30px;
  font-style: italic;
  color: orangered;
  text-align: center;
}

.about-section h2 {
  text-align: left;
  color: lightskyblue;
  margin-bottom: 10px;
}

.about-section a {
  color: lightskyblue;
  text-decoration: none;
}

.about-section a:hover {
  color: orangered;
}

/* for projects.html */

.projects-intro {
  margin: 60px auto 20px;
  max-width: 900px;
  text-align: center;
  color: lightskyblue;
}

.projects-intro h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.projects-intro p {
  color: lightgray;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.project-card {
  background-color: rgb(30, 40, 60);
  border-radius: 12px;
  padding: 20px;
  color: lightskyblue;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  color: white;
}

.project-card h2 {
  margin-bottom: 10px;
}

.project-card p {
  margin-bottom: 10px;
  color: lightgray;
}

.project-card .tech-stack {
  font-style: italic;
  font-size: 0.9rem;
  color: lightskyblue;
}

.project-links a {
  color: lightskyblue;
  text-decoration: none;
  font-weight: bold;
}

.project-links a:hover {
  color: orangered;
}

/* for blog.html */

.blog-post {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid lightskyblue;
}

.blog-post h3 {
  margin-bottom: 10px;
  color: lightskyblue;
}

.blog-post .meta {
  font-size: 0.9rem;
  color: gray;
  margin-bottom: 10px;
}

.blog-post a {
  color: orangered;
  text-decoration: none;
}

.blog-post a:hover {
  text-decoration: underline;
}

.gap {
  margin: 20px;
}

/* for contact.html */