:root {
  --primary-color: #ff4d5a;
  --secondary-color: #4d79ff;
  --accent-color: #9d4dff;
  --text-color: #e6e6e6;
  --light-text: #a0a0a0;
  --background: #121212;
  --card-bg: #1e1e1e;
  --gradient-start: #ff4d5a;
  --gradient-mid: #9d4dff;
  --gradient-end: #4d79ff;
  --shadow: rgba(0, 0, 0, 0.3);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --vh: 1vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-color);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 120px 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  letter-spacing: 2px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 77, 90, 0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease;
  display: none;
}

@media (min-width: 1024px) {
  .cursor {
    display: block;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  width: 100%;
}

.logo {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.desktop-nav ul {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 1px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: var(--card-bg);
  z-index: 99;
  padding: 6rem 2rem 2rem;
  transition: var(--transition);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
}

.hero {
  height: 100vh; 
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
  padding-top: 0;
  padding-bottom: 0;
}

.hero-content {
  text-align: left;
  color: white;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
}

.hero h1 {
  font-family: "Outfit", sans-serif;
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal-text {
  opacity: 0;
  transform: translateY(40px);
  animation: revealText 1s forwards 0.5s;
}

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

.typing-text {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

#changing-text {
  position: relative;
  font-weight: 600;
  color: var(--primary-color);
}

#changing-text::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn.primary {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.shape-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  will-change: transform, border-radius;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: linear-gradient(135deg, rgba(255, 77, 90, 0.1), rgba(157, 77, 255, 0.1));
  animation: morphShape1 20s linear infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  background: linear-gradient(135deg, rgba(157, 77, 255, 0.1), rgba(77, 121, 255, 0.1));
  animation: morphShape2 15s linear infinite;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  background: linear-gradient(135deg, rgba(77, 121, 255, 0.1), rgba(255, 77, 90, 0.1));
  animation: morphShape3 25s linear infinite;
}

@keyframes morphShape1 {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    transform: rotate(180deg);
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(360deg);
  }
}

@keyframes morphShape2 {
  0% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    transform: rotate(-180deg);
  }
  100% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: rotate(-360deg);
  }
}

@keyframes morphShape3 {
  0% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(-50%, -50%) rotate(180deg);
  }
  100% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.projects {
  background-color: #0a0a0a;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
  transform: translateY(0);
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow);
  border-color: rgba(255, 255, 255, 0.1);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

.project-content p {
  color: var(--light-text);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--light-text);
}

.project-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  transform: translateY(20px);
  opacity: 0;
}

.project-card:hover .project-link {
  transform: translateY(0);
  opacity: 1;
}

.project-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.project-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background-color: var(--background);
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.skills {
  margin-top: 2rem;
}

.skill {
  margin-bottom: 1.5rem;
}

.skill-name {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.skill-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  transition: width 1.5s ease;
}

.about-image {
  position: relative;
}

.image-placeholder {
  width: 100%;
  padding-bottom: 0; 
  background-color: transparent;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.image-placeholder::before {
  display: none; 
}

.profile-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-image:hover {
  transform: scale(1.03);
}

.contact {
  background-color: #0a0a0a;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.contact-text {
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link::before {
  content: attr(data-emoji);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.social-link:hover::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.contact-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0;
  font-size: 1rem;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background-color: transparent;
  outline: none;
  transition: var(--transition);
  color: var(--text-color);
  font-family: "Space Grotesk", sans-serif;
}

.form-group label {
  position: absolute;
  top: 0.8rem;
  left: 0;
  pointer-events: none;
  transition: var(--transition);
  color: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
  border-bottom-color: var(--primary-color);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

footer {
  background-color: #0a0a0a;
  color: var(--text-color);
  padding: 2rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 2px;
}

[data-aos] {
  opacity: 0;
  transition: var(--transition);
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0);
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }

  .about,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    order: -1;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 80px 5%;
  }

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

  .hero-content {
    padding: 0 1rem;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .mobile-nav {
    width: 80%;
  }

  .mobile-nav.active {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 5%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .typing-text {
    font-size: 1.2rem;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-image {
    height: 180px;
  }

  .mobile-nav {
    width: 85%;
    padding: 5rem 1.5rem 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .hero-content {
    text-align: center;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-title {
    display: block;
    text-align: center;
  }

  .project-card {
    max-width: 100%;
  }
}

@media (max-width: 350px) {
  .hero h1 {
    font-size: 2rem;
  }

  .typing-text {
    font-size: 1rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .project-content h3 {
    font-size: 1.3rem;
  }

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