@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-color: #2f99cfff;
  --secondary-color: #6c757d;
  --light-color: #f8f9fa;
  --dark-color: hsl(210, 10%, 23%);
  --font-family: "Bricolage Grotesque", sans-serif;
  --font-family-secondary: "Public Sans", sans-serif;
  --text-color: black;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2f99cf 0%, #1e7ba8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.loading-logo img {
  width: 80px;
  height: 80px;
  filter: brightness(0) invert(1);
}

.loading-text {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.loading-text span {
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
}

.loading-text span:nth-child(1) {
  animation-delay: 0s;
}

.loading-text span:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-text span:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-text span:nth-child(4) {
  animation-delay: 0.3s;
}

.loading-text span:nth-child(5) {
  animation-delay: 0.4s;
}

.loading-text span:nth-child(6) {
  animation-delay: 0.5s;
}

.loading-text span:nth-child(7) {
  animation-delay: 0.6s;
}

.loading-text span:nth-child(8) {
  animation-delay: 0.7s;
}

.loading-text span:nth-child(9) {
  animation-delay: 0.8s;
}

.loading-text span:nth-child(10) {
  animation-delay: 0.9s;
}

.loading-text span:nth-child(11) {
  animation-delay: 1s;
}

.loading-text span:nth-child(12) {
  animation-delay: 1.1s;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: loadingProgress 3s ease-in-out;
}

/* Cursor Follower */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background: rgba(47, 153, 207, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

@media (hover: hover) {
  .cursor-follower.active {
    transform: scale(2);
    background: rgba(47, 153, 207, 0.5);
  }
}

/* Animations */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes wave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

section {
  min-height: 100vh;
  padding-top: 70px;
}

/* Navbar Enhanced */
.navigation-header {
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navigation-header.scrolled {
  background: rgba(47, 153, 207, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

a {
  text-decoration: none;
}

.nav-wrapper {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-icon:hover {
  transform: skew(-15deg) scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-left: 0.5rem;
}

.primary-nav {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 1.0rem;
  border-radius: 7px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-link span {
  position: relative;
  z-index: 2;
}

.nav-link::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;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link.current-page {
  background: white;
  color: var(--text-color);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link.current-page:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-icon {
  width: 25px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

.mobile-toggle.active .hamburger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.mobile-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-toggle.active .hamburger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Sidebar Styles Enhanced */
@media (max-width: 768px) {
  .nav-wrapper {
    padding: 1rem;
  }

  .mobile-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .primary-nav.sidebar-open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    margin: 0.5rem 0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .primary-nav.sidebar-open .nav-link {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: white;
    border-radius: 2px;
    transition: height 0.3s ease;
  }

  .nav-link:hover::after,
  .nav-link.current-page::after {
    height: 60%;
  }

  .nav-link.current-page {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
  }

  .logo-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    padding: 0.75rem;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .primary-nav {
    width: 100%;
    right: -100%;
  }

  .nav-link {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
  overflow: hidden;
}

/* Animation for sidebar items */
.primary-nav.sidebar-open .nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.primary-nav.sidebar-open .nav-link:nth-child(2) {
  transition-delay: 0.15s;
}

.primary-nav.sidebar-open .nav-link:nth-child(3) {
  transition-delay: 0.2s;
}

.primary-nav.sidebar-open .nav-link:nth-child(4) {
  transition-delay: 0.25s;
}

header {
  background-color: #2f99cf;
  color: white;
  opacity: 0.9;
}

/* Home Section Enhanced */
#home {
  background-repeat: no-repeat;
  background-image: url("/placeholder.svg?height=1080&width=1920");
  background-size: cover;
  background-position: center top;
  background-color: var(--primary-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Code-Themed Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Animated Code Snippets */
.floating-code {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatCode 8s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.code-line {
  margin: 2px 0;
  opacity: 0;
  animation: typeIn 0.5s ease forwards;
}

.code-line:nth-child(1) {
  animation-delay: 0.5s;
}

.code-line:nth-child(2) {
  animation-delay: 1s;
}

.code-line:nth-child(3) {
  animation-delay: 1.5s;
}

.keyword {
  color: #ff6b6b;
  font-weight: bold;
}

.function-name {
  color: #4ecdc4;
}

.string {
  color: #45b7d1;
}

.bracket {
  color: #96ceb4;
}

.semicolon {
  color: #ffeaa7;
}

/* Binary Data Stream */
.floating-binary {
  position: absolute;
  animation: floatBinary 6s ease-in-out infinite;
}

.binary-digits {
  display: flex;
  gap: 4px;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
}

.binary-digits span {
  color: rgba(255, 255, 255, 0.7);
  animation: binaryFlicker 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.binary-digits span:nth-child(odd) {
  animation-delay: 0.5s;
}

/* Floating Symbols */
.floating-symbol {
  position: absolute;
  animation: floatSymbol 7s ease-in-out infinite;
}

.symbol {
  font-size: 32px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: symbolPulse 3s ease-in-out infinite;
}

/* Data Flow Lines */
.data-flow-container {
  position: absolute;
  animation: floatDataFlow 10s ease-in-out infinite;
}

.data-flow-svg {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.data-flow-path {
  stroke-dasharray: 5, 5;
  animation: dashMove 2s linear infinite;
}

/* Terminal Window */
.floating-terminal {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  width: 200px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatTerminal 9s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-close {
  background: #ff5f56;
}

.btn-minimize {
  background: #ffbd2e;
}

.btn-maximize {
  background: #27ca3f;
}

.terminal-body {
  padding: 12px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #00ff00;
}

.prompt {
  color: #4ecdc4;
}

.command {
  color: #ffffff;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #00ff00;
  animation: cursorBlink 1s infinite;
  margin-left: 4px;
}

/* API Endpoint */
.floating-api {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatAPI 7s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

.http-method {
  background: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 10px;
}

.endpoint-url {
  color: #4ecdc4;
  font-weight: bold;
}

.status-code {
  color: #28a745;
  font-weight: bold;
}

/* Git Commit */
.floating-git {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  backdrop-filter: blur(10px);
  border-left: 3px solid #f39c12;
  animation: floatGit 8s ease-in-out infinite;
  max-width: 180px;
}

.commit-hash {
  color: #f39c12;
  font-weight: bold;
  margin-bottom: 4px;
}

.commit-message {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

/* Database Schema */
.floating-db {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatDB 6s ease-in-out infinite;
}

.table-name {
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
}

.field {
  color: rgba(255, 255, 255, 0.8);
  margin: 2px 0;
  font-size: 10px;
}

.type {
  color: #3498db;
  font-weight: bold;
}

/* Keyframe Animations */
@keyframes floatCode {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) rotate(1deg);
  }

  50% {
    transform: translateY(-10px) rotate(-1deg);
  }

  75% {
    transform: translateY(-20px) rotate(0.5deg);
  }
}

@keyframes floatBinary {

  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }

  33% {
    transform: translateY(-20px) translateX(10px);
  }

  66% {
    transform: translateY(-5px) translateX(-5px);
  }
}

@keyframes floatSymbol {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-25px) scale(1.1);
  }
}

@keyframes floatDataFlow {

  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-15px);
    opacity: 1;
  }
}

@keyframes floatTerminal {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-12px) rotate(0.5deg);
  }

  75% {
    transform: translateY(-8px) rotate(-0.5deg);
  }
}

@keyframes floatAPI {

  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }

  50% {
    transform: translateY(-18px) translateX(8px);
  }
}

@keyframes floatGit {

  0%,
  100% {
    transform: translateY(0px);
  }

  33% {
    transform: translateY(-15px);
  }

  66% {
    transform: translateY(-5px);
  }
}

@keyframes floatDB {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes binaryFlicker {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  }
}

@keyframes symbolPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes dashMove {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 20;
  }
}

@keyframes cursorBlink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Responsive adjustments for floating elements */
@media (max-width: 768px) {

  .floating-code,
  .floating-terminal,
  .floating-api,
  .floating-git,
  .floating-db {
    transform: scale(0.8);
  }

  .floating-code {
    font-size: 10px;
  }

  .binary-digits {
    font-size: 14px;
  }

  .symbol {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .floating-elements {
    display: none;
    /* Hide on very small screens for performance */
  }
}

/* Performance optimizations */
.floating-elements * {
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .floating-elements * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.floating-element:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: 1s;
}

.hero-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title {
  color: white;
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-family);
  margin-bottom: 1rem;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  font-family: var(--font-family-secondary);
  margin-bottom: 2rem;
}

.hero-subtitle .line {
  display: block;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle .line:nth-child(1) {
  animation-delay: 1.2s;
}

.hero-subtitle .line:nth-child(2) {
  animation-delay: 1.4s;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.6s forwards;
}

.hero-cta a {
  background-color: white;
  color: #2f99cf;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1.2em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.hero-cta a span {
  position: relative;
  z-index: 2;
}

.button-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(47, 153, 207, 0.1), transparent);
  transition: left 0.5s ease;
}

.hero-cta a:hover .button-bg {
  left: 100%;
}

.hero-cta a:hover {
  background-color: #e6f4f9;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hero-image-container {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInRight 1s ease 0.8s forwards;
}

.hero-image {
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.05) rotate(2deg);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 6.5rem;
  }
}

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

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

/* Services Section Enhanced */
#services {
  margin-bottom: 20px;
  position: relative;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.title-word:nth-child(1) {
  transition-delay: 0.1s;
}

.title-word:nth-child(2) {
  transition-delay: 0.2s;
}

.section-title.animate .title-word {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a90e2, #357abd);
  border-radius: 2px;
  transition: transform 0.8s ease 0.3s;
}

.section-title.animate::after {
  transform: translateX(-50%) scaleX(1);
}

.services-grid {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.services-grid.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-item {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  background: #f1f1f1;
  border-radius: 25px;
  padding: 2rem 1.5rem;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(53, 122, 189, 0.9));
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a90e2, #357abd);
  border-radius: 2px 2px 0 0;
  transition: transform 0.4s ease;
}

.service-card:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.service-icon {
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
}

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

.service-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
  font-size: 1.25rem;
  color: #007bff;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #0056b3;
}

.service-card p {
  transition: transform 0.3s ease;
}

.service-card:hover p {
  transform: translateY(-5px);
}

/* Staggered animation for service items */
.service-item:nth-child(1) {
  transition-delay: 0.1s;
}

.service-item:nth-child(2) {
  transition-delay: 0.2s;
}

.service-item:nth-child(3) {
  transition-delay: 0.3s;
}

.service-item:nth-child(4) {
  transition-delay: 0.4s;
}

.service-item:nth-child(5) {
  transition-delay: 0.5s;
}

.service-item:nth-child(6) {
  transition-delay: 0.6s;
}

.service-item:nth-child(7) {
  transition-delay: 0.7s;
}

.service-item:nth-child(8) {
  transition-delay: 0.8s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.8rem;
  }
}

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

/* Contact Section Enhanced */
.contact-section {
  padding: 50px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-left {
  background: linear-gradient(135deg, #2b9ed8 0%, #1e7ba8 100%);
  color: white;
  padding: 40px;
  border-radius: 30px 0 0 30px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.contact-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact-left::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.contact-title {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 3.5rem;
}

.contact-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.contact-left.animate .contact-word:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.contact-left.animate .contact-word:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.contact-description {
  font-size: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.6s;
}

.contact-left.animate .contact-description {
  opacity: 1;
  transform: translateY(0);
}

.social-icons {
  margin-top: auto;
  display: flex;
  gap: 20px;
  font-size: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.8s;
}

.contact-left.animate .social-icons {
  opacity: 1;
  transform: translateY(0);
}

.social-link {
  color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.social-link:hover .social-tooltip {
  opacity: 1;
}

.contact-right {
  background: linear-gradient(135deg, #c4def5 0%, #a8cef0 100%);
  padding: 40px;
  border-radius: 0 30px 30px 0;
  flex: 1 1 400px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease 0.2s;
}

.contact-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact-form {
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.contact-right.animate .form-group {
  opacity: 1;
  transform: translateY(0);
}

.form-group:nth-child(1) {
  transition-delay: 0.3s;
}

.form-group:nth-child(2) {
  transition-delay: 0.4s;
}

.form-group:nth-child(3) {
  transition-delay: 0.5s;
}

.form-group:nth-child(4) {
  transition-delay: 0.6s;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
  border-radius: 25px;
  border: 2px solid transparent;
  padding: 12px 20px;
  width: 100%;
  background: white;
  transition: all 0.3s ease;
  font-size: 16px;
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2b9ed8;
  box-shadow: 0 0 0 3px rgba(43, 158, 216, 0.1);
  transform: translateY(-2px);
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2b9ed8, #1e7ba8);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.form-group input:focus+.input-line,
.form-group textarea:focus+.input-line {
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 15px 40px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.contact-right.animate .submit-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-bg {
  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;
}

.submit-btn:hover .btn-bg {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.3);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (max-width: 768px) {

  .contact-left,
  .contact-right {
    border-radius: 30px;
    margin-bottom: 20px;
  }

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

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Utility classes for enhanced interactions */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

/* Performance optimizations */
* {
  will-change: auto;
}

.service-card,
.nav-link,
.hero-cta a,
.submit-btn {
  will-change: transform;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .loading-screen {
    display: none;
  }
}