/* Modern Portfolio CSS - Full Stack Developer */

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

:root {
  /* Color Palette */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #ec4899;
  --accent-color: #06b6d4;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  top: 60%;
  right: 10%;
  animation-delay: -7s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  bottom: 20%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(30px) rotate(240deg);
  }
}



/* Main Content */
.main-content {
  min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.hero-text {
  animation: slideInLeft 0.8s ease-out;
  position: relative;
  z-index: 2;
}

.hero-text::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.greeting {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.wave {
  font-size: 1.5rem;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.name-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role-container {
  position: relative;
  margin-bottom: var(--space-xl);
}

.role-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.role-underline {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0.3;
  border-radius: 2px;
  animation: expandWidth 1.2s ease-out 0.8s both;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 100%; }
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 650px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-buttons {
    display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  }
  
.btn {
    display: inline-flex;
    align-items: center;
  gap: var(--space-sm);
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
    overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
    font-size: 0.9rem;
  }
  
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn i {
  transition: var(--transition-normal);
}

.btn:hover i {
    transform: translateX(4px);
  }
  
/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 0.8s ease-out;
}

.image-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.profile-image {
  width: 100%;
    height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  filter: brightness(1.2) contrast(1.1) saturate(1.1);
  transition: all 0.3s ease;
}

.profile-image:hover {
  filter: brightness(1.3) contrast(1.15) saturate(1.2);
  transform: scale(1.02);
}

.image-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  opacity: 0.1;
  animation: pulse 3s ease-in-out infinite;
}

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

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

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
    display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  animation: floatIcon 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  bottom: 20%;
  left: -15%;
  animation-delay: -2s;
}

.floating-icon:nth-child(3) {
  top: 60%;
  right: -5%;
  animation-delay: -4s;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Quick Stats */
.quick-stats {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-secondary);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(30px);
}

.stat-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Social Links */
.social-links {
    position: fixed;
  left: 2rem;
  top: 50%;
    transform: translateY(-50%);
  z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
  gap: 1.5rem;
  }
  
.social-label {
    writing-mode: vertical-rl;
  text-orientation: mixed;
    font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
    margin-bottom: 0.5rem;
  text-align: center;
}

.social-icons {
    display: flex;
    flex-direction: column;
  gap: 1rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Contact Info */
.contact-info {
  position: fixed;
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
    display: flex;
    flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
    align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-lg);
    text-decoration: none;
  color: var(--text-secondary);
    font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  min-width: 200px;
}

.contact-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
}

.contact-item i {
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.contact-item:hover i {
  color: white;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
    width: 20px;
    height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: var(--transition-fast);
  mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
}

/* Animations */
@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);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .image-container {
    width: 300px;
    height: 300px;
  }
  
  .social-links,
  .contact-info {
    display: none;
  }
}

@media (max-width: 768px) {
  
  .hero-section {
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .stat-item {
    padding: var(--space-lg);
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .role-text {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .image-container {
    width: 250px;
    height: 250px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.social-icon:focus,
.contact-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #000000;
  }
}