/* Ensure hero section is not hidden behind fixed header */
/* More space below header and right alignment for hero section */
/* Hero section right-aligned and spaced below header */
.intro.highlight-box, .hero, .hero-section {
  margin-top: 140px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}
/* Ensure hero text is right-aligned */
.intro.highlight-box .container.center {
  text-align: right;
}
}
/* Enhanced Profile Pic Styles for Hero Section */
.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px 0 rgba(118, 75, 162, 0.4), 0 0 0 8px rgba(79, 172, 254, 0.15);
  border: 4px solid #fff;
  background: var(--primary-gradient);
  transition: box-shadow 0.4s, transform 0.4s;
  position: relative;
  z-index: 2;
}

.profile-pic.animate-bounce {
  animation: bounce 2s infinite;
}

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

.profile-pic:hover, .profile-pic:focus {
  box-shadow: 0 0 60px 0 #764ba2, 0 0 0 12px #4facfe, 0 0 80px 0 #f093fb;
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}
/* Ultra Modern Portfolio Styles - 2025 Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  /* Modern Color Palette */
  --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%);
  --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
  
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(17, 17, 17, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-accent: #4facfe;
  --border-color: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  
  /* Spacing */
  --section-padding: 120px 0;
  --container-padding: 0 24px;
  
  /* Effects */
  --blur-glass: blur(20px);
  --shadow-large: 0 20px 50px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.glass-effect {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

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

.btn-outline:hover {
  background: var(--primary-gradient);
  border-color: transparent;
}

/* Header/Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
}

.nav-menu li a:hover {
  color: var(--text-accent);
  background: rgba(79, 172, 254, 0.1);
}

.nav-menu li a.active {
  background: var(--primary-gradient);
  color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text .subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

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

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-large);
  border: 4px solid transparent;
  background: var(--primary-gradient);
  padding: 4px;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

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

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-large);
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 24px;
}

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

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.skill-card {
  padding: 40px;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.skill-card:hover::before {
  opacity: 0.1;
}

.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

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

.project-image {
  width: 100%;
  height: 250px;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 32px;
}

.project-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

.project-tech {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 6px 16px;
  background: rgba(79, 172, 254, 0.1);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-accent);
}

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

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

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

.contact-content h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 24px;
}

.contact-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.contact-form {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.form-group {
  display: grid;
  gap: 12px;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

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

/* Footer */
footer {
  background: var(--bg-primary);
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

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

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

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text .subtitle {
    font-size: 1.25rem;
  }
  
  .hero-image img {
    width: 300px;
    height: 300px;
  }
  
  .hero-image::before {
    width: 350px;
    height: 350px;
  }
  
  .about-text h2 {
    font-size: 2rem;
  }
  
  .contact-content h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0 16px;
    --section-padding: 60px 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-end;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card {
    margin: 0 -16px;
  }
}

/* Smooth scrolling and performance optimizations */
html {
  scroll-behavior: smooth;
}

* {
  will-change: auto;
}

.hero-image img,
.project-image img {
  will-change: transform;
}

/* Loading animations */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}
