/* CSS Custom Properties for Theme Switching */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f23;
  --bg-tertiary: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-tertiary: #f093fb;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.1);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-text: #ffffff;
  --input-placeholder: rgba(255, 255, 255, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: hidden;
  background: var(--bg-primary);
}

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

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

h1 {
  font-size: 4rem;
}
h2 {
  font-size: 3rem;
}
h3 {
  font-size: 2.2rem;
}
h4 {
  font-size: 1.6rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Enhanced Buttons */
.btn {
  display: inline-block;
  padding: 16.5px 38.5px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 50%,
    var(--accent-tertiary) 100%
  );
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: #667eea;
  color: white;
  transform: translateY(-3px);
}

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

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

.nav-logo h2 {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 50%,
    var(--accent-tertiary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

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

.bar {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Enhanced Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-tertiary) 50%,
    #16213e 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(102,126,234,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(10px, 10px);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.highlight {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 50%,
    var(--accent-tertiary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
  }
  to {
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8));
  }
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  height: 500px;
}

.hero-graphic {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s ease;
}

.floating-card:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3);
}

.floating-card i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.card-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  right: 15%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 15%;
  left: 25%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(2deg);
  }
}

/* Enhanced Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 3.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 300;
}

/* Enhanced About Section */
.about {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 100%
  );
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-text h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.tagline {
  color: var(--accent-primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.bio {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.5);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  padding: 3rem;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 30px 60px var(--shadow-color);
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 40px 80px rgba(102, 126, 234, 0.2);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.profile-avatar i {
  font-size: 3.5rem;
  color: white;
}

.profile-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.profile-card p {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.profile-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  background: rgba(102, 126, 234, 0.2);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

/* Enhanced Services Section */
.services {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 80%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.service-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  padding: 2.5rem;
  border-radius: 25px;
  box-shadow: 0 20px 40px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.03);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

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

.service-card ul {
  list-style: none;
}

.service-card li {
  padding: 0.8rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.service-card li:hover {
  color: var(--accent-primary);
  padding-left: 10px;
}

.service-card li:last-child {
  border-bottom: none;
}

/* Enhanced Projects Section */
.projects {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 100%
  );
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 60%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 50px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.project-card:hover {
  transform: translateY(-20px) scale(1.02);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 40px 80px rgba(102, 126, 234, 0.2);
}

.project-image {
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.project-card:hover .project-image::before {
  transform: translateX(100%);
}

.project-overlay {
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.project-overlay i {
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: scale(1);
}

.project-content {
  padding: 2rem;
}

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

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(102, 126, 234, 0.2);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

/* Enhanced Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 80% 30%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
  z-index: 2;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.contact-icon i {
  color: white;
  font-size: 1.4rem;
}

.contact-details h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.contact-details p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 1.1rem;
}

.contact-form {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 30px 60px var(--shadow-color);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 15px;
  font-size: 1rem;
  color: var(--input-text);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--input-bg);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--input-placeholder);
}

/* Enhanced Footer */
.footer {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  color: white;
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.footer-links h4,
.footer-social h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(10px);
}

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

.social-link {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

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

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

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

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

  .about-stats {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    padding: 100px 0 60px;
  }

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

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Enhanced Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 120px;
  right: 20px;
  z-index: 1000;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

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

.hero-stat .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.hero-stat .stat-label {
  font-size: 0.9rem;
  color: #b0b0b0;
}

/* Skills Section */
.skills {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
}

.skills-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.skill-category h3 {
  color: #ffffff;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.skill-bar {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 500;
}

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

.skill-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}

.skills-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-chart {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Project Filters */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

/* Project Badges */
.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(102, 126, 234, 0.9);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Project Links */
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-link {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* Projects CTA */
.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Timeline Section */
.timeline {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #0f0f23 100%);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
}

.timeline-container {
  position: relative;
  z-index: 2;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 60%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 60%;
  margin-right: 0;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  position: relative;
}

.timeline-date {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-content h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: #b0b0b0;
  margin-bottom: 1rem;
  font-weight: 400;
}

.timeline-content p {
  color: #d0d0d0;
  margin-bottom: 1.5rem;
}

.timeline-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 126, 234, 0.5);
}

.testimonial-content p {
  color: #d0d0d0;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.author-info h4 {
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.author-info span {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.testimonial-rating {
  margin-left: auto;
  color: #ffd700;
}

/* Blog Section */
.blog {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #0f0f23 100%);
  position: relative;
}

.blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 80%,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 50%
  );
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 126, 234, 0.5);
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.blog-content p {
  color: #b0b0b0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #667eea;
}

.blog-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-link:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.blog-cta {
  text-align: center;
}

/* Enhanced Contact Form */
.form-group select {
  width: 100%;
  padding: 1.2rem;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 15px;
  font-size: 1rem;
  color: var(--input-text);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--input-bg);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.file-upload {
  display: block;
  padding: 1rem;
  background: var(--input-bg);
  border: 2px dashed var(--input-border);
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.file-upload:hover {
  border-color: var(--accent-primary);
  background: var(--input-bg);
}

.file-upload input[type='file'] {
  display: none;
}

/* Enhanced Footer */
.footer-services h4,
.footer-newsletter h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-services ul {
  list-style: none;
}

.footer-services a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.footer-services a:hover {
  color: #667eea;
  transform: translateX(10px);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--input-text);
}

.newsletter-form input::placeholder {
  color: var(--input-placeholder);
}

.newsletter-form .btn {
  white-space: nowrap;
  min-width: fit-content;
  flex-shrink: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
}

.footer-bottom-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #667eea;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}

/* Profile Social */
.profile-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.profile-social .social-link {
  width: 40px;
  height: 40px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.profile-social .social-link:hover {
  background: rgba(102, 126, 234, 0.4);
  transform: translateY(-3px);
}

/* Light Theme Support */
.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: #dee2e6;
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: #dee2e6;
  --input-text: #212529;
  --input-placeholder: rgba(33, 37, 41, 0.6);
}

/* Light theme body styles handled by CSS variables */

/* Light theme navbar styles handled by CSS variables */

/* Light theme nav-logo styles handled by CSS variables */

/* Light theme nav-link styles handled by CSS variables */

/* Light theme hero styles handled by CSS variables */

/* Light theme hero title/subtitle styles handled by CSS variables */

/* Light theme hero description styles handled by CSS variables */

/* Light theme section header styles handled by CSS variables */

/* Light theme section header paragraph styles handled by CSS variables */

/* Light theme card styles handled by CSS variables */

/* Light theme card heading styles handled by CSS variables */

/* Light theme card paragraph styles handled by CSS variables */

/* Light theme contact form styles handled by CSS variables */

/* Light theme form input styles handled by CSS variables */

/* Light theme form input focus styles handled by CSS variables */

/* Light theme footer styles handled by CSS variables */

/* Light theme footer brand styles handled by CSS variables */

/* Light theme footer link styles handled by CSS variables */

/* Responsive Design for New Sections */
@media (max-width: 768px) {
  .skills-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-container::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 20px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .theme-toggle {
    top: 100px;
    right: 15px;
  }

  .theme-btn span {
    display: none;
  }
}

/* Particle Background Effect */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #667eea;
  border-radius: 50%;
  animation: particleFloat 20s infinite linear;
  opacity: 0.6;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations to sections */
.about-content {
  animation: slideInLeft 1s ease-out;
}

.services-grid {
  animation: slideInUp 1s ease-out;
}

.projects-grid {
  animation: slideInRight 1s ease-out;
}

.contact-content {
  animation: slideInUp 1s ease-out;
}
