:root {
  --primary: #00f0ff;
  --primary-dark: #00a8ff;
  --secondary: #ff2d75;
  --dark: #0a0a14;
  --darker: #05050a;
  --light: #f0f0ff;
  --gray: #8a8a9e;
  --success: #00ff88;
  --danger: #ff3860;
  --bg-gradient: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-gradient);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: var(--darker);
}

/* Scrollbar  */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--darker);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.2s ease;
}

.cursor-follower {
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: all 0.4s ease;
}

/* Disable cursor in About section */
.about .cursor,
.about .cursor-follower {
  display: none;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 20, 0.8);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 1rem 5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.logo i {
  color: var(--secondary);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--darker);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--darker);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--light);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, rgba(10, 10, 20, 0) 70%);
  z-index: -1;
  animation: pulse 15s infinite linear;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.2; }
  100% { transform: scale(1); opacity: 0.5; }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 span {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.typewriter {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--secondary);
  margin: 1.5rem 0;
  min-height: 2.5rem;
  font-weight: 500;
}

.typewriter::after {
  content: '|';
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-image {
  position: absolute;
  right: 10%;
  top: 25%;
  bottom: 90%;
  transform: translateY(-50%);
  width: 30%;
  max-width: 400px;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  width: 90%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 240, 255, 0.3);
  border: 2px solid var(--primary);
  transition: all 0.5s ease;
}

.hero-image img:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 20px 60px rgba(0, 240, 255, 0.5);
}

/* About Section */
.about {
  padding: 6rem 5%;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.about-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-img {
  flex: 1;
  position: relative;
}

.about-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 240, 255, 0.2);
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.about-img img:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 240, 255, 0.3);
}

.about-content {
  flex: 1;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-content p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-item i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
}

.skills {
  margin-top: 2rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-list li {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--primary);
}

/* Projects Section */
.projects {
  padding: 6rem 5%;
  background: rgba(5, 5, 10, 0.7);
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  perspective: 1000px;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.05) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.4), 0 0 20px rgba(0, 240, 255, 0.6);
  border-color: var(--primary);
}

.project-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--darker) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Crect width="100" height="100" fill="%2305050a"/%3E%3Cpath d="M0 0L100 100M100 0L0 100" stroke="%238a8a9e" stroke-width="2" opacity="0.2"/%3E%3C/svg%3E') repeat;
}

.project-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(255, 45, 117, 0.3) 100%);
  opacity: 0; */
  transition: opacity 0.4s ease;
  z-index: 1;
}

.project-card:hover .project-img::after {
  opacity: 1;
}

.project-img img,
.project-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
}

.project-card:hover .project-img img,
.project-card:hover .project-img video {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-content {
  transform: translateY(-10px);
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.project-content p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .tag {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-links a:first-child {
  background: var(--primary);
  color: var(--darker);
}

.project-links a:first-child:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.project-links a:last-child {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.project-links a:last-child:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.1);
}

/* Contact Section */
.contact {
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,240,255,0.05) 0%, rgba(0,240,255,0) 70%);
  animation: pulse 15s infinite linear;
  z-index: 0;
}

.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.contact-info p {
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary);
  width: 50px;
  height: 50px;
  background: rgba(255, 45, 117, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--secondary);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.0rem;
}

.contact-social a {
  color: #ffffff;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.contact-social a:hover {
  color: var(--primary);
  transform: scale(1.2) translateY(-5px);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.contact-form {
  flex: 1;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--light);
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--secondary);
  color: var(--light);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(255, 45, 117, 0.3);
}

.submit-btn:hover {
  background: #ff1a5e;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 45, 117, 0.4);
}

/* Footer */
footer {
  background: var(--darker);
  padding: 3rem 5%;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  color: var(--light);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  color: var(--gray);
  font-size: 0.9rem;
}

.copyright a {
  color: var(--primary);
  text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--darker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
  border: none;
  outline: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-container,
  .contact-container {
    flex-direction: column;
  }
  
  .about-img {
    display: flex;
    justify-content: center;
  }
  
  .about-img img {
    max-width: 350px;
  }
  
  .hero-image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
  }
  
  .hero {
    text-align: center;
    padding-top: 6rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .contact-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }
  
  .hamburger {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--darker);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid var(--glass-border);
  }
  
  nav.active {
    right: 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .typewriter {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .about-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .contact-social a {
    font-size: 2rem;
  }

}
