:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #64748b;
  --dark: #1e293b;
  --light: #f8fafc;
  /* Chỉ 2 màu chủ đạo: xanh dương gradient */
  --gradient-primary: linear-gradient(180deg, #4a90e2 0%, #87ceeb 50%, #b8e0f5 100%);
  --gradient-hero: linear-gradient(180deg, #2563eb 0%, #3b82f6 30%, #4a90e2 60%, #5ba3f0 100%);
  --gradient-secondary: linear-gradient(180deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  position: relative;
}

/* Text Selection */
::selection {
  background-color: var(--primary);
  color: white;
}

::-moz-selection {
  background-color: var(--primary);
  color: white;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

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

.nav-link {
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

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

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

.btn-primary {
  background: var(--gradient-hero);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #4a90e2 0%, #6ba8e0 30%, #8fc5e8 70%, #b8dff0 100%);
}

/* Hero Section with Pulsing Animation */
.hero {
  background: linear-gradient(180deg, #2563eb 0%, #3b82f6 30%, #4a90e2 60%, #5ba3f0 100%);
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  padding: 5rem 0 4rem;
  margin-top: 76px;
  width: 100%;
  max-width: 100%;
}

/* Pulsing/Blinking animation background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(126, 211, 33, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 166, 35, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(80, 227, 194, 0.3) 0%, transparent 50%);
  z-index: 1;
  opacity: 0.8;
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Animated background particles with pulse */
.hero .container::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: pulseFloat 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 25px;
  transform: rotate(45deg);
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.hero .container::before {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: rgba(255, 107, 53, 0.15);
  border-radius: 20px;
  transform: rotate(-30deg);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite reverse;
  z-index: 1;
  pointer-events: none;
}

.hero .container::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: rgba(80, 227, 194, 0.15);
  border-radius: 15px;
  transform: rotate(60deg);
  opacity: 0.15;
  animation: float 7s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* Pulsing glow animation */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Pulsing float animation */
@keyframes pulseFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 0.6;
  }
}

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

/* Decorative colorful shapes in hero */

.hero h1 {
  color: white;
  font-weight: 800;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: fadeInDown 1s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero h2 {
  animation: fadeInDown 1s ease-out 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero .row.g-3 > div {
  animation: fadeInUp 0.8s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero .row.g-3 > div:nth-child(1) {
  animation-delay: 0.6s;
}

.hero .row.g-3 > div:nth-child(2) {
  animation-delay: 0.7s;
}

.hero .row.g-3 > div:nth-child(3) {
  animation-delay: 0.8s;
}

.hero .row.g-3 > div:nth-child(4) {
  animation-delay: 0.9s;
}

.hero .row.g-3 > div:nth-child(5) {
  animation-delay: 1s;
}

.hero .row.g-3 > div:nth-child(6) {
  animation-delay: 1.1s;
}

.hero .row.g-3 i {
  animation: pulseIcon 2s ease-in-out infinite;
  animation-delay: 1.5s;
}

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

@keyframes pulseIcon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.avatar-container {
  position: relative;
  display: inline-block;
}

.avatar-container img {
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

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

/* Sections */
section {
  padding: 5rem 0;
}

section h2 {
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

section h2 {
  color: var(--primary-dark);
}

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

section h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--color-orange) 0%, 
    var(--color-green) 25%, 
    var(--color-yellow) 50%, 
    var(--color-cyan) 75%, 
    var(--color-orange) 100%);
  border-radius: 2px;
  opacity: 0.3;
  z-index: -1;
}

.bg-light {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%) !important;
  position: relative;
  overflow: hidden;
}

.bg-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(96, 165, 250, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Project Cards */
.project-card {
  overflow: hidden;
}

.project-image-wrapper {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(20%);
}

.project-card:hover .project-image {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.project-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.project-card:hover .project-image-wrapper {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

.project-card:hover .project-image-wrapper::after {
  opacity: 1;
}

.project-card .card-body {
  background: white;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-body {
  padding: 1.5rem;
}

.card-body i.fa-3x {
  transition: all 0.3s ease;
  display: inline-block;
}

.card:hover .card-body i.fa-3x {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary) !important;
}

.card-body i.text-primary {
  color: var(--primary) !important;
  opacity: 1;
}

.card-body i.text-warning {
  color: #f59e0b !important;
  opacity: 1;
}

.card-body i.text-info {
  color: #06b6d4 !important;
  opacity: 1;
}

.card-body i.text-success {
  color: #10b981 !important;
  opacity: 1;
}

.card-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  font-size: 1.25rem;
}

.card:hover .card-title {
  color: var(--primary);
}

#services .card-title {
  font-weight: 700;
  color: #1e293b;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--gradient-hero);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}

/* Skills */
.skill-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: var(--gradient-hero);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
}

/* Contact */
.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.contact-info i {
  color: var(--primary);
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.contact-info i:hover {
  color: var(--color-orange);
  transform: scale(1.2);
}

/* Footer */
footer {
  background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--color-orange) 0%, 
    var(--color-green) 25%, 
    var(--color-yellow) 50%, 
    var(--color-cyan) 75%, 
    var(--color-orange) 100%);
  opacity: 0.6;
}

footer a {
  color: #87ceeb;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--color-cyan);
  text-decoration: underline;
}

/* Footer Mobile - Simplified */
@media (max-width: 768px) {
  footer {
    padding: 1.5rem 0 !important;
  }
  
  footer .row.mb-3 {
    margin-bottom: 1rem !important;
  }
  
  /* Ẩn cột đầu (About) và cột giữa (Quick Links) */
  footer .col-lg-4:first-child,
  footer .col-lg-4:nth-child(2) {
    display: none !important;
  }
  
  /* Chỉ hiển thị cột Contact, nhưng đơn giản hóa */
  footer .col-lg-4:last-child {
    text-align: center;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  footer .col-lg-4:last-child h5 {
    display: none;
  }
  
  footer .col-lg-4:last-child p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  footer .col-lg-4:last-child p:first-child {
    display: none; /* Ẩn địa chỉ */
  }
  
  footer hr {
    margin: 0.75rem 0 !important;
  }
  
  footer .text-center p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Additional decorative elements */
section::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

section {
  position: relative;
}

section .container {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

/* Smooth transitions for all interactive elements */
a, button, .card, .skill-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced text readability */
.lead {
  color: rgba(30, 41, 59, 0.9);
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: 4rem 0 3rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero .container::before,
  .hero .container::after {
    display: none;
  }
  
  #contact .container::before,
  #contact .container::after {
    display: none;
  }
  
  /* Project images on mobile - height auto, width 100% */
  .project-image-wrapper {
    height: auto !important;
    min-height: 150px;
    padding: 0 !important;
  }
  
  .project-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
  }
}

/* Loading animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4a90e2 0%, #6ba8e0 50%, #8fc5e8 100%);
}

/* Selection color */
::selection {
  background: var(--color-cyan);
  color: white;
}

::-moz-selection {
  background: var(--color-cyan);
  color: white;
}

/* Print styles - Giữ nguyên màu sắc và responsive khi in/PDF */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
    -webkit-filter: none !important;
    filter: none !important;
  }
  
  html, body {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000 !important;
  }
  
  .hero {
    background: linear-gradient(180deg, #5ba3f0 0%, #7db8e8 30%, #a8d5f0 70%, #d4eaf7 100%) !important;
    background-color: #5ba3f0 !important;
    color: white !important;
    padding: 2rem 0 !important;
    margin-top: 0 !important;
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  
  .hero h1, .hero h2, .hero p {
    color: white !important;
  }
  
  .hero a {
    color: white !important;
  }
  
  .navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
  }
  
  .navbar-brand {
    color: #5ba3f0 !important;
  }
  
  .nav-link {
    color: #333 !important;
  }
  
  .btn-primary {
    background: linear-gradient(180deg, #5ba3f0 0%, #7db8e8 50%, #a8d5f0 100%) !important;
    background-color: #5ba3f0 !important;
    border: none !important;
    color: white !important;
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  
  .card {
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    page-break-inside: avoid;
  }
  
  .skill-badge {
    background: linear-gradient(180deg, #5ba3f0 0%, #7db8e8 50%, #a8d5f0 100%) !important;
    background-color: #5ba3f0 !important;
    color: white !important;
    border: none !important;
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  
  .bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  }
  
  .contact-info {
    background: white !important;
    border: 1px solid #ddd !important;
  }
  
  footer {
    background: #333 !important;
    color: white !important;
  }
  
  footer a {
    color: white !important;
  }
  
  /* Đảm bảo responsive khi in */
  .container {
    max-width: 100% !important;
    padding: 0 15px !important;
  }
  
  .row {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  
  .col-lg-4, .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .col-lg-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
  }
  
  .col-lg-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  /* Ẩn các phần không cần thiết khi in */
  .btn {
    display: none !important;
  }
  
  /* Đảm bảo text có thể đọc được */
  h1, h2, h3, h4, h5, h6 {
    color: #333 !important;
    page-break-after: avoid;
  }
  
  /* Thêm margin cho các section quan trọng */
  #vision {
    margin-bottom: 5rem !important;
    padding-bottom: 4rem !important;
  }
  
  #services {
    margin-bottom: 5rem !important;
    padding-bottom: 4rem !important;
  }
  
  #projects {
    margin-bottom: 3rem !important;
    padding-bottom: 2rem !important;
  }
  
  #contact {
    margin-bottom: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Thêm khoảng cách giữa các card */
  .card {
    margin-bottom: 3rem !important;
  }
  
  /* Đảm bảo section có khoảng cách đủ */
  section {
    margin-bottom: 4rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Thêm khoảng cách cho container */
  .container {
    margin-bottom: 2rem !important;
  }
  
  /* Thêm khoảng cách cho row */
  .row {
    margin-bottom: 2rem !important;
  }
  
  p {
    color: #666 !important;
  }
  
  /* Đảm bảo logo hiển thị */
  img, svg {
    max-width: 100% !important;
    height: auto !important;
  }
}



/* Contact Section Background */
#contact {
  background: var(--gradient-hero);
  color: white;
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(126, 211, 33, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 166, 35, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(80, 227, 194, 0.2) 0%, transparent 50%);
  z-index: 1;
  opacity: 0.7;
}

#contact .container {
  position: relative;
  z-index: 2;
}

#contact h2,
#contact h5,
#contact p,
#contact a {
  color: white !important;
}

#contact .contact-info {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

#contact .contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

#contact .contact-info:hover::before {
  transform: translateX(100%);
}

#contact .contact-info p {
  position: relative;
  z-index: 2;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

#contact .contact-info p:hover {
  transform: translateX(10px);
  color: #fff !important;
}

#contact .contact-info i {
  transition: all 0.3s ease;
}

#contact .contact-info p:hover i {
  transform: scale(1.2);
  color: #ffd700 !important;
}

/* Contact Divider */
.contact-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.divider-line {
  height: 2px;
  width: 100px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  border-radius: 1px;
}

.contact-divider i {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating colorful shapes for decoration */
#contact::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: var(--color-yellow);
  border-radius: 25px;
  transform: rotate(45deg);
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

#contact .container::before {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: var(--color-orange);
  border-radius: 20px;
  transform: rotate(-30deg);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite reverse;
  z-index: 1;
}

#contact .container::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: var(--color-cyan);
  border-radius: 15px;
  transform: rotate(60deg);
  opacity: 0.15;
  animation: float 7s ease-in-out infinite;
  z-index: 1;
}

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

/* Additional pulsing elements for hero - removed to avoid conflict */

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher .btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.language-switcher .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.language-switcher img {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-switcher .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.language-switcher .btn-outline-primary:hover {
  background: var(--gradient-hero);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.language-switcher .btn-outline-secondary {
  border-color: var(--secondary);
  color: var(--secondary);
}

.language-switcher .btn-outline-secondary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

/* Tech Stack Section */
#tech-stack {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 !important;
}

#tech-stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(126, 211, 33, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 166, 35, 0.02) 0%, transparent 40%);
  pointer-events: none;
}

.tech-category {
  position: relative;
  z-index: 1;
  margin-bottom: 3rem !important;
}

.tech-category h3 {
  color: var(--primary-dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem !important;
}

.tech-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 110px;
  height: 130px;
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tech-item:hover::before {
  transform: scaleX(1);
}

.tech-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.tech-item:nth-child(4n+1):hover {
  background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%);
}

.tech-item:nth-child(4n+2):hover {
  background: linear-gradient(135deg, #f2fff5 0%, #ffffff 100%);
}

.tech-item:nth-child(4n+3):hover {
  background: linear-gradient(135deg, #fffbf2 0%, #ffffff 100%);
}

.tech-item:nth-child(4n+4):hover {
  background: linear-gradient(135deg, #f2fffe 0%, #ffffff 100%);
}

.tech-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.tech-item:hover .tech-icon {
  transform: scale(1.15) rotate(5deg);
  filter: grayscale(0%);
}

.tech-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
  transition: color 0.3s ease;
}

.tech-item:hover span {
  color: var(--primary);
  font-weight: 600;
}

/* Responsive for Tech Stack */
@media (max-width: 768px) {
  .tech-item {
    min-width: 100px;
    height: 120px;
    padding: 1rem 0.75rem;
  }
  
  .tech-icon {
    width: 40px;
    height: 40px;
  }
  
  .tech-item span {
    font-size: 0.75rem;
  }
}

/* Contact Page Styles */
.contact-info-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-info-item h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.contact-info-item p {
  margin: 0;
  color: var(--secondary);
  line-height: 1.6;
}

.contact-info-item a {
  color: var(--primary);
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Testimonials Carousel */
#testimonialsCarousel {
  position: relative;
  padding: 0 3rem;
}

#testimonialsCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--gradient-hero);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-control-prev {
  left: -25px;
}

#testimonialsCarousel .carousel-control-next {
  right: -25px;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

#testimonialsCarousel .carousel-indicators {
  position: relative;
  margin-top: 2rem;
  margin-bottom: 0;
  justify-content: center;
  gap: 0.5rem;
}

#testimonialsCarousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  opacity: 0.4;
  transition: all 0.3s ease;
  border: none;
  margin: 0 3px;
  padding: 0;
}

#testimonialsCarousel .carousel-indicators button:hover {
  opacity: 0.7;
  transform: scale(1.2);
  background: var(--primary);
}

#testimonialsCarousel .carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

#testimonialsCarousel .card {
  animation: fadeInUp 0.6s ease-out;
}

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

@media (max-width: 768px) {
  #testimonialsCarousel {
    padding: 0 2.5rem;
  }
  
  #testimonialsCarousel .carousel-control-prev {
    left: -10px;
  }
  
  #testimonialsCarousel .carousel-control-next {
    right: -10px;
  }
  
  #testimonialsCarousel .carousel-control-prev,
  #testimonialsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #testimonialsCarousel .col-lg-4,
  #testimonialsCarousel .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  #testimonialsCarousel .row {
    display: flex;
    flex-wrap: nowrap;
  }
  
  #testimonialsCarousel .carousel-item {
    width: 100%;
  }
}