/* Base Styles */
:root {
  --primary-color: #64ffda;
  --secondary-color: #8892b0;
  --background-dark: #0a192f;
  --text-light: #ccd6f6;
  --text-gray: #8892b0;
  --card-bg: #112240;
  --nav-bg: rgba(10, 25, 47, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-dark); /* Dark background for the loader */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Loader Styles */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: not-allowed;
  scale: 0.7;
}

/* From Uiverse.io by mobinkakei */ 
.loader {
  --path: #64ffda;
  --dot: #5628ee;
  --duration: 3s;
  width: 44px;
  height: 44px;
  position: relative;
}

.loader:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  display: block;
  background: var(--text-light);
  top: 37px;
  left: 19px;
  transform: translate(-18px, -18px);
  animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

.loader svg {
  display: block;
  width: 100%;
  height: 100%;
}

.loader svg rect,
.loader svg polygon,
.loader svg circle {
  fill: none;
  stroke: var(--path);
  stroke-width: 10px;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.loader svg polygon {
  stroke-dasharray: 145 76 145 76;
  stroke-dashoffset: 0;
  animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

.loader svg rect {
  stroke-dasharray: 192 64 192 64;
  stroke-dashoffset: 0;
  animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader svg circle {
  stroke-dasharray: 150 50 150 50;
  stroke-dashoffset: 75;
  animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

.loader.triangle {
  width: 48px;
}

.loader.triangle:before {
  left: 21px;
  transform: translate(-10px, -18px);
  animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

@keyframes pathTriangle {
  33% {
    stroke-dashoffset: 74;
  }

  66% {
    stroke-dashoffset: 147;
  }

  100% {
    stroke-dashoffset: 221;
  }
}

@keyframes dotTriangle {
  33% {
    transform: translate(0, 0);
  }

  66% {
    transform: translate(10px, -18px);
  }

  100% {
    transform: translate(-10px, -18px);
  }
}

@keyframes pathRect {
  25% {
    stroke-dashoffset: 64;
  }

  50% {
    stroke-dashoffset: 128;
  }

  75% {
    stroke-dashoffset: 192;
  }

  100% {
    stroke-dashoffset: 256;
  }
}

@keyframes dotRect {
  25% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(18px, -18px);
  }

  75% {
    transform: translate(0, -36px);
  }

  100% {
    transform: translate(-18px, -18px);
  }
}

@keyframes pathCircle {
  25% {
    stroke-dashoffset: 125;
  }

  50% {
    stroke-dashoffset: 175;
  }

  75% {
    stroke-dashoffset: 225;
  }

  100% {
    stroke-dashoffset: 275;
  }
}

.loader {
  display: inline-block;
  margin: 0 16px;
}



body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.my-profile img{
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #333;
  margin: 0;
}

/* Sections */
section {
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1, h2 {
  margin-bottom: 2rem;
  font-weight: bold;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--text-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
}

/* Home Section */
#home {
  text-align: center;
}

.typing-text {
  font-size: 1.8rem;
  margin: 1.5rem 0;
  color: var(--secondary-color);
}

.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* About Section */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.7rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  padding: 0 2rem;
}

.skill-card {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px -15px var(--primary-color);
}

.skill-card i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  color: var(--text-light);
  font-size: 1.3rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  width: 100%;
  padding: 0 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px -15px var(--primary-color);
}

.project-image {
  height: 300px;
  width: 600px;
  background-color: #1d4080;
}

.i-1{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 530px;
}
.i-2{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 530px;
}
.i-3{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 530px;
}
.i-4{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 530px;
}
.i-5{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 530px;
}
.i-6{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 530px;
}

.project-card h3 {
  padding: 1.5rem 1.5rem 1rem;
  color: var(--text-light);
  font-size: 1.3rem;
}

.project-card p {
  padding: 0 1.5rem;
  color: var(--text-gray);
}

.project-links {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* Contact Section */
#contact-form {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 2.5rem;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--card-bg);
  border: 2px solid var(--text-gray);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px -5px var(--primary-color);
}

label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-gray);
  transition: 0.3s ease;
  pointer-events: none;
  background-color: var(--card-bg);
  padding: 0 0.5rem;
}

input:focus ~ label,
input:valid ~ label,
textarea:focus ~ label,
textarea:valid ~ label {
  top: -0.8rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--card-bg);
  color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--nav-bg);
      padding: 1rem;
      flex-direction: column;
      align-items: center;
  }

  .nav-links.active {
      display: flex;
  }

  .hamburger {
      display: flex;
  }

  h1 {
      font-size: 2.5rem;
  }

  h2 {
      font-size: 2rem;
  }

  section {
      padding: 60px 0;
  }

  .projects-grid {
      grid-template-columns: 1fr;
  }

  .project-image {
    height: 300px;
    width: 600px;
    background-color: #1d4080;
  }

  .i-1{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 400px;
}
.i-2{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 400px;
}
.i-3{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 400px;
}
.i-4{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 400px;
}
.i-5{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  width: 400px;
}
.i-6{
  height: 300px;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  object-fit: cover;
  width: 600px;
}


}
