/* ===== PROFESSIONAL PORTFOLIO STYLES ===== */

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

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #00bcd4;
  --secondary-color: #ff0364;
  --accent-color: #00e5ff;
  --dark-bg: #0a0e1a;
  --darker-bg: #060a14;
  --card-bg: #1a1f2e;
  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
  --text-muted: #78909c;
  --gradient-primary: linear-gradient(135deg, #00bcd4 0%, #ff0364 100%);
  --gradient-secondary: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #2d3748 100%);
  --shadow-primary: 0 10px 40px rgba(0, 188, 212, 0.15);
  --shadow-secondary: 0 5px 20px rgba(0, 0, 0, 0.3);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-accent: 'Pacifico', cursive;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body.overflow-hidden {
  overflow: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* ===== PRELOADER DYNAMIC ANIMATION ===== */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #00bcd4, #ff0364, #00e5ff, #00bcd4);
  background-size: 300% 300%;
  animation: preloader-bg-move 3s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease-out, visibility 0.5s;
  opacity: 1;
  visibility: visible;
}

@keyframes preloader-bg-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.loader {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #fff, #00bcd4, #ff0364, #fff);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: loader-text-gradient 2s linear infinite, loader-shine 1.5s linear infinite;
  position: relative;
}

@keyframes loader-text-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes loader-shine {
  0% { filter: brightness(1.2) drop-shadow(0 0 8px #00bcd4); }
  50% { filter: brightness(2) drop-shadow(0 0 24px #ff0364); }
  100% { filter: brightness(1.2) drop-shadow(0 0 8px #00bcd4); }
}

.loader-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 1rem 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 188, 212, 0.1);
  transition: var(--transition);
}

.navbar-scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 14, 26, 0.98);
  box-shadow: var(--shadow-secondary);
}

.navbar-brand {
  font-weight: 900;
  font-size: 2rem;
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 25px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(0, 188, 212, 0.1);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Responsive navbar improvements */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    margin: 0.2rem 0;
    padding: 0.75rem 1rem !important;
    text-align: center;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    background: rgba(10, 14, 26, 0.98);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(0, 188, 212, 0.2);
  }
}

@media (max-width: 768px) {
  .navbar-brand span {
    font-size: 1.5rem !important;
  }
  
  .navbar-brand img {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-secondary);
  overflow: hidden;
  padding-top: 110px;
}

@media (max-width: 600px) {
  .hero-section {
    padding-top: 90px;
  }
  .hero-section {
    padding-top: 60px;
    min-height: 80vh;
  }
  .section-padding {
    padding: 32px 0 24px 0;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hero-badges {
    margin-bottom: 1rem;
  }
  .hero-buttons .btn {
    padding: 8px 18px;
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .about-glass-card, .contact-card, .contact-form-card {
    padding: 18px 10px;
    border-radius: 10px;
  }
  .about-profile-img-glow img {
    width: 120px;
    height: 120px;
  }
  .skills-categories {
    gap: 12px;
  }
  .skill-category {
    margin-bottom: 18px;
  }
  .project-img {
    max-height: 120px;
    object-fit: cover;
  }
  .enhanced-card {
    margin-bottom: 18px;
    padding: 10px;
  }
  .timeline-item {
    margin-bottom: 18px;
    padding: 10px 0;
  }
  .stat-card {
    margin-bottom: 12px;
    padding: 10px 0;
  }
  .blog-card {
    padding: 10px 6px;
    margin-bottom: 16px;
  }
  .testimonial {
    padding: 10px 6px;
    margin-bottom: 12px;
  }
  .contact-title, .contact-desc {
    font-size: 1rem;
  }
  .contact-social-links {
    margin-bottom: 10px;
  }
  .footer-links {
    flex-direction: column;
    gap: 4px;
  }
  .back-to-top {
    bottom: 16px;
    right: 16px;
    padding: 8px 12px;
    font-size: 1.2rem;
  }
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 3, 100, 0.1) 0%, transparent 50%);
  animation: backgroundFloat 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes backgroundFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

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

.hero-roles {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
  position: relative;
}

.role-text {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role-text.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.badge-pill {
  background: rgba(0, 188, 212, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(0, 188, 212, 0.2);
  transition: var(--transition);
}

.badge-pill:hover {
  background: rgba(0, 188, 212, 0.2);
  transform: translateY(-2px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-img-float {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

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

.hero-img-glow-lg {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 60px rgba(0, 188, 212, 0.4),
              0 0 120px rgba(0, 188, 212, 0.2);
  transition: var(--transition);
}

.hero-img-glow-lg:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px rgba(0, 188, 212, 0.6),
              0 0 160px rgba(0, 188, 212, 0.3);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 2;
}

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

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(0, 188, 212, 0.3);
  color: white;
}

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

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
#about {
  background: var(--card-bg);
}

.about-glass-card {
  background: rgba(26, 31, 46, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 3rem;
  border: 1px solid rgba(0, 188, 212, 0.2);
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
}

.about-glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 188, 212, 0.1), transparent);
  animation: rotate 20s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.about-profile-img-glow img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.3);
  transition: var(--transition);
}

.about-mission {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-badges-animated {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.about-badge {
  background: rgba(0, 188, 212, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(0, 188, 212, 0.3);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.about-badge:nth-child(1) { animation-delay: 0.1s; }
.about-badge:nth-child(2) { animation-delay: 0.2s; }
.about-badge:nth-child(3) { animation-delay: 0.3s; }
.about-badge:nth-child(4) { animation-delay: 0.4s; }

.about-badge:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.about-list i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.1rem;
}

.about-signature {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--secondary-color);
  text-align: right;
  margin-top: 2rem;
}

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

/* ===== SKILLS SECTION ===== */
#skills {
  background: var(--dark-bg);
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-secondary);
  border: 1px solid rgba(0, 188, 212, 0.1);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-primary);
  border-color: rgba(0, 188, 212, 0.3);
}

.category-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.category-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 0.5rem auto;
  border-radius: 2px;
}

.skill-item {
  margin-bottom: 1.5rem;
}

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

.skill-info i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--primary-color);
}

.skill-name {
  flex: 1;
  color: var(--text-primary);
  font-weight: 600;
}

.skill-percentage {
  color: var(--primary-color);
  font-weight: 700;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  width: 0;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== PROJECTS SECTION ===== */
#projects {
  background: var(--card-bg);
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.enhanced-card {
  background: var(--dark-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 188, 212, 0.1);
  position: relative;
}

.enhanced-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-primary);
  border-color: rgba(0, 188, 212, 0.3);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 188, 212, 0.9);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  background: rgba(0, 188, 212, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.btn-github,
.btn-live {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.btn-github:hover {
  background: var(--text-muted);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.btn-live {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

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

/* ===== EXPERIENCE SECTION ===== */
#experience {
  background: var(--dark-bg);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-primary);
  z-index: 2;
  margin: 0 2rem;
}

.timeline-content {
  flex: 1;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-secondary);
  border: 1px solid rgba(0, 188, 212, 0.1);
  max-width: 400px;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
  border-color: rgba(0, 188, 212, 0.3);
}

.timeline-date {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content h4 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Stats Section: Glassmorphism & Blending --- */
#statistics {
  position: relative;
  background: linear-gradient(120deg, rgba(0,188,212,0.10) 0%, rgba(34,40,49,0.18) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 32px;
  box-shadow: 0 8px 32px 0 rgba(0,188,212,0.10);
  margin-bottom: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.stats-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 32px 0 rgba(0,188,212,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #00bcd4 #23272f;
}

.stats-container::-webkit-scrollbar {
  height: 8px;
  background: #23272f;
}
.stats-container::-webkit-scrollbar-thumb {
  background: #00bcd4;
  border-radius: 4px;
}

.stat-card {
  min-width: 210px;
  max-width: 240px;
  flex: 1 1 210px;
  background: linear-gradient(120deg, rgba(0,188,212,0.18) 0%, rgba(34,40,49,0.22) 100%);
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(0,188,212,0.10);
  padding: 2.2rem 1.2rem 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
  border: 1.5px solid rgba(0,188,212,0.13);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(0,188,212,0.18);
}

.stat-card i {
  font-size: 2.5rem;
  color: #00bcd4;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 2px 8px #00bcd4aa);
  opacity: 0.92;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ff1744;
  text-shadow: 0 2px 12px #ff1744cc, 0 1px 0 #23272f;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.stat-label {
  font-size: 1.08rem;
  color: #e0f7fa;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.92;
  text-align: center;
  margin-top: 0.2rem;
  text-shadow: 0 1px 6px #23272f44;
}

@media (max-width: 991px) {
  .stats-container {
    gap: 1.2rem;
    padding: 1.5rem 0.5rem;
  }
  .stat-card {
    min-width: 170px;
    max-width: 200px;
    padding: 1.5rem 0.7rem 1.1rem 0.7rem;
  }
}

@media (max-width: 600px) {
  #statistics {
    padding-top: 36px;
    padding-bottom: 36px;
    border-radius: 18px;
  }
  .stats-container {
    gap: 0.7rem;
    padding: 1rem 0.2rem;
    border-radius: 1rem;
  }
  .stat-card {
    min-width: 140px;
    max-width: 160px;
    padding: 1rem 0.4rem 0.7rem 0.4rem;
    border-radius: 0.8rem;
  }
  .stat-card i {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
  }
  .stat-number {
    font-size: 1.3rem;
    color: #ff1744;
    text-shadow: 0 2px 8px #ff1744cc, 0 1px 0 #23272f;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
  }
  .stat-label {
    font-size: 0.92rem;
  }
}

/* ===== DISCORD COMMUNITY SECTION ===== */
#community {
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

#community::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(114, 137, 218, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.community-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(114, 137, 218, 0.05) 100%);
  border: 1px solid rgba(114, 137, 218, 0.2);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-primary);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.community-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(114, 137, 218, 0.2);
  border-color: rgba(114, 137, 218, 0.3);
}

.community-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7289da 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.community-title i {
  color: #7289da;
  -webkit-text-fill-color: #7289da;
}

.community-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 600;
}

.community-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(114, 137, 218, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(114, 137, 218, 0.2);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(114, 137, 218, 0.15);
  transform: translateX(5px);
}

.feature-item i {
  color: #7289da;
  font-size: 1.2rem;
  min-width: 20px;
}

.feature-item span {
  color: var(--text-primary);
  font-weight: 500;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(114, 137, 218, 0.3);
}

.btn-discord:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(114, 137, 218, 0.4);
}

.btn-discord::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-discord:hover::before {
  left: 100%;
}

.discord-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.discord-icon-large {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(114, 137, 218, 0.3);
  animation: float 3s ease-in-out infinite;
}

.discord-icon-large i {
  font-size: 3.5rem;
  color: white;
}

.member-count {
  text-align: center;
}

.count-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.count-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

/* Responsive adjustments for Discord section */
@media (max-width: 768px) {
  .community-card {
    padding: 2rem 1.5rem;
  }
  
  .community-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .community-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .discord-visual {
    margin-top: 2rem;
  }
  
  .discord-icon-large {
    width: 100px;
    height: 100px;
  }
  
  .discord-icon-large i {
    font-size: 2.5rem;
  }
  
  .count-number {
    font-size: 2.5rem;
  }
}

/* ===== BLOG SECTION ===== */
#blog {
  background: var(--dark-bg);
}

.blog-card {
  background: var(--card-bg) !important;
  border: 1px solid rgba(0, 188, 212, 0.1) !important;
  transition: var(--transition);
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-primary) !important;
  border-color: rgba(0, 188, 212, 0.3) !important;
}

.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .card-img-top {
  transform: scale(1.05);
}

.blog-card .card-title {
  color: var(--primary-color);
  font-weight: 700;
}

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

.blog-date {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 1rem;
}

/* Modern Read More Button for Blog */
.btn-gradient.read-more-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #00bcd4 0%, #ff0364 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,188,212,0.10);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  text-decoration: none;
  gap: 0.5rem;
}
.btn-gradient.read-more-btn:hover, .btn-gradient.read-more-btn:focus {
  background: linear-gradient(90deg, #ff0364 0%, #00bcd4 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,188,212,0.18);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

/* ===== TESTIMONIALS SECTION ===== */
#testimonials {
  background: var(--card-bg);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.testimonial {
  background: var(--dark-bg);
  padding: 3rem 2rem;
  border-radius: 30px;
  text-align: center;
  border: 1px solid rgba(0, 188, 212, 0.1);
  box-shadow: var(--shadow-secondary);
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
  display: none;
  position: relative;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--primary-color);
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  margin-top: 1.5rem;
}

.testimonial-author strong {
  color: var(--primary-color);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
}

.testimonial-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 188, 212, 0.4);
}

.testimonial-btn:active {
  transform: translateY(0) scale(1);
}

/* ===== CONTACT SECTION ===== */
#contact {
  background: var(--dark-bg);
}

.contact-card {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 3rem;
  border: 1px solid rgba(0, 188, 212, 0.2);
  box-shadow: var(--shadow-primary);
  height: 100%;
}

.contact-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.contact-social {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: var(--transition);
  text-decoration: none;
}

.contact-social:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-primary);
  color: white;
}

.contact-email {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 3rem;
  border: 1px solid rgba(0, 188, 212, 0.2);
  backdrop-filter: blur(20px);
  height: 100%;
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.contact-submit-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 1rem 2rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

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

.form-response {
  min-height: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.form-response.success { color: #4caf50; }
.form-response.error { color: #f44336; }
.form-response.info { color: var(--primary-color); }

/* ===== FOOTER ===== */
#footer {
  background: var(--darker-bg);
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 188, 212, 0.1);
  text-align: center;
}

#footer p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-primary);
}

.scroll-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 188, 212, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-roles {
    font-size: 1.5rem;
  }

  .hero-img-glow-lg {
    width: 200px;
    height: 200px;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    margin-left: 60px;
  }

  .timeline-icon {
    position: absolute;
    left: -90px;
    margin: 0;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .timeline-content {
    max-width: none;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card,
  .contact-form-card {
    padding: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }

  .testimonials-slider {
    padding: 1rem;
  }

  .testimonial {
    padding: 2rem 1rem;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }

  .testimonial-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-roles {
    font-size: 1.2rem;
  }

  .hero-img-glow-lg {
    width: 150px;
    height: 150px;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .about-glass-card,
  .contact-card,
  .contact-form-card {
    padding: 1.5rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges,
  .project-filters {
    justify-content: center;
  }

  .testimonials-slider {
    padding: 0.5rem;
  }

  .testimonial {
    padding: 1.5rem 1rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial::before {
    font-size: 3rem;
    top: -15px;
  }

  .blog-card {
    margin-bottom: 1.5rem;
  }

  .blog-card .card-img-top {
    height: 180px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

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

.bg-glass {
  background: rgba(26, 31, 46, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 188, 212, 0.2);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero-section *,
.about-glass-card *,
.skill-category *,
.enhanced-card *,
.timeline-item *,
.stat-card * {
  will-change: transform, opacity;
}

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

/* Focus states for better accessibility */
.btn:focus,
.form-control:focus,
.contact-social:focus,
.nav-link:focus,
.filter-btn:focus,
.btn-github:focus,
.btn-live:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #00e5ff;
    --secondary-color: #ff1744;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
  }
}

/* Dark mode is default, but adding explicit support */
@media (prefers-color-scheme: dark) {
  /* Already optimized for dark mode */
}

/* Print styles */
@media print {
  .navbar,
  .hero-scroll-indicator,
  .scroll-top-btn,
  .contact-form-card {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}