:root {
  --primary-color: #00F050;
  --secondary-color: #DEDEDE;
  --bg-color: #212121;
  --section-padding: clamp(2rem, 5vw, 5rem);
  --font-size-lg: clamp(2rem, 5vw, 3.5rem);
  --font-size-md: clamp(1.2rem, 3vw, 1.5rem);
  --font-size-sm: clamp(1rem, 2vw, 1.2rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("icons8-select-cursor-24.png"), auto;
}

a{
  text-decoration: none;
  color: #DEDEDE;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body, html {
  height: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
  padding: 0 var(--section-padding);
}



/* Dot animation */
.dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
  animation: fall linear infinite;
  top: -10px;
  z-index: 0;
  pointer-events: none;
}

@keyframes fall {
  0% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Navigation */
.navBar {
  background-color: #212121;
  height: 100px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--section-padding);
}

.navBar button {
  background-color: #212121;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  outline: none;
  border: none;
  width: 60px;
  height: 40px;
  margin: 1rem 0;
}

.navBar button .oneLine,
.navBar button .twoLine {
  height: 5px;
  width: 40px;
  background-color: whitesmoke;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.navBar button.active .oneLine {
  transform: rotate(45deg) translate(5px, 5px);
}

.navBar button.active .twoLine {
  transform: rotate(-45deg) translate(5px, -5px);
}

.navBar button:hover .oneLine {
  transform: rotate(15deg);
}

.navBar button:hover .twoLine {
  transform: rotate(-15deg);
}

/* Sidebar */
/* Fixed Sidebar Styles */
.sideBar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: rotate(-90deg) translateY(-50%) translateX(-100%);
  transform-origin: left top;
  z-index: 1;
  height: fit-content;
  width: fit-content;
  background-color: transparent;
  display: none;
  padding-left: 10px; /* Add small padding to prevent text touching edge */
}

@media (min-width: 768px) {
  .sideBar {
    display: block;
    left: 20px;
    transform: rotate(-90deg) translateY(-50%) translateX(-100%);
  }
}

.sideBar button {
  color: white;
  background-color: transparent;
  border: none;
  font-size: 1.2rem;
  padding: 10px 20px;
  font-family: cursive;
  white-space: nowrap;
  margin: 0;
  transform: none; /* Remove any transform on the button */
}

.sideBar button:hover {
  opacity: 0.8;
}

/* Titles */
.titles {
  padding: 100px 0 0 0;
}

.titles .title1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  color: #00F050;
}

.titles .title1 span {
  padding-left: 0;
  margin-top: 0.5rem;
  color: #DEDEDE;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
}

.hero .part1 {
  width: 100%;
  margin: 0;
  padding: 1rem 0;
}

.hero .part1 p {
  font-size: var(--font-size-md);
  width: 100%;
  margin: 1.5rem 0;
  color: rgb(238, 234, 234);
}

.hero .part1 p span {
  color: #00F050;
  font-family: cursive;
}

.hero .part1 button {
  padding: 0.8rem 1.5rem;
  background-color: #00F050;
  font-size: var(--font-size-sm);
  font-weight: bold;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  border: none;
  color: black;
  z-index: 1;
  --posX: 0;
  --posY: 0;
  box-shadow: 0 8px 8px rgba(236, 231, 231, 0.7);
  border-radius: 10px;
}

.hero .part1 button span {
  position: relative;
  z-index: 2;
}
.hero .part1 button span a{
  color: #212121;
}
.hero .part1 button::before {
  content: "";
  position: absolute;
  top: var(--posY);
  left: var(--posX);
  background-color: white;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 1;
}

.hero .part1 button:hover::before {
  width: 400px;
  height: 400px;
}

.hero .part2 {
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
}

.hero .part2 h1 {
  color: #00F050;
  font-family: cursive;
}

.hero .part2 p {
  color: white;
  font-size: 1rem;
}

@media (min-width: 992px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .hero .part1 {
    width: 60%;
  }
  
  .hero .part2 {
    width: 30%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
  }
}

/* Info Section */
.info {
  color: #DEDEDE;
  margin: var(--section-padding) 0;
  font-family: monospace;
}

.info h1 {
  font-size: var(--font-size-lg);
}

/* Horizontal Rule */
hr {
  margin: 80px 0 0 0;
}

/* Personal Section */
.personal {
  display: flex;
  flex-direction: column;
  margin: var(--section-padding) 0;
}

.personal .left,
.personal .right p {
  width: 100%;
  margin: 1rem 0;
}

.personal .left {
  color: white;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.personal .right p {
  font-size: var(--font-size-sm);
  color: #DEDEDE;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.personal .right .one {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .personal {
    flex-direction: row;
  }
  
  .personal .left {
    width: 40%;
  }
  
  .personal .right {
    width: 55%;
  }
}

/* Stack Section */
.stack {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 20px 0 10px 0;
  color: #DEDEDE;
}

.stack img {
  height: 30px;
  width: 30px;
  margin-right: 15px;
  transform-origin: center center;
  animation: rotate 7s infinite linear;
  will-change: transform;
}

.stack img:hover {
  animation-play-state: paused;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Tech Stack Section */
.qualities {
  margin: var(--section-padding) 0;
  width: 100%;
}

.qualities .all {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.qualities .style {
  font-size: var(--font-size-lg);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: bolder;
  color: #DEDEDE;
  width: 100%;
  margin-top: 10px;
}

.nameIcon {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  width: 80%; /* Ensure it takes full width */
  margin-top: 20px; /* Add space below the section title */
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  margin-bottom: 20px; /* Space between rows */
}

.tech-item img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.techNames {
  font-size: 1rem;
  color: #DEDEDE;
  text-align: center;
  word-break: break-word;
  width: 100%;
  line-height: 1.4; /* Better text spacing */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tech-item {
    width: 80px; /* Smaller items on mobile */
  }
  
  .tech-item img {
    height: 50px;
    width: 50px;
  }
  
  .techNames {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .qualities .all {
    flex-direction: row;
  }
  
  .qualities .style {
    width: 30%;
  }
}

/* Experience Section */
.experiences {
  margin: var(--section-padding) 0;
}

.experiences .ex {
  margin: 50px 0 80px 0;
  color: #DEDEDE;
}

.experiences .ex h1 {
  font-size: var(--font-size-lg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.experiences .ex p {
  font-size: var(--font-size-sm);
  font-family: sans-serif;
}

/* Projects Section */
.projects {
  margin: var(--section-padding) 0;
  color: #DEDEDE;
}

.projects .project {
  padding: 20px 0;
  border-bottom: 2px solid #DEDEDE;
}

.projects .project .proName {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.projects .project .project-image {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 1rem;
  opacity: 1;
  transform: none;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 240, 80, 0.2);
  transition: all 0.5s ease;
  right: 0;
}

.projects .project:hover .proName img {
  border: 2px solid #00F050;
}

.projects .project .proName h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--font-size-lg);
  color: #DEDEDE;
  background: linear-gradient(to right, #00F050 50%, #DEDEDE 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}

.projects .project:hover .proName h1 {
  background-position: left bottom;
}

.projects .project span {
  display: inline-block;
  margin-right: 10px;
}

.projects .project .circle {
  height: 8px;
  width: 8px;
  border: 1px solid white;
  border-radius: 50%;
}

@media (min-width: 992px) {
  .projects .project .proName {
    flex-direction: row;
    padding-right: 220px;
  }
  
  .projects .project .project-image {
    position: absolute;
    width: 400px;
    height: 300px;
    opacity: 0;
    transform: translateX(20px);
  }
  
  .projects .project:hover .project-image {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer */
footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: #DEDEDE;
  font-family: sans-serif;
  margin-top: var(--section-padding);
  padding: var(--section-padding) 0;
}

footer h1 a {
  color: white;
  text-decoration: none;
}

footer h1 a:hover {
  opacity: 0.8;
}

footer .build {
  margin-top: 50px;
  margin-bottom: 10px;
}

/* Side Menu */
.container2 {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #212121;
  border-left: 1px solid #00F050;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  padding: 2rem;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  overflow-y: auto;
}

.container2.active {
  transform: translateX(-100%);
}

.container2 .first {
  width: 100%;
  flex-direction: column;
}
.container2 .first button{
    padding: 10px 12px;
    background-color: white;
    color: black;
    border: none;
    outline: none;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px;
    top: 20px;
    border-radius: 10px;
}
.container2 .first button:hover {
    background-color: #00F050;
    color: black;
}
.container2 ul {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  list-style: none;
  font-size: 1.8rem;
}

.container2 ul .header {
  margin-bottom: 20px;
}

.container2 ul li a {
  color: #DEDEDE;
  text-decoration: none;
  font-size: 1.3rem;
}

.container2 ul li a:hover {
  color: #00F050;
}

.container2 .last {
  color: #DEDEDE;
}

.container2 .last h2 {
  margin-bottom: 10px;
}

.container2 .last a {
  color: white;
  text-decoration: none;
}

.container2 .last a:hover {
  opacity: 0.8;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (min-width: 768px) {
  .container2 {
    width: 40%;
    right: -40%;
    padding-left: var(--section-padding);
  }
  
  .container2 .first {
    flex-direction: row;
    width: 70%;
  }
  .container2 .first button {
        transform: none;
        right: 10px;
        top: 10px;
    }
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
}

p {
  line-height: 1.6;
  font-size: var(--font-size-sm);
}

/* Scrollbar */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #212121;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #00F050;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* container3 */

/* Container3 - Loader Styles */
.container3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.container3.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(0, 240, 80, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1.2s linear infinite;
}

.loader-text {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  animation: fadeIn 1.5s ease-in-out;
}

.loader-subtext {
  font-size: 1.2rem;
  color: var(--secondary-color);
  font-family: monospace;
  animation: fadeIn 2s ease-in-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}