
/* Main Styles for Protik Dawn's Portfolio */

/* 
===================
  General Styles 
===================
*/
:root {
  --primary-color: #6366f1;
  --primary-light: rgba(99, 102, 241, 0.1);
  --secondary-color: #4f46e5;
  --dark-color: #111827;
  --light-color: #f9fafb;
  --muted-color: #6b7280;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

section {
  padding: 100px 0;
}

.img-fluid {
  max-width: 50%;
  height: auto;
}

/* 
===================
  Animations
===================
*/
.animate-fadeIn {
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
}

.animate-slideUp {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

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

.wave-emoji {
  display: inline-block;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUp {
  0% { 
    transform: translateY(30px);
    opacity: 0; 
  }
  100% { 
    transform: translateY(0);
    opacity: 1; 
  }
}

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

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* 
===================
  Navbar Styles 
===================
*/
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
}

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

.navbar-brand span {
  color: var(--dark-color);
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  margin: 0 0.75rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

/* 
===================
  Hero Section 
===================
*/
#home {
  padding-top: 5rem;
  position: relative;
}

.bg-blob-1 {
  width: 600px;
  height: 600px;
  background-color: var(--primary-light);
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  transform: translate(30%, -30%);
}

.bg-blob-2 {
  width: 600px;
  height: 600px;
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  transform: translate(-30%, 30%);
}

.badge.bg-primary-light {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 500;
}

.scroll-down {
  transition: var(--transition);
}

.scroll-down:hover {
  color: var(--primary-color);
  transform: translateY(5px);
}

/* 
===================
  About Section 
===================
*/
#about img {
  transition: transform 0.5s ease;
}

#about img:hover {
  transform: scale(1.02);
}

/* 
===================
  Skills Section 
===================
*/
.progress {
  background-color: #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color);
  border-radius: 0.5rem;
  transition: width 1s ease-in-out;
}

.skill-badge {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.skill-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-badge i {
  font-size: 1.75rem;
  color: var(--primary-color);
}

/* 
===================
  Projects Section 
===================
*/
.project-card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
}

/* 
===================
  Contact Section 
===================
*/
.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.social-links a {
  color: var(--muted-color);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
}

.form-control {
  padding: 0.75rem;
  border-radius: 0.5rem;
}

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

/* 
===================
  Responsive Styles 
===================
*/
@media (max-width: 992px) {
  .section-title {
    text-align: center;
    display: block;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  #about img {
    max-width: 60%;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  #about img {
    max-width: 80%;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 70px 0;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  #about img {
    max-width: 100%;
  }
}
