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

:root {
  --color-navy: #003D5C;
  --color-cream: #F5F5F0;
  --color-teal: #0A9396;
  --color-cyan: #00D9FF;
  --color-primary-start: #003D5C;
  --color-primary-mid: #056679;
  --color-primary-end: #0A9396;
  --color-healthcare: #00D9FF;
  --color-real-estate: #f59e0b;
  --color-education: #0A9396;
  --color-entertainment: #9f1239;
  --color-charcoal: #0f172a;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--color-navy);
  color: var(--color-cream);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, #F5F5F0, #00D9FF, #0A9396);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-light {
  background: linear-gradient(to right, #F5F5F0, #fff, #00D9FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo */
.nav-logo {
  width: 230px;
  transition: all 0.3s ease;
  padding-top: 15px;
}

.nav-scrolled .nav-logo {
  width: 145px;
  padding: 15px 0;
}

.footer-logo {
  width: 200px;
  margin-bottom: 20px;
}

/* Hero */
.hero-section {
  padding-top: 145px;
  padding-bottom: 100px;
}

/* Glassmorphism */
.glass {
  background: rgba(0, 61, 92, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 20, 30, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-strong {
  background: rgba(0, 61, 92, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-mid), var(--color-primary-end));
}

.gradient-navy-teal {
  background: linear-gradient(135deg, #003D5C, #0A9396);
}

.gradient-teal-cyan {
  background: linear-gradient(135deg, #0A9396, #00D9FF);
}

.gradient-healthcare {
  background: linear-gradient(135deg, #003D5C, #00D9FF);
}

.gradient-real-estate {
  background: linear-gradient(135deg, #003D5C, #f59e0b);
}

.gradient-education {
  background: linear-gradient(135deg, #003D5C, #0A9396);
}

.gradient-entertainment {
  background: linear-gradient(135deg, #003D5C, #9f1239);
}

/* Geometric Patterns */
.pattern-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 20px
  );
}

.pattern-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.pattern-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(10, 147, 150, 0.5); }
  50% { box-shadow: 0 0 40px rgba(10, 147, 150, 0.8); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes heroFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(40px) rotate(-180deg); }
}

@keyframes blobPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes blobPulse2 {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

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

@keyframes dotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}

@keyframes numberSpin {
  from { transform: scale(0) rotate(-180deg); }
  to { transform: scale(1) rotate(0deg); }
}

/* Animation Classes */
.animate-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  background-size: 1000px 100%;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Nav Animation */
.nav-animate {
  animation: slideDown 0.3s ease-out forwards;
}

/* Hero Animations */
.hero-word {
  opacity: 0;
  display: inline-block;
  animation: fadeInUp 0.3s ease-out forwards;
}

.hero-badge {
  opacity: 0;
  animation: scaleIn 0.3s ease-out forwards;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeInUp 0.3s ease-out forwards;
  animation-delay: 0.8s;
}

.hero-buttons {
  opacity: 0;
  animation: fadeInUp 0.3s ease-out forwards;
  animation-delay: 0.9s;
}

.hero-scroll-indicator {
  opacity: 0;
  animation: fadeInUp 0.3s ease-out forwards;
  animation-delay: 1.1s;
}

.hero-shape-1 {
  animation: heroFloat1 20s linear infinite;
}

.hero-shape-2 {
  animation: heroFloat2 25s linear infinite;
}

.hero-blob {
  animation: blobPulse 8s ease-in-out infinite;
}

.scroll-indicator-outer {
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator-dot {
  animation: dotBounce 2s ease-in-out infinite;
}

/* Scroll-triggered Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition-property: opacity, transform;
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
}

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

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-100px);
  transition-property: opacity, transform;
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
}

.scroll-animate-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(100px);
  transition-property: opacity, transform;
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
}

.scroll-animate-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition-property: opacity, transform;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}

.scroll-animate-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.scroll-animate-scale-rotate {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition-property: opacity, transform;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}

.scroll-animate-scale-rotate.in-view {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Animation Delays */
.anim-delay-1 { transition-delay: 0.05s; }
.anim-delay-2 { transition-delay: 0.1s; }
.anim-delay-3 { transition-delay: 0.15s; }
.anim-delay-4 { transition-delay: 0.2s; }
.anim-delay-5 { transition-delay: 0.25s; }
.anim-delay-6 { transition-delay: 0.3s; }
.anim-delay-7 { transition-delay: 0.35s; }
.anim-delay-8 { transition-delay: 0.4s; }
.anim-delay-9 { transition-delay: 0.45s; }
.anim-delay-10 { transition-delay: 0.5s; }

/* Shared Services icon wiggle */
.icon-wiggle {
  animation: iconWiggle 4s ease-in-out infinite;
}

/* Progress bar animation */
.progress-bar {
  width: 0;
  transition: width 0.5s ease-out;
}

.progress-bar.in-view {
  /* width set via inline style */
}

/* Mobile Menu */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(0, 61, 92, 0.9) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pillar-card {
  background: linear-gradient(135deg, #003D5C, #056679, #0A9396);
  border: 1px solid rgba(255,255,255,0.12);
}

.pillar-card:nth-child(1) {
  background: linear-gradient(135deg, #0A9396, #00D9FF);
}

.pillar-card:nth-child(2) {
  background: linear-gradient(135deg, #003D5C, #0A9396);
}

.pillar-card:nth-child(3) {
  background: linear-gradient(135deg, #003D5C, #056679, #0A9396);
}

.pillar-card:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 217, 255, 0.2);
}

.capability-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-hover:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 25px 50px -12px rgba(0, 217, 255, 0.1);
}

/* Shimmer on hover */
.shimmer-on-hover .shimmer-overlay {
  opacity: 0;
  transition: opacity 0.3s;
}

.shimmer-on-hover:hover .shimmer-overlay {
  opacity: 1;
}

/* Portfolio card background image hover */
.portfolio-card {
  background: linear-gradient(to bottom right, #003D5C, #134d59);
}

/* Arrow on hover */
.group:hover .group-arrow {
  transform: translateX(4px);
}

.group-arrow {
  transition: transform 0.3s ease;
}

/* Social icon hover */
.social-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover svg {
  color: var(--color-cyan);
}

/* Footer link hover */
.footer-link {
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-cyan);
  transform: translateX(4px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-notification {
  background: rgba(0, 61, 92, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 300px;
  max-width: 420px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification .toast-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.toast-notification .toast-desc {
  color: rgba(245, 245, 240, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Project card link overlay */
.project-card > a {
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: 1rem;
}

/* Project card progress bar hover */
.project-card .card-progress-bar {
  width: 0%;
  transition: width 0.4s ease;
}

.project-card:hover .card-progress-bar {
  width: 100%;
}

/* Active nav indicator */
.nav-link-active .nav-underline {
  width: 100% !important;
}

/* Parallax background */
.parallax-bg {
  transition: transform 0.3s ease-out;
}

/* Contact blob animations */
.contact-blob-1 {
  animation: blobPulse 8s ease-in-out infinite;
}

.contact-blob-2 {
  animation: blobPulse2 10s ease-in-out infinite 1s;
}

/* Connection line scale */
.connection-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease-out;
}

.connection-line.in-view {
  transform: scaleY(1);
}

/* Portfolio page header animation */
.portfolio-header {
  opacity: 0;
  animation: fadeInUp 0.3s ease-out forwards;
}

/* Stagger children in portfolio segments */
.stagger-container .stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition-property: opacity, transform;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}

.stagger-container.in-view .stagger-child {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container.in-view .stagger-child:nth-child(1) { transition-delay: 0s; }
.stagger-container.in-view .stagger-child:nth-child(2) { transition-delay: 0.1s; }
.stagger-container.in-view .stagger-child:nth-child(3) { transition-delay: 0.2s; }
.stagger-container.in-view .stagger-child:nth-child(4) { transition-delay: 0.3s; }
footer .leading-relaxed {
  font-size: 15px;
}