﻿:root {
  --primary-color: #708090;
  --secondary-color: #2F4F4F;
  --accent-color: #C0C0C0;
  --dark-color: #1C1C1C;
  --light-color: #F5F5F5;
  --gradient-primary: linear-gradient(135deg, #708090 0%, #2F4F4F 100%);
  --gradient-accent: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
  --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #708090 50%, #2a5298 75%, #1e3c72 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(192, 192, 192, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
  background: rgba(112, 128, 144, 0.15) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192, 192, 192, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(112, 128, 144, 0.25) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(192, 192, 192, 0.4);
}

.navbar-brand {
  font-weight: 800;
  font-size: 2rem;
  color: #FFFFFF !important;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  text-decoration: none !important;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.6);
}

.navbar-brand::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -10px;
  right: -10px;
  bottom: -5px;
  background: linear-gradient(45deg, rgba(112, 128, 144, 0.1), rgba(192, 192, 192, 0.1));
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.08);
  filter: brightness(1.4) contrast(1.5) drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
  background: linear-gradient(45deg, #FFFFFF, #F8F8FF, #E6E6FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand:hover::before {
  opacity: 1;
  transform: scale(1.1);
}

/* Animate gradient text */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 1.25rem !important;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

/* Snow Toggle Button */
/* .btn-snow-toggle { */
  /* background: rgba(255, 255, 255, 0.1); */
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  /* color: rgba(255, 255, 255, 0.9); */
  /* border-radius: 50%; */
  /* width: 45px; */
  /* height: 45px; */
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  /* transition: all 0.3s ease; */
  /* position: relative; */
  /* overflow: hidden; */
/* } */

/* .btn-snow-toggle:hover { */
  /* background: rgba(255, 255, 255, 0.2); */
  /* border-color: rgba(255, 255, 255, 0.4); */
  /* color: white; */
  /* transform: translateY(-2px); */
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); */
/* } */

/* .btn-snow-toggle:active { */
  /* transform: translateY(0); */
/* } */

/* .btn-snow-toggle.snow-active { */
  /* background: rgba(135, 206, 235, 0.3); */
  /* border-color: rgba(135, 206, 235, 0.5); */
  /* color: #87CEEB; */
  /* animation: snowGlow 2s ease-in-out infinite; */
/* } */

/* @keyframes snowGlow { */
  /* 0%, 100% { */
    /* box-shadow: 0 0 5px rgba(135, 206, 235, 0.3); */
  /* } */
  /* 50% { */
    /* box-shadow: 0 0 20px rgba(135, 206, 235, 0.6); */
  /* } */
/* } */

/* .btn-snow-toggle i { */
  /* font-size: 1.2rem; */
  /* transition: all 0.3s ease; */
/* } */

/* .btn-snow-toggle:hover i { */
  /* transform: rotate(180deg); */
/* } */

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 40px; /* Add padding for mobile */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="30" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></svg>');
  animation: float 20s ease-in-out infinite;
}

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

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

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideInUp 1s ease forwards 0.5s;
  color: #FFFFFF;
  letter-spacing: 2px;
}

.hero .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideInUp 1s ease forwards 0.7s;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  letter-spacing: 1px;
}

.typing-text {
  color: #F0F8FF;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(240, 248, 255, 0.6);
}

.btn-primary-custom {
  background: rgba(112, 128, 144, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 192, 192, 0.4);
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideInUp 1s ease forwards 0.9s;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50px;
  z-index: -1;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom:hover::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

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

/* Section styling */
.section {
  padding: 100px 0;
}

/* Equal height columns for cards */
.row.g-4 {
  display: flex;
  flex-wrap: wrap;
}

.row.g-4 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

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

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.section-title p {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

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

/* About section */
.about-image-container {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.about-image-container:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.about-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(112, 128, 144, 0.9) 0%, 
    rgba(192, 192, 192, 0.8) 25%,
    rgba(112, 128, 144, 0.9) 50%,
    rgba(192, 192, 192, 0.8) 75%,
    rgba(112, 128, 144, 0.9) 100%);
  background-size: 400% 400%;
  animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.placeholder-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.placeholder-icon {
  font-size: 8rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: iconFloat 3s ease-in-out infinite;
}

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

.placeholder-text h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.placeholder-text p {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
}

.about-img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

/* Skills section */
.skill-card {
  background: rgba(112, 128, 144, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 192, 192, 0.25);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  z-index: -1;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}

.skill-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  color: white;
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.skill-card h4 {
  color: #FFFFFF;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.skill-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Projects section */
.project-card {
  background: rgba(112, 128, 144, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 192, 192, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 20px;
  z-index: -1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}

.project-img {
  height: 200px;
  background: linear-gradient(135deg, rgba(112, 128, 144, 0.3), rgba(192, 192, 192, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 3rem;
  transition: all 0.3s ease;
}

.project-card:hover .project-img {
  background: linear-gradient(135deg, rgba(112, 128, 144, 0.5), rgba(192, 192, 192, 0.5));
  color: white;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content h4 {
  color: #FFFFFF;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.project-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tech-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.98);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Project buttons */
.project-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.btn-project-demo {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-project-demo:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(76, 175, 80, 0.4);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.btn-project-code {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-project-code:hover {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Contact section */
.contact {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #3b4a5c 100%);
  color: white;
}

.contact-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 20px;
  z-index: -1;
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  color: #F0F8FF;
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(240, 248, 255, 0.6));
}

.contact-card h4 {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Glass Form Elements */
.contact .form-control {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.contact .form-control:focus {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.98);
  outline: none;
}

.contact-form .btn-primary-custom {
  margin-top: 1rem;
  background: rgba(52, 73, 94, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
}

.contact-form .btn-primary-custom:hover {
  background: rgba(44, 62, 80, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(52, 73, 94, 0.4);
}

/* Section backgrounds for glassmorphism */
.section {
  position: relative;
}

.section.bg-light {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(112, 128, 144, 0.3) 0%, rgba(47, 79, 79, 0.3) 100%);
  z-index: 1;
}

.footer > * {
  position: relative;
  z-index: 2;
}

.footer h4 {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  margin: 0 1rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.social-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero .lead {
    font-size: 1.3rem;
  }
  
  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  /* Navigation */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  /* Bá» viá»n vÃ  background button menu trÃªn mobile/tablet */
  .nav-link {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .nav-link:hover {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Snow toggle button trÃªn mobile */
  /* .btn-snow-toggle { */
    /* width: 40px; */
    /* height: 40px; */
    /* margin-top: 10px; */
  /* } */
  
  /* .btn-snow-toggle i { */
    /* font-size: 1rem; */
  /* } */
  
  /* Hero Section */
  .hero {
    min-height: 100vh;
    padding: 60px 0 40px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  .hero .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-image i {
    font-size: 8rem !important;
  }
  
  /* Section titles */
  .section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  /* Cards */
  .skill-card,
  .project-card,
  .contact-card {
    margin-bottom: 2rem;
    min-height: auto; /* Reset min-height on mobile */
  }
  
  .skill-card {
    min-height: 250px; /* Smaller min-height for mobile */
  }
  
  /* About image spacing trÃªn mobile */
  .about-image-container {
    margin-bottom: 3rem; /* TÄƒng khoáº£ng cÃ¡ch dÆ°á»›i hÃ¬nh áº£nh */
  }
  
  .about-placeholder {
    margin-bottom: 3rem; /* TÄƒng khoáº£ng cÃ¡ch cho placeholder */
  }
  
  /* Project buttons responsive */
  .project-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-project-demo,
  .btn-project-code {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .contact-card {
    min-height: 180px; /* Smaller min-height for mobile */
  }
  
  .skill-icon {
    font-size: 2.5rem;
  }
  
  .project-img {
    height: 150px;
    font-size: 2rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0;
  }
  
  .social-links a {
    font-size: 1.3rem;
    margin: 0 0.5rem;
  }
}

/* Media query cho tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Bá» viá»n vÃ  background button menu trÃªn tablet */
  .nav-link {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .nav-link:hover {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* About image spacing trÃªn tablet */
  .about-image-container {
    margin-bottom: 2.5rem;
  }
  
  .about-placeholder {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  /* Hero Section */
  .hero {
    padding: 50px 0 30px;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .btn-primary-custom {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero-image i {
    font-size: 6rem !important;
  }
  
  /* Section titles */
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  /* Cards */
  .skill-card,
  .project-card {
    padding: 1.5rem;
  }
  
  .skill-icon {
    font-size: 2rem;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  /* Contact */
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-icon {
    font-size: 2rem;
  }
  
  /* Form */
  .form-control {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  /* Footer */
  .footer {
    padding: 1.5rem 0;
  }
  
  .footer h4 {
    font-size: 1.3rem;
  }
  
  .social-links a {
    font-size: 1.2rem;
    margin: 0 0.3rem;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .btn-primary-custom {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .skill-card,
  .project-card,
  .contact-card {
    padding: 1rem;
  }
}

/* Landscape orientation fix for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero .lead {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Visitor Counter Styles */
.visitor-counter {
  background: rgba(192, 192, 192, 0.15);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 192, 192, 0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.visitor-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  min-width: 100px;
}

.stat-item i {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-align: center;
}

.visitor-welcome {
  text-align: center;
  color: white;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-weight: 500;
}

.visitor-details {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.visitor-details i {
  margin-right: 4px;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .visitor-stats {
    gap: 1rem;
  }
  
  .stat-item {
    min-width: 70px;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .visitor-welcome {
    font-size: 0.9rem;
  }
  
  .visitor-details {
    font-size: 0.7rem;
  }
}

/* Visitor Info Modal Styles */
.modal-content {
  background: rgba(112, 128, 144, 0.15);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.95);
}

.modal-header {
  background: rgba(112, 128, 144, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 192, 192, 0.3);
  color: white;
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.modal-body {
  background: rgba(112, 128, 144, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.modal-title {
  font-weight: 600;
}

.btn-close {
  filter: brightness(0) invert(1);
}

.info-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  height: 100%;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-card h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.info-card ul li {
  margin-bottom: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #e9ecef;
}

.info-card ul li:last-child {
  border-bottom: none;
}

.info-card strong {
  color: var(--dark-color);
  display: inline-block;
  width: 120px;
}

#visitor-counter {
  transition: all 0.3s ease;
  cursor: pointer;
}

#visitor-counter:hover {
  transform: scale(1.05);
}

.visitor-counter.clickable {
  cursor: pointer !important;
  transition: all 0.3s ease;
}

.visitor-counter.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Loading spinner styling */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 1rem;
  }
  
  .info-card {
    margin-bottom: 1rem;
  }
  
  .info-card strong {
    width: 100px;
    font-size: 0.9rem;
  }
}

/* ===== HIá»†U á»¨NG BÃ”NG TUYáº¾T RÆ I ===== */

/* Container bÃ´ng tuyáº¿t */
/* .snow-container { */
  /* position: fixed; */
  /* top: 0; */
  /* left: 0; */
  /* width: 100%; */
  /* height: 100%; */
  /* pointer-events: none; */
  /* z-index: 1; */
  /* overflow: hidden; */
  /* transition: opacity 0.5s ease-in-out; */
/* } */

/* /* BÃ´ng tuyáº¿t cÆ¡ báº£n */ */
/* .snowflake { */
  /* position: absolute; */
  /* top: -10px; */
  /* color: rgba(255, 255, 255, 0.9); */
  /* font-size: 1rem; */
  /* animation-timing-function: linear; */
  /* animation-iteration-count: infinite; */
  /* animation-fill-mode: forwards; */
  /* user-select: none; */
/* } */

/* /* CÃ¡c kÃ­ch thÆ°á»›c bÃ´ng tuyáº¿t khÃ¡c nhau */ */
/* .snowflake.tiny { */
  /* font-size: 0.5rem; */
  /* opacity: 0.6; */
/* } */

/* .snowflake.small { */
  /* font-size: 0.8rem; */
  /* opacity: 0.7; */
/* } */

/* .snowflake.medium { */
  /* font-size: 1.1rem; */
  /* opacity: 0.8; */
/* } */

/* .snowflake.large { */
  /* font-size: 1.4rem; */
  /* opacity: 0.9; */
/* } */

/* .snowflake.xlarge { */
  /* font-size: 1.8rem; */
  /* opacity: 1; */
/* } */

/* /* Animation rÆ¡i vá»›i hiá»‡u á»©ng giÃ³ - Pattern 1: GiÃ³ nháº¹ */ */
/* @keyframes snowfall-wind-1 { */
  /* 0% { */
    /* transform: translateX(0) translateY(-10px) rotate(0deg); */
  /* } */
  /* 25% { */
    /* transform: translateX(5px) translateY(25vh) rotate(90deg); */
  /* } */
  /* 50% { */
    /* transform: translateX(-3px) translateY(50vh) rotate(180deg); */
  /* } */
  /* 75% { */
    /* transform: translateX(7px) translateY(75vh) rotate(270deg); */
  /* } */
  /* 100% { */
    /* transform: translateX(0) translateY(110vh) rotate(360deg); */
  /* } */
/* } */

/* /* Animation rÆ¡i vá»›i hiá»‡u á»©ng giÃ³ - Pattern 2: GiÃ³ trung bÃ¬nh */ */
/* @keyframes snowfall-wind-2 { */
  /* 0% { */
    /* transform: translateX(0) translateY(-10px) rotate(0deg); */
  /* } */
  /* 20% { */
    /* transform: translateX(-8px) translateY(20vh) rotate(72deg); */
  /* } */
  /* 40% { */
    /* transform: translateX(10px) translateY(40vh) rotate(144deg); */
  /* } */
  /* 60% { */
    /* transform: translateX(-5px) translateY(60vh) rotate(216deg); */
  /* } */
  /* 80% { */
    /* transform: translateX(12px) translateY(80vh) rotate(288deg); */
  /* } */
  /* 100% { */
    /* transform: translateX(-3px) translateY(110vh) rotate(360deg); */
  /* } */
/* } */

/* /* Animation rÆ¡i vá»›i hiá»‡u á»©ng giÃ³ - Pattern 3: GiÃ³ máº¡nh */ */
/* @keyframes snowfall-wind-3 { */
  /* 0% { */
    /* transform: translateX(0) translateY(-10px) rotate(0deg); */
  /* } */
  /* 30% { */
    /* transform: translateX(15px) translateY(30vh) rotate(108deg); */
  /* } */
  /* 60% { */
    /* transform: translateX(-12px) translateY(60vh) rotate(216deg); */
  /* } */
  /* 100% { */
    /* transform: translateX(8px) translateY(110vh) rotate(324deg); */
  /* } */
/* } */

/* /* Animation rÆ¡i vá»›i hiá»‡u á»©ng giÃ³ - Pattern 4: GiÃ³ xoÃ¡y */ */
/* @keyframes snowfall-wind-4 { */
  /* 0% { */
    /* transform: translateX(0) translateY(-10px) rotate(0deg); */
  /* } */
  /* 25% { */
    /* transform: translateX(-10px) translateY(25vh) rotate(90deg); */
  /* } */
  /* 50% { */
    /* transform: translateX(18px) translateY(50vh) rotate(180deg); */
  /* } */
  /* 75% { */
    /* transform: translateX(-15px) translateY(75vh) rotate(270deg); */
  /* } */
  /* 100% { */
    /* transform: translateX(5px) translateY(110vh) rotate(360deg); */
  /* } */
/* } */

/* /* Animation rÆ¡i vá»›i hiá»‡u á»©ng giÃ³ - Pattern 5: GiÃ³ dao Ä‘á»™ng */ */
/* @keyframes snowfall-wind-5 { */
  /* 0% { */
    /* transform: translateX(0) translateY(-10px) rotate(0deg); */
  /* } */
  /* 20% { */
    /* transform: translateX(12px) translateY(20vh) rotate(72deg); */
  /* } */
  /* 40% { */
    /* transform: translateX(-18px) translateY(40vh) rotate(144deg); */
  /* } */
  /* 60% { */
    /* transform: translateX(20px) translateY(60vh) rotate(216deg); */
  /* } */
  /* 80% { */
    /* transform: translateX(-8px) translateY(80vh) rotate(288deg); */
  /* } */
  /* 100% { */
    /* transform: translateX(3px) translateY(110vh) rotate(360deg); */
  /* } */
/* } */

/* /* Animation rÆ¡i tháº³ng - khÃ´ng cÃ³ giÃ³ */ */
/* @keyframes snowfall-straight { */
  /* 0% { */
    /* transform: translateX(0) translateY(-10px) rotate(0deg); */
  /* } */
  /* 100% { */
    /* transform: translateX(0) translateY(110vh) rotate(360deg); */
  /* } */
/* } */

/* /* GÃ¡n animation ngáº«u nhiÃªn cho bÃ´ng tuyáº¿t - Thá»i gian cháº­m Ä‘á»ƒ rÆ¡i nháº¹ nhÃ ng */ */
/* .snowflake:nth-child(7n+1) { */
  /* animation: snowfall-wind-1 8s linear infinite; */
/* } */
/* .snowflake:nth-child(7n+2) { */
  /* animation: snowfall-wind-2 10s linear infinite; */
/* } */
/* .snowflake:nth-child(7n+3) { */
  /* animation: snowfall-wind-3 7s linear infinite; */
/* } */
/* .snowflake:nth-child(7n+4) { */
  /* animation: snowfall-wind-4 9s linear infinite; */
/* } */
/* .snowflake:nth-child(7n+5) { */
  /* animation: snowfall-wind-5 6s linear infinite; */
/* } */
/* .snowflake:nth-child(7n+6) { */
  /* animation: snowfall-straight 12s linear infinite; */
/* } */
/* .snowflake:nth-child(7n) { */
  /* animation: snowfall-wind-1 5s linear infinite; */
/* } */

/* /* Hiá»‡u á»©ng phÃ¡t sÃ¡ng cho bÃ´ng tuyáº¿t */ */
/* .snowflake { */
  /* text-shadow: */
    /* 0 0 3px rgba(255, 255, 255, 0.8), */
    /* 0 0 6px rgba(255, 255, 255, 0.6), */
    /* 0 0 9px rgba(255, 255, 255, 0.4); */
  /* /* Äáº£m báº£o animation restart Ä‘Ãºng cÃ¡ch */ */
  /* animation-fill-mode: forwards; */
  /* animation-iteration-count: infinite; */
/* } */

/* /* Class Ä‘á»ƒ restart animation */ */
/* .snowflake.restart { */
  /* animation: none; */
/* } */

/* .snowflake.restart.active { */
  /* animation: inherit; */
/* } */

/* /* Hiá»‡u á»©ng fade out nháº¹ nhÃ ng khi bÃ´ng tuyáº¿t biáº¿n máº¥t */ */
/* .snowflake.fade-out { */
  /* animation: fadeOut 3s ease-out forwards; */
/* } */

/* @keyframes fadeOut { */
  /* 0% { */
    /* opacity: 1; */
    /* transform: scale(1); */
  /* } */
  /* 100% { */
    /* opacity: 0; */
    /* transform: scale(0.3); */
  /* } */
/* } */

/* /* Responsive cho mobile */ */
/* @media (max-width: 768px) { */
  /* .snowflake { */
    /* font-size: 0.8rem; */
  /* } */
  
  /* .snowflake.tiny { font-size: 0.4rem; } */
  /* .snowflake.small { font-size: 0.6rem; } */
  /* .snowflake.medium { font-size: 0.9rem; } */
  /* .snowflake.large { font-size: 1.1rem; } */
  /* .snowflake.xlarge { font-size: 1.3rem; } */
  
  /* /* Giáº£m cÆ°á»ng Ä‘á»™ giÃ³ trÃªn mobile */ */
  /* @keyframes snowfall-wind-1 { */
    /* 0% { transform: translateX(0) translateY(-10px) rotate(0deg); } */
    /* 50% { transform: translateX(5px) translateY(50vh) rotate(180deg); } */
    /* 100% { transform: translateX(0) translateY(100vh) rotate(360deg); } */
  /* } */
  
  /* @keyframes snowfall-wind-2 { */
    /* 0% { transform: translateX(0) translateY(-10px) rotate(0deg); } */
    /* 50% { transform: translateX(-5px) translateY(50vh) rotate(180deg); } */
    /* 100% { transform: translateX(0) translateY(100vh) rotate(360deg); } */
  /* } */
}
