/* CSS Variables for theming */
:root {
  /* Light mode colors */
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --background-color: #ffffff;
  --surface-color: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-family: Arial, sans-serif;
  --font-weight-bold: bold;
  --font-weight-normal: normal;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 15px;
}

/* Dark mode colors */
[data-theme="dark"] {
  --primary-color: #0d6efd;
  --secondary-color: #adb5bd;
  --background-color: #121212;
  --surface-color: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #adb5bd;
  --border-color: #404040;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--background-color) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="subtle-dots" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23007bff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23subtle-dots)"/></svg>');
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* Navigation */
.navbar {
  background-color: var(--background-color);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  padding: 0.05rem 0;
  min-height: 0;
  height: auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  height: 100%;
}

.navbar-brand img {
  width: 230px;
  max-height: 130px;
  height: auto;
  background: none !important;
  display: block;
  transition: all 0.3s ease;
}

/* Logo visibility based on theme */
[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

[data-theme="light"] .logo-light {
  display: block;
}

[data-theme="light"] .logo-dark {
  display: none;
}

/* Buttons */
.btn {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary {
  color: var(--text-secondary);
  border-color: var(--border-color);
  background-color: transparent;
}

.btn-outline-secondary:hover {
  background-color: var(--surface-color);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Sections */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 90%, rgba(0, 123, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(0, 123, 255, 0.02) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

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

.bg-light {
  background: linear-gradient(135deg, var(--surface-color) 0%, rgba(248, 249, 250, 0.8) 100%) !important;
}

.bg-light::before {
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.03) 0%, transparent 50%);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--background-color) 0%,
    var(--surface-color) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.hero-section::after {
  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"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23007bff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.6;
  z-index: 0;
  animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
  }
  75% {
    transform: translateY(-15px) rotate(0.5deg);
  }
}

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

/* Hero Icons */
.hero-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  z-index: 0;
  opacity: 0.7;
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(0%) contrast(100%);
}

/* Dark mode - white icons */
[data-theme="dark"] .hero-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Light mode - black icons */
[data-theme="light"] .hero-icon {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(0%) contrast(100%);
}

.hero-icon.cloud {
  top: 8%;
  left: 3%;
  animation: float 6s ease-in-out infinite;
}

.hero-icon.phone {
  top: 12%;
  right: 5%;
  animation: float 8s ease-in-out infinite 1s;
}

.hero-icon.rocket {
  bottom: 8%;
  left: 3%;
  animation: float 7s ease-in-out infinite 2s;
}

.hero-icon.building {
  bottom: 12%;
  right: 5%;
  animation: float 9s ease-in-out infinite 0.5s;
}

.hero-icon.laptop {
  top: 80%;
  left: 5%;
  animation: float 5s ease-in-out infinite 1.5s;
}

/* Additional scattered icons */
.hero-icon.cloud-2 {
  top: 90%;
  left: 25%;
  animation: float 7.5s ease-in-out infinite 0.8s;
}

.hero-icon.phone-2 {
  top: 20%;
  right: 35%;
  animation: float 6.5s ease-in-out infinite 1.2s;
}

.hero-icon.rocket-2 {
  top: 70%;
  right: 8%;
  animation: float 8.5s ease-in-out infinite 0.3s;
}

.hero-icon.building-2 {
  bottom: 80%;
  left: 35%;
  animation: float 7s ease-in-out infinite 1.7s;
}

.hero-icon.laptop-2 {
  top: 20%;
  left: 50%;
  animation: float 6.8s ease-in-out infinite 0.6s;
}

.hero-icon.cloud-3 {
  bottom: 30%;
  right: 30%;
  animation: float 8.2s ease-in-out infinite 1.4s;
}

.hero-icon.phone-3 {
  top: 60%;
  left: 90%;
  animation: float 7.3s ease-in-out infinite 0.9s;
}

.hero-icon.rocket-3 {
  top: 30%;
  right: 45%;
  animation: float 6.7s ease-in-out infinite 1.1s;
}

.hero-icon.building-3 {
  top: 88%;
  right: 25%;
  animation: float 8.8s ease-in-out infinite 0.4s;
}

.hero-icon.laptop-3 {
  bottom: 60%;
  left: 90%;
  animation: float 7.1s ease-in-out infinite 1.6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
  75% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* Responsive adjustments for hero icons */
@media (max-width: 768px) {
  .hero-icon {
    width: 30px;
    height: 30px;
  }

  /* TOP HALF - First 8 icons (0-40% of screen height) */
  .hero-icon.cloud {
    top: 5%;
    left: 2%;
  }

  .hero-icon.phone {
    top: 8%;
    right: 3%;
  }

  .hero-icon.rocket {
    top: 12%;
    left: 15%;
  }

  .hero-icon.building {
    top: 15%;
    right: 20%;
  }

  .hero-icon.laptop {
    top: 18%;
    left: 8%;
  }

  .hero-icon.cloud-2 {
    top: 22%;
    right: 8%;
  }

  .hero-icon.phone-2 {
    top: 25%;
    left: 25%;
  }

  /* BOTTOM HALF - Last 8 icons (60-95% of screen height) */
  .hero-icon.building-2 {
    bottom: 5%;
    left: 3%;
  }

  .hero-icon.laptop-2 {
    bottom: 8%;
    right: 5%;
  }

  .hero-icon.cloud-3 {
    bottom: 12%;
    left: 20%;
  }

  .hero-icon.phone-3 {
    bottom: 15%;
    right: 15%;
  }

  .hero-icon.rocket-3 {
    bottom: 18%;
    left: 8%;
  }

  .hero-icon.building-3 {
    bottom: 22%;
    right: 25%;
  }

  .hero-icon.laptop-3 {
    bottom: 25%;
    left: 15%;
  }

  .hero-icon.rocket-2 {
    bottom: 28%;
    right: 10%;
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-cta {
  margin-top: 2rem;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

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

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.expertise-grid .expertise-card:nth-child(1) {
  grid-column: 1 / 4;
}

.expertise-grid .expertise-card:nth-child(2) {
  grid-column: 4 / 7;
}

.expertise-grid .expertise-card:nth-child(3) {
  grid-column: 1 / 3;
}

.expertise-grid .expertise-card:nth-child(4) {
  grid-column: 3 / 5;
}

.expertise-grid .expertise-card:nth-child(5) {
  grid-column: 5 / 7;
}

.expertise-grid .expertise-card:nth-child(6) {
  grid-column: 1 / 4;
}

.expertise-grid .expertise-card:nth-child(7) {
  grid-column: 4 / 7;
}

/* Banner-style card for On-site Support */
.expertise-banner {
  grid-column: 1 / 4 !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
  border: none;
}

.expertise-banner .expertise-icon {
  color: white;
}

.expertise-banner h3 {
  color: white;
}

.expertise-banner p {
  color: rgba(255, 255, 255, 0.9);
}

.expertise-banner::before {
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.7));
}

.expertise-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  border-color: transparent;
}

.expertise-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #0056b3);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-color);
}

.expertise-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.expertise-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
}

.expertise-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Legacy expertise tags (keeping for backward compatibility) */
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.expertise-tag {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: var(--font-weight-bold);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: default;
}

.expertise-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

/* Certifications Grid */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.certification-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-color);
}

.certification-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.certification-card h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.certification-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Project Cards */
.project-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #0056b3);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-color);
}

.project-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.project-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Contact Form */
.contact-form-container {
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
}

.contact-form {
  margin-bottom: 2rem;
}

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

.form-control {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

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

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

.contact-email {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
}

.contact-email:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

.footer-email {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
}

.footer-email:hover {
  color: #0056b3;
  text-decoration: underline;
}

.footer-copyright {
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

/* Page load animations */
body {
  animation: fadeInPage 0.8s ease-out;
}

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

/* Enhanced button animations */
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Form field animations */
.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

/* Logo animation */
.navbar-brand img {
  transition: all 0.3s ease;
}

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

/* Dropdown animation */
.dropdown-menu {
  animation: slideDown 0.3s ease-out;
  transform-origin: top;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Contact form animation */
.contact-form-container {
  animation: slideUp 0.8s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

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

  .expertise-tags {
    flex-direction: column;
    align-items: center;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .expertise-grid .expertise-card:nth-child(1),
  .expertise-grid .expertise-card:nth-child(2),
  .expertise-grid .expertise-card:nth-child(3),
  .expertise-grid .expertise-card:nth-child(4),
  .expertise-grid .expertise-card:nth-child(5),
  .expertise-grid .expertise-card:nth-child(6),
  .expertise-grid .expertise-card:nth-child(7) {
    grid-column: 1;
  }

  /* Mobile banner styling */
  .expertise-banner {
    grid-column: 1 !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .navbar-brand img {
    width: 180px;
    max-height: 110px;
    height: auto;
  }

  /* Header buttons mobile layout */
  .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar-nav .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  #languageDropdown {
    min-width: auto;
  }

  #languageDropdown .dropdown-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  #themeToggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .contact-form-container {
    padding: 1.5rem 1rem;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Slide in animations */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale animations */
.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animations for grids */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item:nth-child(1) {
  transition-delay: 0.1s;
}
.stagger-item:nth-child(2) {
  transition-delay: 0.2s;
}
.stagger-item:nth-child(3) {
  transition-delay: 0.3s;
}
.stagger-item:nth-child(4) {
  transition-delay: 0.4s;
}
.stagger-item:nth-child(5) {
  transition-delay: 0.5s;
}

/* Button hover animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::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 ease;
}

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

/* Card hover animations */
.expertise-card,
.certification-card,
.project-card {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.expertise-card:hover,
.certification-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Icon animations */
.expertise-icon,
.project-icon {
  transition: all 0.3s ease;
}

.expertise-card:hover .expertise-icon,
.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Loading animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Navbar scroll animation */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(var(--background-color-rgb), 0.95) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Text reveal animation */
.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile-specific animations */
@media (max-width: 768px) {
  .slide-in-left,
  .slide-in-right {
    transform: translateY(30px);
  }

  .slide-in-left.visible,
  .slide-in-right.visible {
    transform: translateY(0);
  }

  .stagger-item {
    transition-delay: 0.1s !important;
  }

  .expertise-card:hover,
  .certification-card:hover,
  .project-card:hover {
    transform: translateY(-5px);
  }
}

/* Success/Error messages */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

[data-theme="dark"] .alert-success {
  background-color: #0f5132;
  color: #d1e7dd;
}

[data-theme="dark"] .alert-danger {
  background-color: #58151c;
  color: #f8d7da;
}

/* References Section */
.references-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.references-scroll-content {
  display: flex;
  gap: 2rem;
  animation: scroll-references 60s linear infinite;
  width: max-content;
}

.references-scroll-content:hover {
  animation-play-state: paused;
}

@keyframes scroll-references {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reference-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 350px;
  max-width: 400px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.reference-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-color);
}

.reference-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.reference-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.reference-info h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.reference-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

.reference-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.reference-text p {
  padding-left: 1.5rem;
  margin: 0;
  position: relative;
}

.reference-text p::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -0.30;
  left: -0.05rem;
  opacity: 0.35;
  line-height: 1;
}

/* Mobile responsive for references */
@media (max-width: 768px) {
  .references-scroll-container {
    padding: 1rem 0;
  }

  .reference-card {
    min-width: 280px;
    max-width: 320px;
    padding: 1.25rem;
  }

  .reference-header {
    gap: 0.75rem;
  }

  .reference-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .reference-info h4 {
    font-size: 1rem;
  }

  .reference-info p {
    font-size: 0.85rem;
  }

  .reference-text {
    font-size: 0.9rem;
  }

  .references-scroll-content {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .reference-card {
    min-width: 250px;
    max-width: 280px;
    padding: 1rem;
  }

  .reference-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .reference-info h4 {
    font-size: 0.95rem;
  }

  .reference-info p {
    font-size: 0.8rem;
  }

  .reference-text {
    font-size: 0.85rem;
  }
}
