* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem 5%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: opacity 0.3s;
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s;
}

.nav-links a:hover:after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 4px;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.social-links a {
  color: #fff;
  transition: all 0.3s;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.social-links a:nth-child(1):hover {
  color: #333;
}

.social-links a:nth-child(2):hover {
  color: #0077b5;
}

.social-links a:nth-child(3):hover {
  color: #ea4335;
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.btn {
  padding: 1rem 2.5rem;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: left 0.3s;
  z-index: -1;
}

.btn:hover:before {
  left: 0;
}

.btn:hover {
  color: #000;
}

/* Floating elements background */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.float-item {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 20s infinite ease-in-out;
}

.float-item:hover {
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.float-item:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.float-item:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: -5s;
}

.float-item:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: -10s;
}

/* Section Styles */
section {
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 4rem;
  text-align: center;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s;
}

.about-text.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.about-text p {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.education-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s;
}

.education-box.visible {
  opacity: 1;
  transform: translateX(0);
}

.education-box h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.education-box .date {
  opacity: 0.6;
  margin-bottom: 1rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.project-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transition: left 0.3s;
}

.project-card:hover:before {
  left: 0;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-10px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-date {
  opacity: 0.5;
  font-size: 0.85rem;
}

.project-tech {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-card ul {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.project-card li {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  font-size: 0.95rem;
  opacity: 0.8;
}

.project-card li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #fff;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid #fff;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: transparent;
  letter-spacing: 1px;
}

.project-links a:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: left 0.3s;
  z-index: -1;
}

.project-links a:hover:before {
  left: 0;
}

.project-links a:hover {
  color: #000;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.skill-category {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s;
}

.skill-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-tag {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.skill-tag:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
}

/* Achievement Section */
.achievement-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem;
  margin-top: 3rem;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s;
}

.achievement-box.visible {
  opacity: 1;
  transform: scale(1);
}

.achievement-box h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.achievement-box .tech {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.achievement-box ul {
  list-style: none;
}

.achievement-box li {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  opacity: 0.8;
}

.achievement-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
}

/* Contact Section */
#contact {
  padding: 8rem 5%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-container {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s;
}

.contact-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.contact-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0.8;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-submit {
  padding: 1rem 2.5rem;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  align-self: flex-start;
}

.btn-submit:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: left 0.3s;
  z-index: -1;
}

.btn-submit:hover:before {
  left: 0;
}

.btn-submit:hover {
  color: #000;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  margin-top: 1rem;
  display: none;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.5);
  color: #4caf50;
}

.form-message.error {
  background: rgba(244, 67, 54, 0.1);
  border-color: rgba(244, 67, 54, 0.5);
  color: #f44336;
}

/* Add these styles for the animated title */

.animated-title {
  display: inline-block;
}

.animated-title .letter {
  display: inline-block;
  transition: transform 0.05s ease;
  cursor: pointer;
}

.animated-title .letter:hover {
  transform: scale(2);
}

.animated-title .space {
  display: inline-block;
  width: 0.3em;
}

/* Footer */
footer {
  background: #000;
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }

  50% {
    transform: translate(0, -40px) rotate(180deg);
  }

  75% {
    transform: translate(-20px, -20px) rotate(270deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .animated-title .letter {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 5rem 5%;
  }

  .social-links {
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-container {
    padding: 2rem;
  }

  #contact {
    padding: 5rem 5%;
  }
}

.cta-buttons {
  flex-direction: flex;
  align-items: center;
}

.form-row {
  grid-template-columns: 1fr;
}

.contact-container {
  padding: 2rem;
}

#contact {
  padding: 5rem 5%;
}

#contact {
  padding: 5rem 5%;
}
