html {
  scroll-behavior: smooth;
  background: url('kulli.jpeg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 100vw;
  overflow: hidden;
  margin: 0 auto;

}

body::-webkit-scrollbar {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: rgba(20, 20, 20, 0.7);
  /* Adjust opacity as needed */

  font-family: 'Space Mono', monospace;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header Styling */
header {
  width: 100%;
  /* Full width of the page */
  background-color: #1a1a2e;
  /* Header background color */
  position: fixed;
  /* Fixed positioning to stay at the top */
  top: 0;
  /* Stick to the top */
  left: 0;
  /* Align to the left */
  z-index: 1000;
  /* Ensure it's above other content */
}

/* Header Container */
.header-container {
  display: flex;
  /* Use flexbox for layout */
  justify-content: space-between;
  /* Space between left and right sections */
  align-items: center;
  /* Center items vertically */
  padding: 15px;
  /* Add some padding */
  max-width: 1200px;
  /* Optional: Set a max width */
  margin: 0 auto;
  /* Center the container itself */
}

/* Header Left Section */
.header-left {
  display: flex;
  /* Use flexbox for navigation and title */
  align-items: center;
  /* Center items vertically */
}

/* Header Title */
.header-left h1 {
  font-size: 0.9em;
  /* Default font size for larger screens */
  color: #d2cfdf;
  /* Title color */
  margin: 0;
  /* Remove margin */
}

/* Navigation Links */
nav {
  display: flex;
  /* Flex layout for navigation links */
  gap: 15px;
  /* Space between links */
  margin-left: 20px;
  /* Space between title and nav */
  font-size: 0.8em;
}

nav a {
  color: #d2cfdf;
  /* Link color */
  text-decoration: none;
  /* No underline */
  font-size: 1em;
  /* Default font size for larger screens */
  transition: color 0.3s;
  /* Smooth color transition */
}

nav a:hover {
  color: #b19cd9;
  /* Change color on hover */
}

/* Header Right Section */
.header-right {
  display: flex;
  /* Use flexbox for social icons */
  align-items: center;
  /* Center items vertically */
  gap: 10px;
  /* Space between icons */
}

.header-right a {
  color: #d2cfdf;
  /* Color for icons */
  font-size: 1em;
  /* Default icon size */
}

/* Responsive Header for Small Screens */
@media (max-width: 800px) {
  .header-left nav {
    display: none;
    /* Hide navigation links on small screens */
  }

  .header-right {
    margin-top: 10px;
    /* Add margin to social icons */
  }
}

/* Responsive Header for Medium Screens */
@media (min-width: 801px) and (max-width: 1100px) {
  .header-left h1 {
    font-size: 1.2em;
    /* Slightly larger font size for medium screens */
  }

  nav a {
    font-size: 0.9em;
    /* Slightly larger font size for links */
  }

  .header-right a {
    font-size: 0.9em;
    /* Slightly larger icon size */
  }
}


/* Responsive Header for Large Screens */
@media (min-width: 1800px) {
  .header-left h1 {
    font-size: 1.5em;
    /* Larger font size for large screens */
  }

  nav a {
    font-size: 1em;
    /* Default size for links */
  }

  .header-right a {
    font-size: 1em;
    /* Default icon size */
  }
}



/* Intro Section */
.intro {
  background: rgba(20, 20, 20, 0.5);
  display: flex;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Centers content vertically */
  text-align: center;
  padding: 80px 20px;
}

/* Apply 80vh on mobile screens */
@media (max-width: 768px) {
  .intro {
    height: 90vh;
  }
}

.highlight {
  color: #b19cd9;
  /* Aqua highlight color */
}


.description {
  max-width: 600px;
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.email-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  color: #b19cd9;
  background-color: transparent;
  border: 1px solid #b19cd9;
  border-radius: 5px;
  font-size: 1.1em;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.email-button:hover {
  background-color: #b29cd9;
  color: #1a1a3a;
}

h1 {
  font-size: 3em;
}

p {
  font-size: 1.2em;
}

/* Star background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  /* Adjust opacity for desired darkness */
  z-index: -1;
}

.typewriter-container {
  display: inline-block;
  /* Ensures it only takes up as much space as the text */
  /* Prevents line breaks */
}

.typewriter {
  font-size: 2.5em !important;
  /* Adjust as desired */
  font-family: 'Doto', sans-serif;
  /* Custom font */
  font-weight: 700;
  /* Adjust if you want a heavier or lighter look */
  color: #b19cd9;
  /* Optional: customize the color */
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgba(255, 255, 255, 0.75);
  animation: typing 3s steps(30, end), blink-caret 0.5s step-end infinite;
}

/* Keyframes for typewriter effect */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}


/* Twinkling animation */
@keyframes star-twinkle {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.5;
  }
}




#about {
  /* Match this to the intro section */

  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centers content vertically */
  align-items: center;
  /* Centers content horizontally */
  padding: 50px 20px;
  /* Add padding to avoid touching the edges */
  text-align: center;
  background: rgba(20, 20, 20, 0.5);
  margin: 0 auto;
}

#about h2 {
  font-size: 2em !important;
  color: #d2cfdf;
  margin-bottom: 20px;
}

.about-container {
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 30px;
  /* Space between image and text */
  max-width: 55vw;
  margin: 0 auto;
  text-align: right;
}

.about-image img {
  width: 300px;
  /* Adjust size as needed */
  border-radius: 5%;
  /* Make it circular */
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  /* Allows skills to wrap onto new rows */

  /* Adds spacing between items horizontally and vertically */
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.skills-list li {
  display: flex;
  align-items: left;
  padding-left: 25px;
  width: calc(50% - 20px);
  /* Ensures two items per row with space */
  margin-bottom: 10px;
  color: #d2cfdf;
  font-size: 1em;
  position: relative;
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1em;
  height: 1em;
  background-image: url('arrow.svg');
  /* Replace with the path to your icon */
  background-size: contain;
  background-repeat: no-repeat;
}

.about-text {
  max-width: 25vw;
  text-align: justify;
  color: #e0e0e0;
}

.about-text p {
  margin: 15px 0;
}

/* About Section Adjustments for Mobile - Full-width Text */
@media (max-width: 1100px) {
  #about {
    /* Full section height */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about-container {
    width: 80vw;
    /* Use the full width of the section */
    max-width: 100%;
    /* Override any max-width constraints */
    padding: 0;
    /* Remove padding for full-width coverage */
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    display: none;
    /* Hide the image on mobile */
  }

  .about-text {
    width: 100%;
    /* Full width for the text */
    max-width: 100%;
    /* Override any max-width constraints */
    font-size: 0.7em;
    /* Adjust font size as needed */
    padding: 10px;
    /* Optional padding */
    text-align: justify;
    /* Justify text for full coverage */
  }
}




/* Responsive Adjustments for About Section when Window Width is 1100px */
@media (max-width: 1100px) {


  .description {
    max-width: 600px;
    font-size: 0.9em;
    color: #e0e0e0;
    margin-bottom: 20px;
  }

  .typewriter {
    font-size: 1.5em;
  }

}


.intro-text {
  font-weight: bold;
  font-size: 1.5em;
  color: #e0e0e0;
  max-width: 80vh;
  /* Center alignment with limited width */
  text-align: center;
}

/* Responsive Adjustments for Intro Text */
@media (max-width: 1100px) {
  .intro-text {
    max-width: 80vh;
    /* Increase to 90% on smaller screens */
    font-size: 1em;
    /* Slightly smaller font size */
    padding: 10px;
    /* Optional: Add padding for spacing */
  }
}

.typewriter {
  font-size: 1.2em;
  display: block;
  color: #d2cfdf;
}

/* Responsive Adjustments for Typewriter Effect */
@media (max-width: 800px) {
  .typewriter {
    font-size: 2em !important;
    /* Smaller font size on smaller screens */
    margin-bottom: 15px;
    /* Reduce bottom margin */
  }
}


.cat-astronaut {
  width: 300px;
  /* Default size for larger screens */
  margin-top: 20px;
  animation: float 4s ease-in-out infinite;
}

/* Responsive Adjustments for Cat Astronaut */
@media (max-width: 900px) {
  .cat-astronaut {
    width: 200px;
    /* Set a smaller width for mobile devices */
    /* Optionally adjust the margin if needed */
    margin-top: 10px;
    /* Reduce margin on smaller screens */
  }
}




/* Work Experience Styling */
#work-experience {
  background: rgba(20, 20, 20, 0.5);
  padding: 80px 20px;
  color: #d2cfdf;
  text-align: left;
}

.job-location {
  color: #b19cd9 !important;
  display: inline-block !important;

  /* Ensure it stays inline */

}


#work-experience h2 {

  font-size: 2em;
  color: #d2cfdf;
  text-align: center;
  /* Original light blue color for the title */
  margin-bottom: 40px;

}

.work-container {
  display: flex;
  max-width: 70vh;
  margin: 0 auto;
  align-items: flex-start;
}

/* Sidebar Company List */
.company-list {
  width: 25%;
  display: flex;
  flex-direction: column;
  padding-right: 20px;
  border-right: 2px solid #1f2a44;

}

.company-button {
  background: none;
  border: none;
  font-size: 1em;
  padding: 10px 10px;
  color: #d2cfdf;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s, border-right 0.3s;
  border-right: 4px solid transparent;
}

.company-button:hover,
.company-button.active {
  color: #b19cd9;
  border-right: 4px solid #b19cd9;
}

button {
  font-family: 'Space Mono', monospace;

}

/* Job Details */
.job-details {
  width: 75%;
  padding-left: 20px;
}

.job-info {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  margin-bottom: 30px;
}

.job-info.active {
  display: block;
}

.job-info h3 {
  font-size: 1.5em;
  color: #d2cfdf;
}

.job-info span {
  font-size: 1em;
  color: #a0a8c1;
  display: block;
  margin-bottom: 10px;
}

/* Custom Bullet Points */
.job-info ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.job-info li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #d2cfdf;
  font-size: 1em;
}

.job-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1em;
  /* Adjust size */
  height: 1em;
  background-image: url('arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Hover effect for the line on right side only */
.company-button:hover::after,
.company-button.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .work-container {
    flex-direction: column;
  }

  .company-list {
    width: 100%;
    border-right: none;
    padding-right: 0;
    text-align: center;
  }

  .job-details {
    width: 100%;
    padding-left: 0;
  }
}
















/* Education Section */
#education {
  padding: 60px 20px;
  text-align: center;
  color: #e0e0e0;
  background: rgba(20, 20, 20, 0.5);
}

#education h2 {
  font-size: 2em;
  color: #e0ddf9;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.2s;
}

/* Container to hold entries */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;

}

/* Individual Education Entry */
.education-entry {
  background-color: #1a1a2e;
  border-radius: 8px;
  padding: 20px;
  max-width: 600px;
  width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.education-entry h3 {
  font-size: 1.em;
  color: #b19cd9;
  margin-bottom: 10px;
}

.education-entry .institution {
  display: block;
  color: #e0e0e0;
  margin: 5px 0;
}

.education-entry .date {
  font-size: 0.8em;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.education-entry p {
  font-size: 0.9em;
  line-height: 1.4;
  color: #e0e0e0;
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Staggered Animation Delay for Each Entry */
.education-entry:nth-child(1) {
  animation-delay: 0.3s;
}

.education-entry:nth-child(2) {
  animation-delay: 0.5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #education h2 {
    font-size: 2em;
  }

  .education-entry {
    max-width: 90%;
  }
}

/* Portfolio Section */
#portfolio {
  text-align: center;
  padding: 40px 40px;
  color: #e0e0e0;
  background: rgba(20, 20, 20, 0.5);
  margin: 0 auto;
}

/* Portfolio Heading */
#portfolio h2 {
  font-size: 2em;
  color: #d2cfdf;
  margin-bottom: 20px;
}

/* Featured Projects Gallery */
.featured-gallery {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  height: 500px;
  margin: 0 auto 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.featured-item {
  position: relative;
  min-width: 100%;
  text-align: center;
  background-color: #1a1a2e;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  /* Make each item match the gallery's height */
}

.featured-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Semi-transparent overlay */
  z-index: 1;
  /* Position it above the image but below the text */
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
  /* Image below overlay */
}

.gallery-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  /* Center the element */
  padding: 10px;
  color: #e0e0e0;
  text-align: center;
  z-index: 2;
  /* Ensure text is above the image */
  border-radius: 5px;
}

.gallery-info h3 {
  font-size: 1.5em;
  color: #d2cfdf;
  margin: 0 0 5px 0;
}

.gallery-info p {
  font-size: 0.9em;
  color: #d2cfdf;
  margin: 0;
}

.gallery-info span {
  font-size: 0.8em;
  color: #d2cfdf;
}

/* Gallery Navigation Controls */
.gallery-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #fff;
  font-size: 1.5em;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s;
}

.gallery-control.left {
  left: 10px;
}

.gallery-control.right {
  right: 10px;
}

.gallery-control:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Text-Only Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background-color: #1a1a2e;
  border-radius: 8px;
  padding: 15px;
  text-align: left;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.project-icons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.project-icons i {
  font-size: 1.2em;
  color: #b19cd9;
}

.project-card h4 {
  font-size: 1.2em;
  color: #d2cfdf;
  margin-bottom: 5px;
}

.project-card p {
  font-size: 0.9em;
  color: #e0e0e0;
  margin-bottom: 5px;
}

.project-card span {
  font-size: 0.8em;
  color: #e0e0e0;
}

/* Responsive Portfolio Section for Small Screens */
@media (max-width: 768px) {
  .featured-gallery {
    display: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    width: 90%;
    margin: 0 auto;
  }
}


footer {
  background-color: #1a1a2e;
  color: #d2cfdf;
  text-align: center;
  padding: 50px;
  font-size: 0.6em;
  bottom: 0;
  width: 100%;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  /* Optional shadow for depth */
}

.github-link {
  margin-top: 10px;
  font-size: 1.5em;
  color: #b19cd9;
  /* Same color as other links */
  display: flex;
  justify-content: center;
}

.github-link a {
  color: inherit;
  transition: transform 0.3s;
}

.github-link a:hover {
  transform: scale(1.2);
  color: #ffffff;
  /* Change color on hover if desired */
}