html {
  scroll-behavior: smooth;
}

/* Landing page home section */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 2rem;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
}

.landing-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
}
 /* social links */
 .social-links {
  margin-top: 1.5rem;
}

.social-links a {
  margin-right: 1rem;
  font-size: 1.8rem; /* size of icons */
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: #00c6ff;
  transform: scale(1.2); /* small zoom effect */
}

/* ===== ABOUT SECTION ===== */
.about {
  text-align: center;
  padding: 4rem 2rem;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.about h2 span {
  color: #00c6ff; /* highlight "Me" */
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}

.about-img {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #00c6ff;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.7);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ddd;
  max-width: 700px;
}

.about-text p:first-child {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffcc00;
}

/* Optional glowing animation */
.about-img {
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px #00c6ff, 0 0 20px #00c6ff;
  }
  to {
    box-shadow: 0 0 25px #00c6ff, 0 0 50px #00c6ff;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    padding: 1rem;
  }

  .about-text {
    font-size: 1rem;
  }
}

/* Flex container to align education & experience side by side */
.flex-section {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap; /* makes it responsive */
}

.education, .experience {
  flex: 1;
  min-width: 300px;
}

/* Section Title */
.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
  color: #fff;
}

/* Timeline work/education */
.timeline {
  border-left: 2px solid #00f2fe;
  padding-left: 25px;
  position: relative;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00f2fe;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 20px;
  width: 15px;
  height: 15px;
  background: #00f2fe;
  border-radius: 50%;
  border: 2px solid #111;
}

.timeline-date {
  display: block;
  font-size: 0.9rem;
  color: #00f2fe;
  margin-bottom: 8px;
  font-weight: bold;
}

.timeline h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline ul {
  padding-left: 20px;
}

.timeline ul li {
  margin-bottom: 5px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Skills Section */
#skills {
  padding: 60px 20px;
  background: #0f2027;
  color: #fff;
  text-align: center;
}

#skills .section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #00f2fe;
  font-weight: bold;
  text-transform: uppercase;
}

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

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00f2fe;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.skill-card i {
  font-size: 2rem;
  color: #00f2fe;
  margin-bottom: 15px;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.skill-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 20px rgba(0, 242, 254, 0.3);
  border-color: #0af;
}

/* Projects Section */
#projects {
  padding: 60px 20px;
  background: #111827; /* slightly different shade for separation */
  color: #fff;
  text-align: center;
}

#projects .section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #00f2fe;
  font-weight: bold;
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00f2fe;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.project-card i {
  font-size: 2.2rem;
  color: #00f2fe;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 20px rgba(0, 242, 254, 0.3);
  border-color: #0af;
}

.text-side {
  flex: 1;
}

.text-side h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.text-side h2 {
  font-size: 1.8rem;
  color: #00c6ff;
  margin-bottom: 1rem;
}

.text-side p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.buttons button {
  margin-right: 1rem;
  padding: 0.8rem 1.5rem;
  background: #00c6ff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.buttons button:hover {
  background: #ffcc00;
  color: #111;
}

.social-links a {
  margin-right: 1rem;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

.social-links a:hover {
  color: #00c6ff;
}

.image-side {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-side img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .landing-content {
    flex-direction: column;
    text-align: center;
  }
  
  .buttons button {
    margin-bottom: 1rem;
  }

  .social-links a {
    margin-right: 2rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
  line-height: 1.6;
  background: #0f2027;
  color: #f5f5f5;
}

a {
  color: #00c6ff;
  text-decoration: none;
  transition: color 0.3s;
}

/* ===== HEADER and NAV ===== */
header {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 2rem;
  text-align: center;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  font-weight: bold;
  position: relative;
  padding-bottom: 4px;
}

/* Hover effect */
nav ul li a:hover {
  color: #ffcc00;
}

/* Active link highlight */
nav ul li a.active {
  color: #ffcc00;
}

nav ul li a.active::after,
nav ul li a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffcc00;
  transform: scaleX(1);
  transition: transform 0.3s ease-in-out;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffcc00;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

/* ===== SECTIONS ===== */
section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  scroll-margin-top: 100px; 
}

section h2 {
  margin-bottom: 1rem;
  color: #00c6ff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding-bottom: 5px;
}

/* ===== FORM ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  outline: none;
  font-size: 1rem;
}

form button {
  align-self: flex-start;
  padding: 0.8rem 1.2rem;
  background: #00c6ff;
  color: #111;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

form button:hover {
  background: #ffcc00;
  color: #111;
}
.cv-download {
  margin-top: 2rem;
  display: flex;
  justify-content: center; /* centers button horizontally */
}

.cv-download button {
  padding: 0.8rem 1.5rem;
  background: #00c6ff;
  color: #111;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.cv-download button:hover {
  background: #ffcc00;
  color: #111;
}
/* ===== BADGES/CERITICATE SECTION ===== */
#badges {
  text-align: center;
}

.badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.badge-slider {
  overflow: hidden;
  width: 70%;
}

.badge-track {
  display: flex;
  transition: transform 0.5s ease;
}

.badge-track img {
  width: 150px;
  height: 150px;
  margin: 0 10px;
  border-radius: 8px;
  border: 2px solid #00c6ff;
  background: rgba(255,255,255,0.05);
}

.arrow {
  background: none;
  border: none;
  color: #00c6ff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.arrow:hover {
  color: #ffcc00;
}
