* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --dark-bg: #0a0a0f;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 60%, rgba(79, 172, 254, 0.2) 0%, transparent 50%);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(100, 181, 246, 0.4);
  border-radius: 50%;
  animation: float-particle 6s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(15, 20, 25, 0.95);
  padding: 0.75rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo h1 span {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text h2 {
  font-size: clamp(2.8rem, 2vw, 1.5rem);
  font-family: 'Inter', sans-serif;
  font-weight: 500; /* Slightly bolder for emphasis */
  margin-bottom: 1.5rem;
  background: var(--primary-gradient); /* Gradient from #667eea to #764ba2 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.3); /* Subtle glow */
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  letter-spacing: 0.02em; /* Slight spacing for elegance */
}

.hero-text h2:hover {
  transform: translateY(-2px); /* Subtle lift effect */
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5); /* Enhanced glow on hover */
}


.hero-text p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
}

.secondary-btn {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
}

.secondary-btn:hover {
  background: var(--glass-bg);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.image-container {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--primary-gradient);
  padding: 5px;
  position: relative;
  animation: pulse 3s ease-in-out infinite;
}

.image-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: rotate 10s linear infinite;
}

.image-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Section Styles */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.underline {
  width: 100px;
  height: 4px;
  background: var(--secondary-gradient);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

/* About Section */
section#about {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.profile-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

.profile-image .emoji {
  font-size: clamp(100px, 12vw, 140px);
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.profile-image:hover .emoji {
  transform: scale(1.15);
  filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.7));
}

.about-text {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text p {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.about-text p:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.more-text {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.more-text.visible {
  display: block;
  opacity: 1;
}

.see-more-btn {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 500;
  font-style: italic;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.see-more-btn:hover {
  background: var(--secondary-gradient);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-item {
  background: var(--glass-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.skill-item:hover {
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.skill-level {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  margin-left: 0.5rem;
  font-weight: 600;
}

.skill-level.expert {
  background: var(--success-gradient);
  color: white;
}

.skill-level.advanced {
  background: var(--primary-gradient);
  color: white;
}

.skill-level.intermediate {
  background: var(--warning-gradient);
  color: white;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-img::after {
  opacity: 0.3;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: #333;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  padding: 0.25rem 0.75rem;
  background: var(--glass-bg);
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-btn {
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.project-btn:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
  color: white;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-item i {
  font-size: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-item h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--text-primary);
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

::placeholder {
  color: var(--text-secondary);
}

.submit-button {
  padding: 0.75rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

/* Footer */
footer {
  background: var(--card-bg);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-quote {
  margin-bottom: 2rem;
}

.footer-quote p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
  color: white;
}

.copyright p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.typewriter-cursor::after {
  content: '|';
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
  }

  .hero-text h2 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
  }

  .hero-text p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
  }

  .hero-buttons {
    justify-content: center;
  }

  .image-container {
    width: 250px;
    height: 250px;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .section-title h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  }

  .about-text p {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
  }

  .profile-image .emoji {
    font-size: clamp(80px, 10vw, 100px);
  }

  .see-more-btn {
    font-size: clamp(0.85rem, 1.1vw, 0.9rem);
  }

  .underline {
    width: 80px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 1rem;
  }

  .hero-text h1 {
    font-size: clamp(1.8rem, 2.5vw, 2rem);
  }

  .section-title h2 {
    font-size: clamp(1.6rem, 2vw, 2rem);
  }

  .about-text p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}