/*
  NK Driving School — Modern Override
  Keeps the dark purple / magenta theme, adds:
    - Inter font (Google Fonts)
    - Gradient hero heading
    - Gradient-filled buttons with glow
    - Backdrop-blur glassmorphism sidebar nav
    - Individual glassmorphism feature cards
    - Depth via shadows and gradients
    - Polished micro-interactions
*/

/* ─── Google Font ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* ─── CSS Variables ───────────────────────────────────────────────────────── */
:root {
  --accent-purple: #5e42a6;
  --accent-blue:   #5052b5;
  --accent-pink:   #b74e91;
  --bg-dark:       #0d0a14;
  --bg-card:       rgba(255,255,255,0.04);
  --border-soft:   rgba(255,255,255,0.08);
  --glow-purple:   rgba(94,66,166,0.45);
  --glow-pink:     rgba(183,78,145,0.45);
  --gradient:      linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  --gradient-h:    linear-gradient(135deg, #7b5ecf, #d4609e);
  --radius-card:   1rem;
  --shadow-card:   0 8px 32px rgba(0,0,0,0.45);
  --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body,
input,
select,
textarea {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  letter-spacing: -0.01em;
}

body {
  background: var(--bg-dark);
}

/* ─── Sidebar Logo ────────────────────────────────────────────────────────── */
.sidebar-logo {
  display: block;
  margin-bottom: 2rem;
  border: none !important;
  opacity: 0.95;
  transition: opacity var(--transition);
}

.sidebar-logo:hover {
  opacity: 1;
  border-bottom-color: transparent !important;
}

.sidebar-logo img {
  width: 100%;
  max-width: 160px;
  height: auto;
}

/* ─── Sidebar ─────────────────────────────────────────────────────────────── */
#sidebar {
  background: #0a1628;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border-soft);
  box-shadow: 4px 0 40px rgba(0,0,0,0.5);
}

#sidebar nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.7em;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

#sidebar nav a:hover,
#sidebar nav a.active {
  color: #ffffff;
}

/* ─── Headings ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
#intro {
  background: linear-gradient(160deg, #0d0a14 0%, #1a0e2e 50%, #0d0a14 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle animated radial glow behind hero text */
#intro::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(94,66,166,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

#intro::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(183,78,145,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.08); }
}

#intro h1 {
  font-size: 3.5em;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  margin-bottom: 0.4em;
}

#intro p {
  font-size: 1.05em;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 38em;
}

#intro p:first-of-type {
  font-size: 1.25em;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.6em;
}

@media screen and (max-width: 736px) {
  #intro h1 {
    font-size: 2.4em;
  }
}

/* ─── Section titles ──────────────────────────────────────────────────────── */
#two .inner > h2,
#three .inner > h2 {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── Services (Spotlights) ───────────────────────────────────────────────── */
#one.spotlights section {
  position: relative;
  overflow: hidden;
}

#one.spotlights section:hover .content {
  background: rgba(49, 36, 80, 0.96);
}

#one.spotlights .content {
  transition: background var(--transition);
}

#one.spotlights .content .inner h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

#one.spotlights .content .inner h2::after {
  content: '';
  display: block;
  height: 2px;
  width: 2.5rem;
  background: var(--gradient);
  border-radius: 2px;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

/* ─── "What we do" section background ────────────────────────────────────── */
#two {
  background: linear-gradient(160deg, #0d0a14 0%, #130920 60%, #0d0a14 100%) !important;
  position: relative;
}

#two::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(94,66,166,0.1) 0%, transparent 100%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(183,78,145,0.08) 0%, transparent 100%);
  pointer-events: none;
}

/* ─── Feature Cards ───────────────────────────────────────────────────────── */
.features {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin-top: 2rem;
}

.features section {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--radius-card) !important;
  border-top-width: 1px !important;
  border-left-width: 1px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  padding: 1.75rem 1.5rem 1.75rem 5.5rem !important;
  min-height: 7.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.features section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.features section:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18) !important;
}

.features section:hover::before {
  opacity: 1;
}

/* Remove old nth-child border overrides */
.features section:nth-child(-n+2) {
  border-top-width: 1px !important;
}

.features section:nth-child(2n) {
  border-left: 1px solid rgba(255,255,255,0.1) !important;
}

/* Icon badge */
.features section .icon.major {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.2rem;
  height: 3.2rem;
  background: linear-gradient(135deg, rgba(94,66,166,0.5), rgba(183,78,145,0.5));
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.features section .icon.major::before {
  font-size: 1em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.features section h3 {
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.features section p {
  font-size: 0.84em;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}

.features section p a {
  color: var(--accent-pink);
  border-bottom-color: rgba(183,78,145,0.35);
}

.features section p a:hover {
  color: #d4609e;
  border-bottom-color: transparent;
}

@media screen and (max-width: 736px) {
  .features {
    grid-template-columns: 1fr !important;
    gap: 0.6rem;
  }
  .features section {
    padding: 1.5rem 1.25rem 1.5rem 4.5rem !important;
    min-height: 6rem;
  }
  .features section .icon.major {
    left: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.95rem;
  }
}

/* ─── Gallery ─────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.6rem;
  margin-top: 2rem;
}

/* Featured large image: left col, full height */
.gallery-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* Top-right two: stacked */
.gallery-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
.gallery-item:nth-child(4) { grid-column: 3; grid-row: 1; }
.gallery-item:nth-child(5) { grid-column: 3; grid-row: 2; }

.gallery-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  background: #0a0a14;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(94,66,166,0.75), rgba(183,78,145,0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-overlay span {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 0.5em 1.4em;
  border-radius: 2em;
  backdrop-filter: blur(4px);
}

.gallery-item:hover img       { transform: scale(1.07); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

@media screen and (max-width: 736px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px 160px;
  }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item:nth-child(2) { grid-column: 1;     grid-row: 2; }
  .gallery-item:nth-child(3) { grid-column: 2;     grid-row: 2; }
  .gallery-item:nth-child(4) { grid-column: 1;     grid-row: 3; }
  .gallery-item:nth-child(5) { grid-column: 2;     grid-row: 3; }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }
  .gallery-item { grid-column: 1 !important; grid-row: auto !important; }
}

/* ─── Lightbox ─────────────────────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  cursor: default;
}

#lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: background var(--transition);
  box-shadow: none;
  transform: none !important;
}

#lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

#lightbox-prev,
#lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%) !important;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  width: 3rem;
  height: 3rem;
  padding: 0 !important;
  font-size: 1.8rem !important;
  line-height: 1 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: background var(--transition);
  box-shadow: none;
}

#lightbox-prev { left: 1.25rem; }
#lightbox-next { right: 1.25rem; }

#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) !important;
  box-shadow: none !important;
  filter: none !important;
}

/* ─── Contact Section ─────────────────────────────────────────────────────── */
#three {
  background: linear-gradient(160deg, #1a0e2e 0%, #0d0a14 100%) !important;
  position: relative;
}

#three::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(94,66,166,0.07) 0%, transparent 100%);
  pointer-events: none;
}

/* Form inputs */
#three input[type="text"],
#three input[type="email"],
#three input[type="tel"],
#three select,
#three textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 0.6rem;
  color: rgba(255,255,255,0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.88em;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

#three input[type="text"]:focus,
#three input[type="email"]:focus,
#three input[type="tel"]:focus,
#three select:focus,
#three textarea:focus {
  background: rgba(255,255,255,0.07);
  border-color: rgba(94,66,166,0.7) !important;
  box-shadow: 0 0 0 3px rgba(94,66,166,0.18);
  outline: none;
}

#three select option {
  background: #1a0e2e;
  color: #ffffff;
}

#three label {
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.45em;
}

/* Contact info list */
#three .contact > li h3 {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4em;
}

#three .contact > li a {
  color: rgba(255,255,255,0.75);
  border-bottom-color: rgba(255,255,255,0.15);
}

#three .contact > li a:hover {
  color: #ffffff;
}

/* Social icons */
#three .icons a {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 2.4em;
  height: 2.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.9em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

#three .icons a:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 16px var(--glow-pink);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
  background: var(--gradient) !important;
  border: none !important;
  border-radius: 0.55rem !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.72em !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  padding: 0 2.5em !important;
  height: 3.2em !important;
  line-height: 3.2em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 20px var(--glow-purple);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition) !important;
  position: relative;
  overflow: hidden;
}

input[type="submit"]::before,
input[type="reset"]::before,
input[type="button"]::before,
button::before,
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px var(--glow-pink) !important;
  filter: brightness(1.1);
}

input[type="submit"]:hover::before,
input[type="reset"]:hover::before,
input[type="button"]:hover::before,
button:hover::before,
.button:hover::before {
  background: rgba(255,255,255,0.06);
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
button:active,
.button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 12px var(--glow-purple) !important;
}

/* "Send Message" button full width feel */
.button.submit {
  background: var(--gradient) !important;
  min-width: 12em;
}

/* ─── h1.major (generic.html) ─────────────────────────────────────────────── */
h1.major {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1.major:after {
  background-image: var(--gradient) !important;
  height: 3px !important;
  border-radius: 3px !important;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
#footer {
  background: rgba(10, 7, 18, 0.95) !important;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

#footer .inner {
  display: flex;
  justify-content: center;
}

#footer .menu {
  justify-content: center;
}

#footer .menu li {
  font-size: 0.78em;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

#footer .menu li a {
  color: rgba(255,255,255,0.3);
  border-bottom-color: transparent;
}

#footer .menu li a:hover {
  color: rgba(255,255,255,0.6);
}

/* ─── WhatsApp Float ──────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff !important;
  border: none !important;
  border-radius: 3rem;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.whatsapp-float:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
  border-bottom-color: transparent !important;
  color: #ffffff !important;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

@media screen and (max-width: 480px) {
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 0.85rem;
    border-radius: 50%;
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0a14;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-pink));
  border-radius: 3px;
}

/* ─── Selection ───────────────────────────────────────────────────────────── */
::selection {
  background: rgba(94,66,166,0.45);
  color: #ffffff;
}
