/* ========== ROOT VARIABLES ========== */
:root {
  --background-color: #0f172a;
  --accent-color: #62d84e;
  --text-color: #f4ecec;
}


/* ========== GLOBAL STYLES ========== */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  height: 100%;
}

.page-content {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 1s ease, transform 1s ease;
  will-change: transform, opacity;
}

.page-content.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

h1 {
  color: #00a3ba;
  padding: 1.8px;
  display: inline-block;
  width: 100%;
  text-align: center;
   border-bottom: 1px solid white
}

/* ========== SPINNER ========== */
.spinner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== HOME SECTION (Typewriter + Nav) ========== */
.typewriter span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  font-size: 20px;
  animation: typing 4s steps(40, end) forwards, showCursor 0s forwards, hideCursor 0s forwards 4s;
  color: var(--accent-color);
}

.typewriter h2 {
  display: inline-block;
  width: 53%;
  text-align: right;
  color:#00a3ba;

}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes showCursor {
  to { border-right: 2px solid var(--accent-color); }
}

@keyframes hideCursor {
  to { border-right: none; }
}

/* ========== LAYOUT ========== */
.homepage {
  display: flex;
  flex-wrap: wrap;
}

.container1 {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 2rem;
  box-sizing: border-box;
}

.container2 {
  padding: 2rem;
  flex: 1;
  box-sizing: border-box;
}

/* ========== NAVIGATION ========== */
.navigation {
  margin-top: 1rem;
}

.navigation a {
  display: block;
  color: var(--accent-color);
  text-decoration: none;
  margin: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.navigation a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #4343f9;
}

.buttonpop {
  display: flex;
  justify-content: center;
}

.buttonpop button {
  background-color: var(--accent-color);
  color: black;
  border-radius: 4px;
  border: none;
  padding: 0.5rem 1rem;
}

/* ========== POPUP FORM ========== */
.popup-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-content {
  background-color: #131d34;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  color: white;
  width: 300px;
  box-shadow: 0 0 20px var(--accent-color);
}

.popup-content input {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.radio-group {
  display: flex;
  justify-content: space-around;
  margin: 0.8rem 0;
  color: white;
  font-size: 0.9rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.popup-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.popup-actions button {
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  border: none;
  color: black;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

#formMessage {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

/* ========== ABOUT SECTION ========== */
.about {
  margin-bottom: 1rem;
  text-align: justify;
}

.about span {
  display: none;
}

/* ========== SOCIALS ========== */
.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  
}

.socials img {
  height: 28px;
  width: 28px;
  filter: invert(100%);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.socials img:hover {
  transform: scale(1.2);
}

/* ========== TIMELINE ========== */
.timeline-container {
  margin-top: 1rem;
}

.timeline {
  border-left: 3px dotted var(--accent-color);
  padding-left: 20px;
  margin-left: 20px;
}

.event {
  position: relative;
  margin-bottom: 1rem;
}

.circle {
  position: absolute;
  left: -34px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border: 3px solid var(--background-color);
  border-radius: 50%;
}

.date {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 3px;
  display: block;
}

.content p {
  margin: 0;
  font-size: 0.88rem;
}

/* ========== SKILLS SECTION ========== */
.skills-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.8rem;
  justify-content: space-between;
}

.card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1px;
  border-radius: 10px;
  background: linear-gradient(270deg, red, blue, yellow, lime, var(--accent-color));
  background-size: 800% 800%;
}

.card-wrapper:hover {
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.skill-card
 {
  min-height: 260px;

  background-color: #131d34;
  border-radius: 10px;
  padding: 0.9rem;
  color: white;
}

.skill-card h2 {
  color: var(--accent-color);
  font-size: 1.2rem;
  border-bottom: 1px solid #555;
  margin-bottom: 1rem;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.7rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skill-item img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50% ;
  border: 1px solid var(--accent-color);
  padding: 2px;
  background: var(--background-color);
}

.skill-item p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* ========== PROJECTS SECTION ========== */
#projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  align-items: stretch;
}

.project-card p {
  font-size: 0.95rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skills span {
  background: var(--accent-color);
  color: black;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
}


/* ========== TOGGLE BUTTONS (Certifications & Projects Unified) ========== */
.cert-toggle,
.project-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cert-btn,
.project-btn {
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.cert-btn.active,
.project-btn.active {
  background-color: var(--accent-color);
  color: var(--background-color);
  border: 2px solid var(--accent-color);
}


.cert-section {
  display: none;
}

.cert-section.active {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Fix certification image sizing */
.cert img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  margin: 10px auto;
  display: block;
}

.cert img {
  width: auto;
  height: 250px;
  object-fit: contain;
  margin: 10px auto;
  display: block;
}

/* On smaller screens, reduce the height */
@media screen and (max-width: 768px) {
  .cert img {
    height: 180px;
  }
}


/* Optional: Limit the entire cert card */
.cert {
  max-width: 240px;
  text-align: center;
  margin: 0 auto;
}





.cert h3 {
  margin-top: 0.75rem;
  color: var(--accent-color);
  font-size: 1rem;
}

/* ========== RESPONSIVE STYLES ========== */
@media screen and (min-width: 769px) {
  .homepage {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }

  .container1 {
    position: fixed;
    width: 42%;
    height: 100vh;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 10;
  }

  .container2 {
    margin-left: 42%;
    width: 58%;
    height: 100vh;
    overflow-y: auto;
  }
}

@media screen and (max-width: 768px) {
  .homepage {
    flex-direction: column;
  }

  .container1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0.1rem 1.5rem;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .container1 h1 {
    font-size: 1rem;
  }

  .typewriter {
    display: none;
  }

  .navigation {
    display: flex;
    justify-content: space-around;
    margin-top: 0.5rem;
  }

  .navigation a {
    font-size: 0.9rem;
    padding: 0;
  }

  .navigation a::before {
    display: none;
  }

  .container2 {
    margin-left: 0;
    padding: 2rem 1.5rem 2rem;
    width: 100%;
  }

  .about span {
    display: inline-block;
  }



  .skills-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .skill-card {
    padding: 0.8rem;
    min-height: auto;
  }

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

  .skill-item img {
    width: 36px;
    height: 36px;
  }

  .skill-item p {
    font-size: 0.7rem;
    margin-top: 0.3rem;
  }

  .skill-card h2 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }


  #projects {
    grid-template-columns: 1fr;
  }

  .cert-section.active {
    flex-direction: column;
    align-items: center;
  }
  .cert-section.active {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}




}

/* Offset scroll position slightly below sticky nav */
#about,
#skills,
#projects,
#timeline,
#certifications,
#servicenow,
#data {
  scroll-margin-top: 100px;
}

p {
  text-align: justify;
}

.navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hamburger {
  font-size: 1.6rem;
  color: var(--accent-color);
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: none;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
}

.nav-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1rem;
}

.nav-links.active {
  display: flex;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .navigation {
    align-items: stretch;
  }

  .nav-links a {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
  }

  .buttonpop {
    margin-top: 0.5rem;
  }
}

@media screen and (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
  }
}



.cert img,
.achievement-wrapper,
.achievement-wrapper * {
  pointer-events: none;
  cursor: default;
}

/* Existing desktop style */






.project-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 4px; /* tighter spacing above and below buttons */
  flex-wrap: wrap;
}

.project-btn {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}
.project-btn.active {
  background-color: var(--accent-color);
  color: var(--background-color);
}

#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.carousel-container-project {
  position: relative;
  width: 106%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
}


.carousel-slide .cert {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center;
}




.carousel-dots {
  text-align: center;
  margin-top: 10px;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #888;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: var(--accent-color);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  
}


/* ===== PROJECT CAROUSEL LAYOUT ===== */
.project-carousel-section {
  display: none;
}

.project-carousel-section.active {
  display: block;
}




.carousel-slide::-webkit-scrollbar {
  display: none; /* Chrome */
}



.project-card h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  
}

.project-card h4{
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  text-align: left;
}
.project-card p {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.project-card .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0rem;
  
  margin-top: 0.5rem;
  
}

.project-card .skills span {
  background-color: var(--accent-color);
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  border : 1px solid blue
}

.project-card .socials {
  margin-top: 0.7rem;
}

.project-card .socials img {
  width: 24px;
  height: 24px;
}



/* Arrows */
.carousel-arrow {
  
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent-color);
  border: none;
  font-size: 1.5rem;
  padding: 0.4rem;
  cursor: pointer;
  z-index: 1;
}
.carousel-arrow.left {
  left: 0;
}
.carousel-arrow.right {
  right: 0;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 0.5rem;
}
.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: gray;
  transition: background-color 0.3s ease;
}
.carousel-dots .dot.active {
  background-color: var(--accent-color);
}
.carousel-slide {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: transform 0.9s ease;
}

.project-card {
  min-height: 200px;
  
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0 2rem;
  background: #1e293b;
  border-radius: 10px;
  border: 2px solid var(--accent-color);
  margin: 0 auto;
  
}

/* ========== ACHIEVEMENTS SECTION ========== */

.achievement-list {
  list-style: disc;
  margin-left: 0;          /* removes default left margin */
  padding-left: 0.5rem;    /* tighter spacing from edge */
  max-width: 800px;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}



.achievement-list li::marker {
  color: var(--accent-color); /* Green accent bullet */
}

/* ========== LINK STYLING ========== */
a {
  color: var(--accent-color);       /* Matches your green accent */
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #00ffcc;                   /* Subtle hover color change */
  text-decoration: none;
}

#achievements .achievement-list {
  margin-top: 0.2rem;  /* Reduce gap between <h1> and first <li> */
}

.socials img[alt="YouTube"] {
  width: 24px;
  height: 24px;
  filter: invert(17%) sepia(100%) saturate(7486%) hue-rotate(358deg) brightness(97%) contrast(110%);
  transition: transform 0.2s;
}

.socials img[alt="YouTube"]:hover {
  transform: scale(1.1);
}
