/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Smooth scroll with offset for fixed nav */
html {
  scroll-padding-top: 80px;
}

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

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #2563eb, #06b6d4);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #1d4ed8, #0891b2);
}

/* Section Title Styling */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.7);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  color: white;
  font-weight: 600;
  border: 2px solid #06b6d4;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.3);
}

/* Navigation Styles */
nav {
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: width 0.3s ease;
}

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

/* Hero Section Background Image */
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/images/Iqe39FDg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  animation: slowZoom 30s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.4) 50%, rgba(15, 23, 42, 0.6) 100%);
  z-index: 1;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Hero Section Animated Shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
  z-index: 2;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  bottom: -250px;
  right: -250px;
  animation-delay: 7s;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  top: 50%;
  right: 10%;
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

/* Fade-in Animations */
.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
  animation-fill-mode: both;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
  animation-fill-mode: both;
}

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

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

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

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

/* Experience Cards */
.experience-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.2);
}

/* Skill Cards */
.skill-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.skill-card:hover {
  transform: translateY(-10px);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.3);
}

/* Project Cards */
.project-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.7) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
  transition: left 0.6s ease;
}

.project-card:hover::after {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 30px 60px -15px rgba(6, 182, 212, 0.4);
}

.project-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}

.project-card:hover .project-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

/* Vision Card */
.vision-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.7) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.2);
  transition: all 0.4s ease;
}

.vision-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 35px 70px -15px rgba(6, 182, 212, 0.3);
  transform: scale(1.02);
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.7) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(100, 116, 139, 0.3);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.contact-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 30px 60px -15px rgba(6, 182, 212, 0.3);
}

/* Social Links */
.social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, rgba(6, 182, 212, 0.4) 100%);
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.5);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Effect */
.parallax {
  transition: transform 0.5s ease-out;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow Effect */
.glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.8));
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-shape {
    width: 200px !important;
    height: 200px !important;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .skill-card, .project-card, .vision-card, .contact-card {
    padding: 1.5rem;
  }
}

/* Loading animation for images */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Pulse animation for icons */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Hover effects for interactive elements */
a, button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Selection styling */
::selection {
  background: rgba(6, 182, 212, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(6, 182, 212, 0.3);
  color: white;
}

/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  nav, footer {
    display: none;
  }
}
