/* CSS Variables for Theme */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #a0aec0;
  --bg-primary: #1a202c;
  --bg-secondary: #2d3748;
  --bg-card: #2d3748;
  --border-color: #4a5568;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(26, 32, 44, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: rotate(180deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.robot-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.profile-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 20px 0;
  text-align: left;
}

.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-icons i {
  position: absolute;
  font-size: 24px;
  color: var(--primary-color);
  animation: float 3s ease-in-out infinite;
}

.floating-icons i:nth-child(1) {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
  top: 20px;
  right: 20px;
  animation-delay: 0.5s;
}

.floating-icons i:nth-child(3) {
  bottom: 20px;
  left: 20px;
  animation-delay: 1s;
}

.floating-icons i:nth-child(4) {
  bottom: 20px;
  right: 20px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title i {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 300px;
  height: 300px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 80px;
}

.image-placeholder p {
  font-size: 18px;
  margin-top: 20px;
  font-weight: 500;
}

/* My Approach Section */
.approach {
  background: var(--bg-primary);
}

.approach-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.approach-list {
  list-style: none;
  padding: 0;
}

.approach-list li {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-left: 30px;
  position: relative;
}

.approach-list li::before {
  content: "•";
  color: var(--primary-color);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

.approach-list strong {
  color: var(--text-primary);
}

/* Focus Section */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.focus-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.focus-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.focus-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-icon i {
  font-size: 35px;
  color: white;
}

.focus-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.focus-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.focus-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.focus-text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: left;
}

.focus-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.focus-text ul {
  list-style: none;
  padding-left: 20px;
}

.focus-text li {
  margin-bottom: 10px;
  position: relative;
}

.focus-text li::before {
  content: "•";
  color: var(--primary-color);
  font-size: 1.2rem;
  position: absolute;
  left: -20px;
}

/* Skills Section */
.skills {
  background: var(--bg-secondary);
}

.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.skills-category h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill-item {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-item i {
  font-size: 24px;
  color: var(--primary-color);
}

.skill-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.skill-item span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Motto Section */
.motto {
  background: var(--gradient);
  color: white;
  text-align: center;
}

.motto-content {
  max-width: 800px;
  margin: 0 auto;
}

.motto-icon {
  font-size: 60px;
  margin-bottom: 30px;
}

.motto-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.motto-quote {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
}

.motto-quote::before,
.motto-quote::after {
  content: '"';
  font-size: 3rem;
  opacity: 0.3;
}

.motto-author {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 200px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: white;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tech-tag {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--secondary-color);
}

/* Testimonial Section */
.testimonials {
  background: var(--bg-secondary);
}

.testimonial-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.testimonial-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

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

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

.testimonials-display {
  max-height: 600px;
  overflow-y: auto;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.testimonial-info h4 {
  color: var(--text-primary);
  margin-bottom: 5px;
}

.testimonial-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.testimonial-message {
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-text i {
  color: #e53e3e;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Rocket Launch Animations - Back to original position */
@keyframes rocketParticle {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateY(-40px) scale(0) rotate(-45deg);
    opacity: 0;
  }
}

/* New animation for straight down particles */
@keyframes rocketParticleFixed {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateY(40px) scale(0);
    opacity: 0;
  }
}

/* Rocket trail animation */
.rocket-trail {
  animation: trailFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes trailFlicker {
  0% {
    opacity: 0.8;
    height: 20px;
  }
  100% {
    opacity: 1;
    height: 25px;
  }
}

/* Rocket button styles - Back to original rotation */
.rocket-btn {
  position: relative;
  overflow: visible !important;
  filter: grayscale(100%);
  background: none !important;
  border: none !important;
  transform: rotate(-45deg); /* Back to original diagonal position */
}

.rocket-btn i {
  color: #333;
  transition: color 0.3s ease;
}

.rocket-btn.active i {
  color: #ff0000;
}

.rocket-btn:hover {
  filter: grayscale(0%);
}

.rocket-btn:hover i {
  color: #ff6b6b;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.5) 20%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.3s ease;
}

.custom-cursor.active {
  transform: translate(-50%, -50%) scale(1.5);
  background: radial-gradient(circle, rgba(240, 147, 251, 0.7) 20%, transparent 70%);
}

.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats {
    justify-content: center;
  }

  .skills-content {
    grid-template-columns: 1fr;
  }

  .testimonial-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .rocket-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

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

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

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

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .testimonial-form {
    padding: 30px 20px;
  }
}

/* Scroll animations */
[data-aos] {
  pointer-events: none;
}

.aos-animate {
  pointer-events: auto;
}

/* Loading animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Custom Styles */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link.active::after {
  width: 100% !important;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
