/* Basic reset and body styling #53bdff */ 
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
  position: relative;
  background-color: var(--bg-color);
  color: var(--text-color);
}

:root {
  --bg-color: #080000;
  --second-bg-color: #242323;
  --text-color: white;
  --main-color: #53bdff;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(0, 0, 0,0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}



.intro-section {
      background-color: #0a2a43;
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 2rem;
      padding: 3rem 1rem;
    }
    .intro-text {
      flex: 1 1 60%;
      text-align: left;
    }
    .intro-text h1 {
      margin: 0;
      font-size: 2.5rem;
    }
    .intro-text p {
      font-size: 1.2rem;
      color: #a8d6f5;
    }
    .intro-text button {
      margin-top: 1rem;
      padding: 0.5rem 1rem;
      background-color: #4fc3f7;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
      cursor: pointer;
    }
    .intro-image {
      flex: 1 1 35%;
      text-align: center;
    }
    .intro-image img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
    }
    .about-section img {
      float: left;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      margin-right: 1rem;
    }
    .about-section ul {
      list-style: none;
      padding-left: 0;
    }
    .about-section li {
      margin: 0.3rem 0;
    }

/* Fullscreen video background */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Overlay to darken video for better text visibility */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Stylish line */
.line {
  border-top: 2px solid #ffffff;
  width: 60%;
  margin: 1rem auto;
}

/* DaisyUI Menu Customization */
.menu a {
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.menu a:hover {
  border-bottom: 2px solid gray;
}

.logo{
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
} 

.logo:hover{
    transform: scale(1.1);
}

.logo span{
    text-shadow: 0 0 25px var(--main-color);
}

navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

/* Projects Page Specific */
.bg-projects {
  background-color: #f8f9fa;
}

.project-item img {
  object-fit: cover;
  height: 200px;
  width: 100%;
  border-radius: 0.375rem;
  border: 2px solid #333333;
}

.project-title {
  font-size: 1.125rem;
  color: #333333;
}

.gallery-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.gallery-grid {
  width: 100%;
  max-width: 1200px;
}

/* About Page Specific */
.bg-about {
  background-color: #f8f9fa;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  color: #fff;
  margin: 0.5rem;
  transition: background-color 0.3s ease;
  font-size: 18px;
}

.social-btn:hover {
  background-color: #555;
}

.line2 {
  border-top: 2px solid #333333;
  width: 80%;
  margin: 2rem auto;
}

.table-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.table {
  width: 100%;
  max-width: 500px;
}

.table th,
.table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  background-color: #f4f4f4;
}

.text-justify {
  text-align: justify;
}

.text-right {
  text-align: justify;
  margin-right: 80px;
}

.profile-img {
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  object-position: center top;
}

.cv-button {
  background-color: #4a90e2;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.cv-button:hover {
  background-color: #357abd;
}

/* Contact Page Specific */
.bg-contact {
  background-color: #f8f9fa;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
}

.form-group textarea {
  resize: vertical;
}

.btn-primary {
  background-color: #333;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #555;
}

/* Popup Styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.popup-content.success {
  border: 2px solid green;
}

.popup-content.error {
  border: 2px solid red;
}

.popup-button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-button:hover {
  background-color: #0056b3;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* CV Page Specific */
.pdf-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 1150px;
  border: 2px solid #333333;
  border-radius: 0.375rem;
  display: block;
}

.download-btn {
  margin-top: 20px;
  text-align: center;
}

.download-btn button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* SCC Page Specific */
.scroll-arrow {
  cursor: pointer;
  z-index: 10;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow img {
  width: 50px;
}

.gallery-grid1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item1 {
  position: relative;
  overflow: hidden;
}

.gallery-item1 img {
  transition: transform 0.3s ease-in-out;
}

.gallery-item1:hover img {
  transform: scale(1.1);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #4b5563;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

.right::after {
  left: -16px;
}

.content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feedback-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.feedback-card {
  flex: 0 0 100%;
}

/* About */
section {
  min-height: 100vh;
  padding: 10rem 12% 10rem;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top: 3rem;
}

span {
  color: var(--main-color);
}

.logo span {
  color: var(--main-color);
}

.home-content h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.home-content h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-img {
  border-radius: 50%;
}

.home-img img {
  position: relative;
  top: 3rem;
  width: 35vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}

.home-content p {
  font-size: 1rem;
  font-weight: 500;
  max-width: 1000px;
  line-height: 1.8;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}

.social-links a:hover {
  background-color: var(--main-color);
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  border: 2px solid transparent;
  color: black;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  letter-spacing: 0.1rem;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
  background: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
  background: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}

.text-animation {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "Game Developer";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words {
  0%, 20%{
        content: "Game Developer";
    }
    21%, 40%{
        content: "XR Game Developer";
    }
    41%, 60%{
        content: "Web Developer";
    }61%, 80%{
        content: "App Developer";
    } 81%, 100%{
        content: "Constant Learner";
    }
}

@keyframes typing {
  10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% {
    width: 0;
  }
  5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% {
    width: calc(100% + 8px);
  }
}

/* Education */
.heading {
  color: white;
  font-size: 4rem;
  text-align: center;
  margin: 5rem 0;
}

.education {
  padding: 10px 15px;
  background: var(--second-bg-color);
}

.education h2 {
  margin-bottom: 5rem;
}

.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--main-color);
  left: calc(50% - 1px);
}

.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
  text-align: left;
}



.timeline-dot {
  height: 21px;
  width: 21px;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  position: absolute;
  left: calc(50% - 8px);
  border-radius: 50%;
  top: 10px;
}

.timeline-data {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 15px;
  background: rgba(0, 0, 0, 0.6);   /* semi-transparent black */
  padding: 0.5rem 1rem;             /* vertical/horizontal padding */
  border-radius: 1rem;    
}

.timeline-content {
  background-color: var(--bg-color);
  border: 3px solid var(--main-color);
  padding: 30px 50px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
  font-size: 20px;
  color: white;
  margin: 0 0 10px;
  font-weight: 500;
}

.timeline-content p {
  color: white;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}

.timeline-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border-radius: 50%;
    color: white;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}

.social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}

.social a {
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}

.social a:hover {
  background-color: var(--main-color);
  color: black;
  transform: scale(1.3) translateY(-10px);
  box-shadow: 0 0 25px var(--main-color);
}

.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0;

}

.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}

.footer ui li{
   display: inline-block;
   padding: 0 15px;
}

.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}
/* Responsive Design */


@media (max-width: 1024px) {
  .home {
    flex-direction: column;
    gap: 5rem;
    text-align: center;
  }

  .home-content {
    align-items: center;
    text-align: center;
  }

  .home-content h1 {
    font-size: 3rem;
  }

  .home-content h3 {
    font-size: 1rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  .home-img img {
    width: 60vw;
  }

  .text-right {
    margin-right: 10px;
  }

  iframe {
    height: 500px;
  }

  .download-btn button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .timeline::after {
    left: 31px;
  }

  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  .left::after,
  .right::after {
    left: 15px;
  }

  .right {
    left: 0%;
  }
  
  .btn {

  padding: 1rem 1rem;
  font-size: 1rem;
  font-weight: 400;
}
}

@media (max-width: 480px) {
  .home-content h1 {
    font-size: 2rem;
  }

  .home-content h3 {
    font-size: 1rem;
  }

  .home-content p {
    font-size: 0.9rem;
  }

  .home-img img {
    width: 70vw;
  }

  iframe {
    height: 300px;
  }

  .download-btn button {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .timeline-item:nth-child(odd) {
  padding-right: 0px;
  text-align: center;
}

.timeline-item:nth-child(even) {
  padding-left: 0px;
  text-align: center;
}

.timeline-dot {
  display: none;
}



.timeline-content {
  border: 2px solid var(--main-color);
  padding: 15px 25px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
}



.timeline-content h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 500;
}

.timeline-content p {
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}
}