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

/* ===== DESIGN TOKENS ===== */
:root {
  --color-navy:       #1a2a5e;
  --color-blue:       #1e90ff;
  --color-teal:       #0099cc;
  --color-light-bg:   #f0f4ff;
  --color-white:      #ffffff;
  --color-text:       #2d2d2d;
  --color-text-muted: #666666;

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-card:  12px;
  --shadow-card:  0 4px 20px rgba(26, 42, 94, 0.10);
  --shadow-hover: 0 8px 32px rgba(26, 42, 94, 0.18);

  --transition:   0.3s ease;

  --container-max: 1200px;
  --section-pad:   80px 0;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== TYPOGRAPHY SCALE ===== */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

small {
  font-size: 0.875rem;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section {
  padding: var(--section-pad);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-align: center;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-teal);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-navy);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ===== FOCUS STYLES (accessibility) ===== */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(26, 42, 94, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  #navbar nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition), box-shadow var(--transition);
  }

  #navbar nav.nav-open {
    max-height: 400px;
    box-shadow: 0 8px 20px rgba(26, 42, 94, 0.1);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-light-bg);
  }
}

/* ===== BODY OFFSET FOR FIXED NAVBAR ===== */
body {
  padding-top: 70px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a2a5e 0%, #0099cc 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 42, 94, 0.6) 0%, rgba(0, 153, 204, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }

  .hero-ctas {
    justify-content: flex-start;
  }
}

/* ===== SERVICES ===== */
#services {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid rgba(26, 42, 94, 0.08);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-icon {
  color: var(--color-blue);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

/* ===== ABOUT ===== */
#about {
  background-color: var(--color-light-bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image img {
  border-radius: var(--radius-card);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, #1a2a5e22, #0099cc22);
  min-height: 300px;
  object-fit: cover;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-text .section-title::after {
  margin-left: 0;
}

.about-text > p {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.values-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  color: var(--color-blue);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.values-list strong {
  display: block;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.values-list p {
  font-size: 0.9rem;
  margin: 0;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
  background-color: var(--color-light-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

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

.why-icon {
  color: var(--color-blue);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.why-card h3 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

/* ===== STATS ===== */
.stats {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-blue);
}

.stat-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ===== PORTFOLIO ===== */
#portfolio {
  background-color: var(--color-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-navy);
  aspect-ratio: 3 / 2;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}

.portfolio-card:hover img,
.portfolio-card:focus-within img {
  transform: scale(1.05);
  opacity: 0.3;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--color-white);
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-card:focus-within .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ===== CONTACT ===== */
#contact {
  background-color: var(--color-light-bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr 1.4fr;
  }
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-info .section-title::after {
  margin-left: 0;
}

.contact-tagline {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-icon {
  color: var(--color-blue);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-details a {
  color: var(--color-blue);
  word-break: break-all;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Form */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(26, 42, 94, 0.2);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.field-error {
  display: block;
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

#submit-btn {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

#submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: #f0fff4;
  border: 1px solid #68d391;
  border-radius: 6px;
  color: #276749;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
#footer {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
  }
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-blue);
}

.footer-contact p,
.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-contact a:hover {
  color: var(--color-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE PASS ===== */

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}

/* Hero: ensure padding on very small screens */
@media (max-width: 480px) {
  .hero-content {
    padding: 0 0.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
}

/* Services: single column on mobile (auto-fit handles this, but ensure min is 100% on very small) */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer: stack on mobile */
@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Contact: ensure form doesn't overflow */
@media (max-width: 480px) {
  .contact-form-wrap {
    padding: 1.25rem;
  }
}

/* Navbar: ensure brand text doesn't overflow */
@media (max-width: 360px) {
  .brand span {
    font-size: 1rem;
  }
}

/* ===== KEYBOARD NAVIGATION FOCUS STYLES ===== */

/* Ensure portfolio cards are keyboard-focusable */
.portfolio-card {
  outline: none;
}

.portfolio-card:focus-within {
  box-shadow: 0 0 0 3px var(--color-blue);
}

/* Ensure service cards have visible focus when containing focused links */
.service-card:focus-within {
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.4);
}

/* Nav links active state */
.nav-links a:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Footer links */
.footer-links a:focus-visible,
.footer-contact a:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Form inputs */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none; /* handled by box-shadow in form CSS */
}

/* ===== HERO SLIDESHOW ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0f2e;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 8s ease;
  transform: scale(1.08);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,46,0.88) 0%, rgba(0,80,140,0.65) 60%, rgba(0,153,204,0.4) 100%);
  z-index: 1;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  padding: 2rem 1rem;
}

/* Hero badge */
.hero-badge {
  display: inline-block;
  background: rgba(30,144,255,0.2);
  border: 1px solid rgba(30,144,255,0.5);
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  animation: fadeInDown 0.8s ease both;
}

/* Typed text */
#typed-text {
  color: var(--color-white);
}

.typed-cursor {
  color: var(--color-blue);
  animation: blink 0.75s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  animation: fadeInUp 0.9s ease 0.3s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content > p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.9s ease 0.5s both;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.7s both;
}

/* Glow button */
.btn-glow {
  box-shadow: 0 0 20px rgba(30,144,255,0.5), 0 0 40px rgba(30,144,255,0.2);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(30,144,255,0.5), 0 0 40px rgba(30,144,255,0.2); }
  50% { box-shadow: 0 0 30px rgba(30,144,255,0.8), 0 0 60px rgba(30,144,255,0.4); }
}

/* Scroll hint */
.hero-scroll-hint {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s ease 1.2s both;
  opacity: 0.7;
}

.hero-scroll-hint span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* Slide dots */
.slide-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.dot.active {
  background: var(--color-blue);
  transform: scale(1.3);
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
  .hero-ctas { justify-content: flex-start; }
  .hero-content > p { margin-inline: 0; }
  .hero-scroll-hint { align-items: flex-start; }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.services-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(7) { transition-delay: 0.35s; }

.why-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.why-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.why-grid .reveal:nth-child(4) { transition-delay: 0.26s; }

.portfolio-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.portfolio-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.portfolio-grid .reveal:nth-child(3) { transition-delay: 0.25s; }

/* ===== ENHANCED SERVICE CARDS ===== */
.service-card {
  background: var(--color-white);
  border: 1px solid rgba(26,42,94,0.08);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(26,42,94,0.18);
  border-color: rgba(30,144,255,0.2);
}

/* ===== ENHANCED WHY CARDS ===== */
.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,144,255,0.05), rgba(0,153,204,0.05));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: var(--radius-card);
}

.why-card:hover::after { opacity: 1; }

.why-icon svg {
  transition: transform 0.35s ease, color 0.35s ease;
}

.why-card:hover .why-icon svg {
  transform: scale(1.2) rotate(-5deg);
  color: var(--color-teal);
}

/* ===== STATS SECTION ENHANCED ===== */
.stats {
  background: linear-gradient(135deg, #0a0f2e 0%, #1a2a5e 50%, #0d3b6e 100%);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e90ff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
  position: relative;
  z-index: 1;
}

.counter {
  background: linear-gradient(135deg, #fff, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ===== TECH BACKGROUND PATTERN FOR SECTIONS ===== */
#services {
  background-color: var(--color-white);
  position: relative;
}

#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(30,144,255,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,153,204,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== ABOUT SECTION ENHANCED ===== */
.about-image img {
  border-radius: var(--radius-card);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(26,42,94,0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 30px 80px rgba(26,42,94,0.3);
}

.about-image {
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(30,144,255,0.2);
  border-radius: calc(var(--radius-card) + 8px);
  z-index: -1;
  animation: border-pulse 3s ease-in-out infinite;
}

@keyframes border-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.01); }
}

/* ===== PORTFOLIO ENHANCED ===== */
.portfolio-card {
  cursor: pointer;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,46,0.9) 0%, rgba(10,15,46,0.3) 50%, transparent 100%);
  z-index: 1;
  transition: opacity 0.35s ease;
}

.portfolio-card:hover::after {
  opacity: 0;
}

.portfolio-overlay {
  z-index: 2;
}

/* ===== NAVBAR GLASSMORPHISM ON SCROLL ===== */
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(26,42,94,0.12);
}

/* ===== DIRECTOR SECTION ===== */
.director-section {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.director-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 50%, rgba(30,144,255,0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 90% 50%, rgba(0,153,204,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.director-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--color-white);
  border: 1px solid rgba(26,42,94,0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.director-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-blue), var(--color-teal));
}

@media (min-width: 768px) {
  .director-card {
    grid-template-columns: 240px 1fr;
    gap: 3rem;
  }
}

/* Photo */
.director-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.director-photo-wrap img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--color-blue);
  box-shadow: 0 8px 32px rgba(30,144,255,0.25);
  object-fit: cover;
}

.director-badge {
  background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Info */
.director-info h3 {
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.director-tagline {
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Tags */
.director-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--color-light-bg);
  color: var(--color-navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(26,42,94,0.1);
  transition: background var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

/* Bio */
.director-bio {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.97rem;
}

/* Qualifications */
.director-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.qual-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-light-bg);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  flex: 1;
  min-width: 160px;
}

.qual-icon {
  font-size: 1.4rem;
}

.qual-item strong {
  display: block;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.qual-item span {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ===== LEADERSHIP / TEAM SECTION ===== */
.director-section {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.director-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 50%, rgba(30,144,255,0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 90% 50%, rgba(0,153,204,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.director-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--color-white);
  border: 1px solid rgba(26,42,94,0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.director-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-blue), var(--color-teal));
}

@media (min-width: 768px) {
  .director-card {
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
  }
}

.director-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.director-photo-wrap img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--color-blue);
  box-shadow: 0 8px 32px rgba(30,144,255,0.25);
  object-fit: cover;
}

.director-badge {
  background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.director-info h3 {
  font-size: 1.6rem;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.director-tagline {
  color: var(--color-teal) !important;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.25rem !important;
}

.director-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  background: var(--color-light-bg);
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(26,42,94,0.1);
  transition: background var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.director-bio {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.director-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.qual-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-light-bg);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  flex: 1;
  min-width: 140px;
}

.qual-icon { font-size: 1.3rem; }

.qual-item strong {
  display: block;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.qual-item span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* ===== PORTFOLIO REDESIGN ===== */
.portfolio-section {
  background: #0a0f2e;
  position: relative;
  overflow: hidden;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(30,144,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0,153,204,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.portfolio-section .section-title {
  color: #fff;
}

.portfolio-section .section-title::after {
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
}

.section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

/* Filter buttons */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.pf-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pf-btn:hover,
.pf-btn.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(30,144,255,0.4);
}

/* Masonry grid */
.portfolio-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .portfolio-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Portfolio card */
.pf-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  cursor: pointer;
}

.pf-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pf-card.hidden {
  display: none;
}

/* Image wrap */
.pf-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.pf-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pf-card:hover .pf-img-wrap img {
  transform: scale(1.08);
}

/* Overlay */
.pf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,46,0.97) 0%, rgba(10,15,46,0.7) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.pf-cat-badge {
  display: inline-block;
  background: var(--color-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  width: fit-content;
}

.pf-overlay h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.pf-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* Tech stack pills */
.pf-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.pf-tech-stack span {
  background: rgba(30,144,255,0.2);
  border: 1px solid rgba(30,144,255,0.4);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Card footer */
.pf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pf-card-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.pf-card-footer p {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  margin: 0;
}

.pf-arrow {
  color: var(--color-blue);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.pf-card:hover .pf-arrow {
  transform: translateX(4px);
}

/* CTA */
.portfolio-cta {
  text-align: center;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.portfolio-cta p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
}

/* ===== PORTFOLIO VISIBILITY FIX ===== */
/* Ensure portfolio cards are always visible regardless of scroll observer */
.portfolio-section .reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.portfolio-section .pf-card {
  opacity: 1;
  transform: translateY(0);
}

/* Re-enable hover animation only */
.portfolio-section .pf-card:hover {
  transform: translateY(-8px) !important;
}

/* Force portfolio section elements visible */
.portfolio-section .section-title,
.portfolio-section .section-subtitle,
.portfolio-section .portfolio-filters,
.portfolio-section .portfolio-cta,
.portfolio-section .pf-card {
  opacity: 1 !important;
  transform: none !important;
}

.portfolio-section .pf-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

/* ===== TEAM SECTION VISIBILITY FIX ===== */
.director-section .reveal,
.director-section .director-card,
.team-section .reveal,
.team-section .team-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Team grid layout */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Team card new style */
.team-section {
  background: var(--color-light-bg);
}

.team-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(26,42,94,0.08);
}

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

.team-card-top {
  background: linear-gradient(135deg, #1a2a5e, #0099cc);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.team-avatar img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.team-role-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
}

.team-card-body {
  padding: 1.75rem;
}

.team-card-body h3 {
  color: var(--color-navy);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.team-role {
  color: var(--color-teal) !important;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 1rem !important;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.team-tags span {
  background: var(--color-light-bg);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(26,42,94,0.1);
}

.team-bio {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.team-quals {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.team-qual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-light-bg);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  flex: 1;
  min-width: 120px;
}

.team-qual span { font-size: 1.1rem; }
.team-qual strong { display: block; color: var(--color-navy); font-size: 0.9rem; }
.team-qual small { color: var(--color-text-muted); font-size: 0.72rem; }

.team-btn {
  width: 100%;
  text-align: center;
  display: block;
}

.team-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ===== FORCE TEAM/DIRECTOR CARDS VISIBLE ===== */
.director-section,
.director-section *,
.director-card,
.director-card *,
.team-grid,
.team-grid * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.director-card:hover {
  transform: translateY(-6px) !important;
}

/* Director section layout */
.director-section {
  background: var(--color-light-bg);
  padding: var(--section-pad);
}

.director-section .team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .director-section .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Director card styling */
.director-card {
  background: var(--color-white) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  border: 1px solid rgba(26,42,94,0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

.director-card:hover {
  box-shadow: var(--shadow-hover) !important;
}

.director-photo-wrap {
  background: linear-gradient(135deg, #1a2a5e, #0099cc);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.director-photo-wrap img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  border: 4px solid rgba(255,255,255,0.4) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
  object-fit: cover !important;
}

.director-badge {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.3rem 1.2rem !important;
  border-radius: 50px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

.director-info {
  padding: 1.75rem;
  flex: 1;
}

.director-info h3 {
  color: var(--color-navy) !important;
  font-size: 1.4rem !important;
  margin-bottom: 0.2rem !important;
}

.director-tagline {
  color: var(--color-teal) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  margin-bottom: 1rem !important;
}

.director-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  margin-bottom: 1rem !important;
}

.director-tags .tag {
  background: var(--color-light-bg) !important;
  color: var(--color-navy) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 50px !important;
  border: 1px solid rgba(26,42,94,0.1) !important;
}

.director-bio {
  color: var(--color-text-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.75 !important;
  margin-bottom: 1.25rem !important;
}

.director-quals {
  display: flex !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
  margin-bottom: 1.25rem !important;
}

.qual-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: var(--color-light-bg) !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.9rem !important;
  flex: 1 !important;
  min-width: 120px !important;
}

.qual-icon { font-size: 1.1rem; }
.qual-item strong { display: block; color: var(--color-navy); font-size: 0.9rem; }
.qual-item span:not(.qual-icon) { color: var(--color-text-muted); font-size: 0.72rem; }

/* ===== TEAM SECTION (FINAL) ===== */
.team-section {
  background: var(--color-light-bg);
  padding: var(--section-pad);
}

.team-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

.team-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(26,42,94,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.team-card-top {
  background: linear-gradient(135deg, #1a2a5e, #0099cc);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.abhishek-top {
  background: linear-gradient(135deg, #0a3d6b, #0099cc);
}

.team-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  object-fit: cover;
  object-position: top;
}

.team-role-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
}

.team-card-body {
  padding: 1.75rem;
}

.team-card-body h3 {
  color: var(--color-navy);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.team-role {
  color: var(--color-teal) !important;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 1rem !important;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.team-tags span {
  background: var(--color-light-bg);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(26,42,94,0.1);
}

.team-bio {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.team-quals {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.team-qual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-light-bg);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  flex: 1;
  min-width: 120px;
}

.team-qual span { font-size: 1.1rem; }
.team-qual strong { display: block; color: var(--color-navy); font-size: 0.9rem; }
.team-qual small { color: var(--color-text-muted); font-size: 0.72rem; }

.team-btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* ===== 3-COLUMN TEAM GRID ===== */
.team-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .team-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .team-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ===== GLOBAL SMOOTH & RESPONSIVE POLISH ===== */

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ===== TEAM SECTION RESPONSIVE & SMOOTH ===== */
.team-section {
  background: linear-gradient(160deg, #f0f4ff 0%, #e8f0fe 100%);
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.team-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,144,255,0.08), transparent 70%);
  pointer-events: none;
}

.team-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,153,204,0.08), transparent 70%);
  pointer-events: none;
}

.team-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .team-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .team-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Card smooth transitions */
.team-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,42,94,0.08);
  border: 1px solid rgba(26,42,94,0.06);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease;
  will-change: transform;
}

.team-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 60px rgba(26,42,94,0.16);
}

/* Avatar smooth zoom on hover */
.team-avatar {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: 120px;
  height: 120px;
}

.team-avatar img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  border: 4px solid rgba(255,255,255,0.5) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
  object-fit: cover !important;
  object-position: top center !important;
  transition: transform 0.5s ease !important;
}

.team-card:hover .team-avatar img {
  transform: scale(1.08);
}

/* Card top gradient */
.team-card-top {
  background: linear-gradient(135deg, #1a2a5e, #0099cc);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.team-card-top::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  background: var(--color-white);
  border-radius: 50%;
  opacity: 0.05;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.team-card:hover .team-card-top::after {
  transform: translateX(-50%) scale(6);
  opacity: 0.08;
}

/* Role badge */
.team-role-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.team-card:hover .team-role-badge {
  background: rgba(255,255,255,0.28);
}

/* Card body */
.team-card-body {
  padding: 1.5rem;
}

.team-card-body h3 {
  color: var(--color-navy);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.team-card:hover .team-card-body h3 {
  color: var(--color-blue);
}

.team-role {
  color: var(--color-teal) !important;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.9rem !important;
}

/* Tags smooth hover */
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.team-tags span {
  background: var(--color-light-bg);
  color: var(--color-navy);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  border: 1px solid rgba(26,42,94,0.08);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: default;
}

.team-tags span:hover {
  background: var(--color-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* Bio */
.team-bio {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Quals */
.team-quals {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.team-qual {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-light-bg);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  flex: 1;
  min-width: 110px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.team-qual:hover {
  background: rgba(30,144,255,0.08);
  transform: translateX(3px);
}

.team-qual span { font-size: 1rem; }
.team-qual strong { display: block; color: var(--color-navy); font-size: 0.85rem; }
.team-qual small { color: var(--color-text-muted); font-size: 0.7rem; }

/* CTA button */
.team-btn {
  width: 100%;
  text-align: center;
  display: block;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.team-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(30,144,255,0.35) !important;
}

/* ===== GLOBAL SECTION SMOOTH TRANSITIONS ===== */
section {
  transition: background 0.3s ease;
}

/* Service cards smooth */
.service-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease,
              border-color 0.3s ease !important;
}

/* Why cards smooth */
.why-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease !important;
}

/* Portfolio cards smooth */
.pf-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease !important;
}

/* Buttons global smooth */
.btn {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Nav links smooth */
.nav-links a {
  position: relative;
  transition: color 0.3s ease !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* Stats counter smooth */
.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
}

/* Footer links smooth */
.footer-links a {
  transition: color 0.3s ease, transform 0.3s ease !important;
  display: inline-block;
}

.footer-links a:hover {
  transform: translateX(4px);
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 640px) {
  .team-grid-3 {
    grid-template-columns: 1fr;
  }

  .team-card-body {
    padding: 1.25rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

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

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

  .contact-form-wrap {
    padding: 1.25rem;
  }

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

@media (max-width: 400px) {
  .team-quals {
    flex-direction: column;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

/* ===== PORTFOLIO BACKGROUND FIX ===== */
#portfolio.portfolio-section {
  background: #0a0f2e !important;
}

#portfolio .section-title {
  color: #ffffff !important;
}

#portfolio .section-subtitle {
  color: rgba(255,255,255,0.65) !important;
}

#portfolio .pf-card {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

#portfolio .pf-card-footer h4 {
  color: #ffffff !important;
}

#portfolio .pf-card-footer p {
  color: rgba(255,255,255,0.5) !important;
}

#portfolio .portfolio-cta p {
  color: rgba(255,255,255,0.65) !important;
}

/* ===== SERVICES SECTION REDESIGN ===== */
#services {
  background: linear-gradient(160deg, #f8faff 0%, #eef2ff 100%) !important;
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(30,144,255,0.07), transparent 70%);
  pointer-events: none;
}

#services::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0,153,204,0.07), transparent 70%);
  pointer-events: none;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

/* Base card */
.service-card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 2rem 1.75rem !important;
  box-shadow: 0 4px 24px rgba(26,42,94,0.07) !important;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275),
              box-shadow 0.4s ease !important;
  position: relative;
  overflow: hidden;
}

/* Colored top border per card using nth-child */
.service-card:nth-child(1)::before { background: linear-gradient(90deg, #1e90ff, #00c6ff); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, #dc2626, #f97316); }
.service-card:nth-child(5)::before { background: linear-gradient(90deg, #059669, #10b981); }
.service-card:nth-child(6)::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.service-card:nth-child(7)::before { background: linear-gradient(90deg, #db2777, #f43f5e); }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Glow blob behind icon */
.service-card::after {
  content: '';
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.5);
}

.service-card:nth-child(1)::after { background: rgba(30,144,255,0.12); }
.service-card:nth-child(2)::after { background: rgba(124,58,237,0.12); }
.service-card:nth-child(3)::after { background: rgba(8,145,178,0.12); }
.service-card:nth-child(4)::after { background: rgba(220,38,38,0.12); }
.service-card:nth-child(5)::after { background: rgba(5,150,105,0.12); }
.service-card:nth-child(6)::after { background: rgba(217,119,6,0.12); }
.service-card:nth-child(7)::after { background: rgba(219,39,119,0.12); }

.service-card:hover::after {
  opacity: 1;
  transform: scale(2.5);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.01) !important;
  box-shadow: 0 20px 50px rgba(26,42,94,0.14) !important;
}

/* Icon styling per card */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}

.service-card:nth-child(1) .service-icon { background: rgba(30,144,255,0.1); color: #1e90ff; }
.service-card:nth-child(2) .service-icon { background: rgba(124,58,237,0.1); color: #7c3aed; }
.service-card:nth-child(3) .service-icon { background: rgba(8,145,178,0.1); color: #0891b2; }
.service-card:nth-child(4) .service-icon { background: rgba(220,38,38,0.1); color: #dc2626; }
.service-card:nth-child(5) .service-icon { background: rgba(5,150,105,0.1); color: #059669; }
.service-card:nth-child(6) .service-icon { background: rgba(217,119,6,0.1); color: #d97706; }
.service-card:nth-child(7) .service-icon { background: rgba(219,39,119,0.1); color: #db2777; }

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

/* Title & description */
.service-card h3 {
  color: var(--color-navy) !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.6rem !important;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.service-card:hover h3 { color: var(--color-blue) !important; }

.service-card p {
  color: var(--color-text-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
  position: relative;
  z-index: 1;
}

/* Section title accent */
#services .section-title {
  color: var(--color-navy);
}

/* ===== SERVICE CARDS 8 & 9 (Networking & Cloud) ===== */
.service-card:nth-child(8)::before { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.service-card:nth-child(9)::before { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }

.service-card:nth-child(8)::after { background: rgba(15,118,110,0.12); }
.service-card:nth-child(9)::after { background: rgba(29,78,216,0.12); }

.service-card:nth-child(8) .service-icon { background: rgba(15,118,110,0.1); color: #0f766e; }
.service-card:nth-child(9) .service-icon { background: rgba(29,78,216,0.1); color: #1d4ed8; }

/* ===== FORCE ALL SERVICE CARDS VISIBLE ===== */
#services .service-card,
#services .service-card.reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

#services .service-card:hover {
  transform: translateY(-10px) scale(1.01) !important;
}
