@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* UK Theme Palette (Light Blue, Red, White) */
  --bg-dark: #E3F2FD;         /* Light Blue Background */
  --bg-card: #FFFFFF;         /* Solid White card */
  --text-light: #0D47A1;      /* Deep Blue for contrast text */
  --text-muted: #455A64;      /* Slate Gray */
  
  --accent-red: #D32F2F;      /* Vibrant Red */
  --accent-red-glow: rgba(211, 47, 47, 0.25);
  
  --accent-blue: #1976D2;     /* Medium Blue */
  --accent-blue-light: #42A5F5; /* Lighter Blue for hovers/highlights */
  --accent-blue-glow: rgba(66, 165, 245, 0.35);
  
  --border-light: rgba(13, 71, 161, 0.12); /* Subtle dark border for light theme */
  --border-red: rgba(211, 47, 47, 0.3);
  --border-blue: rgba(25, 118, 210, 0.3);
  
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-glow-red: 0 0 20px var(--accent-red-glow);
  --shadow-glow-blue: 0 0 20px var(--accent-blue-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Global Image Safeguard */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px var(--accent-blue-glow); }
  50% { box-shadow: 0 0 30px var(--accent-blue-glow); }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(227, 242, 253, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 6px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2vw, 2.2rem);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1.25rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(13, 71, 161, 0.08);
  border-color: var(--accent-blue-light);
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  padding: 0.75rem 1.6rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #A91022;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.5);
}

.btn-outline {
  color: var(--text-light);
  border: 2px solid var(--accent-blue);
  padding: 0.75rem 1.6rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

/* Sections */
section {
  padding: clamp(3.5rem, 6vw, 6rem) 5%;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  line-height: 1.15;
}

.section-title span {
  color: var(--accent-red);
}

.section-desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  line-height: 1.6;
}

/* Cards & Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-blue-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
  z-index: 2;
}

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

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-glow-blue);
}

.card-img-wrapper {
  margin: calc(-1 * clamp(1.5rem, 2.5vw, 2.2rem)) calc(-1 * clamp(1.5rem, 2.5vw, 2.2rem)) 1.5rem calc(-1 * clamp(1.5rem, 2.5vw, 2.2rem));
  height: 200px;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  position: relative;
  background: rgba(13, 71, 161, 0.04);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.card-icon {
  font-size: 2.2rem;
  color: var(--accent-red);
  margin-bottom: 1.2rem;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.2;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Footer */
footer {
  background: #0D47A1;
  color: #FFFFFF;
  padding: clamp(3rem, 5vw, 4rem) 5% clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  display: block;
  object-fit: contain;
}

.footer-copy {
  color: #BBDEFB;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(227, 242, 253, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 5%;
    gap: 1.2rem;
    border-bottom: 2px solid var(--border-light);
    box-shadow: var(--shadow-md);
    display: none;
    align-items: flex-start;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    width: 100%;
    padding: 0.3rem 0;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0.8rem 5%;
  }

  nav .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .card-img-wrapper {
    height: 180px;
  }
}

@media (max-width: 480px) {
  nav .btn-primary {
    display: none;
  }
}
