/* ========================================
   PORTFOLIO - PREMIUM MODERN DESIGN
   ======================================== */

/* CSS Variables for Theme */
:root {
  /* Color Palette */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --section-padding: 80px 0;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --bg-light: #1f2937;
  --bg-white: #111827;
  --border-color: #374151;
}

/* ========================================
   BASE STYLES
   ======================================== */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

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

/* Links */
a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.navbar-dark .navbar-brand {
  color: var(--primary-color) !important;
}

.navbar-dark .nav-link {
  color: var(--text-primary) !important;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast);
  color: var(--text-primary) !important;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  animation: backgroundMove 20s linear infinite;
}

.hero-section h1,
.hero-section h2,
.hero-section p {
  color: white !important;
}

@keyframes backgroundMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white !important;
  padding: 2rem;
}

.hero-content * {
  color: white !important;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
  color: white !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease;
  color: white !important;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  animation: fadeInUp 1.2s ease;
  color: white !important;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.hero-buttons {
  animation: fadeInUp 1.4s ease;
}

.btn-hero {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  margin: 0.5rem;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-primary {
  background: white !important;
  color: var(--primary-color) !important;
  box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--primary-color) !important;
  background: white !important;
}

.btn-hero-primary i {
  color: var(--primary-color) !important;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-3px);
  color: white !important;
}

.btn-hero-secondary i {
  color: white !important;
}

/* Hero Carousel Styles */
.hero-carousel .carousel-item {
  height: 100vh;
}

.hero-carousel .carousel-item img {
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-carousel .carousel-caption {
  bottom: 40%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
}

.hero-carousel .carousel-caption h2,
.hero-carousel .carousel-caption p {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2rem;
  color: white;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   SECTION STYLES
   ======================================== */

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Fade-in Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

#about {
  background: var(--bg-light);
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: var(--gradient-primary);
  border-radius: 20px;
  z-index: -1;
}

.about-image-wrapper img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-base);
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-content h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-info {
  margin: 2rem 0;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-info i {
  width: 30px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  margin-right: 1rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   SKILLS SECTION
   ======================================== */

#skills {
  background: white;
}

.skill-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

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

.skill-card .card-body {
  padding: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.skill-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.skill-category {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.progress {
  height: 10px;
  border-radius: 10px;
  background: var(--bg-light);
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 1.5s ease;
}

.skill-card .progress-bar {
  width: 0 !important;
}

.skill-card.visible .progress-bar {
  width: var(--skill-width) !important;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

#projects {
  background: var(--bg-light);
}

.project-card {
  background: white;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
}

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

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

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link-btn {
  padding: 10px 20px;
  background: white;
  color: var(--primary-color);
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.project-link-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.project-card .card-body {
  padding: 2rem;
}

.project-card .card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-badge {
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========================================
   EXPERIENCE & EDUCATION SECTIONS
   ======================================== */

#experience {
  background: white;
}

#education {
  background: var(--bg-light);
}

.timeline-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  transition: var(--transition-base);
  border-left: 4px solid var(--primary-color);
}

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

.timeline-card::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px white;
}

.timeline-company {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-duration {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.timeline-duration i {
  margin-right: 0.5rem;
}

.education-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
}

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

.education-card .card-body {
  padding: 2rem;
}

.education-institution {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.education-degree {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

#contact {
  background: var(--bg-light);
}

.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.btn-submit {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--gradient-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

footer a:hover {
  color: white;
  transform: translateY(-3px);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

@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
   ======================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .about-image-wrapper {
    margin-bottom: 2rem;
  }
  
  .btn-hero {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.badge-gradient {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.card-hover {
  transition: var(--transition-base);
}

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