:root {
  --bg-color: #0b1120;
  --bg-darker: #050810;
  --bg-card: rgba(30, 41, 59, 0.4);
  --card-border: rgba(255, 255, 255, 0.05);
  --accent-color: #eb1e3a; /* Vivlee Vibrant Red */
  --accent-glow: rgba(235, 30, 58, 0.25);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1200px;
  --nav-height: 70px;
}

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

body {
  background: radial-gradient(ellipse at 50% -20%, #171c35, #0b1120 50%, #050810 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

section { padding: 100px 0; position: relative; }

.glass {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.3)) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255,255,255,0.05);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
}
.glass:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(255,255,255,0.08);
  border-color: rgba(235, 30, 58, 0.3) !important;
}

/* ─── Navigation System ──────────────────────────────────────────────────── */
.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: var(--nav-height);
  position: fixed;
  top: 0; width: 100%;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.glass-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.logo:hover { transform: scale(1.05); }
.logo span { color: var(--accent-color); }
.logo img { height: 40px; width: auto; max-width: 140px; border-radius: 4px; object-fit: contain; }

/* ─── Hero Dynamics ──────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  background: radial-gradient(circle at 70% 30%, rgba(235, 30, 58, 0.08), transparent 70%),
              radial-gradient(circle at 30% 70%, rgba(30, 58, 235, 0.03), transparent 70%);
  position: relative;
  overflow: hidden;
}

.hero > .container, .hero > div {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  animation: slideInUp 1s cubic-bezier(0.23, 1, 0.32, 1);
}
.hero h1 span { color: var(--accent-color); text-shadow: 0 0 40px var(--accent-glow); }
.hero p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
  animation: slideInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

/* ─── Card & Grid ────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.2));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.25);
  border-left-color: rgba(255,255,255,0.25);
  border-radius: 32px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-15px) rotateX(5deg) scale(1.03);
  border-color: var(--accent-color);
  background: linear-gradient(135deg, rgba(235, 30, 58, 0.1), rgba(30, 41, 59, 0.4));
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 40px var(--accent-glow);
}

.service-img-wrapper { height: 260px; overflow: hidden; }
.service-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.service-card:hover .service-img-wrapper img { transform: scale(1.1); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
}
.btn-primary:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 20px 40px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--accent-color);
  transform: scale(1.05) translateY(-3px);
}

/* ─── Form Styles ────────────────────────────────────────────────────────── */
input, textarea, select {
  width: 100%;
  padding: 1.1rem 1.6rem;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px;
  color: #fff !important;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-color) !important;
  background: rgba(235, 30, 58, 0.03) !important;
  box-shadow: 0 0 25px var(--accent-glow);
}

label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 800;
}

/* ─── Admin Sidebar ──────────────────────────────────────────────────────── */
.menu-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: 16px;
  color: var(--text-secondary); text-decoration: none;
  transition: var(--transition);
}
.menu-item:hover, .menu-item.active {
  background: rgba(235, 30, 58, 0.1);
  color: var(--accent-color);
}

/* ─── Mobile Menu Toggle ─────────────────────────────────────────────────── */
.mobile-menu-toggle {
  display: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  transition: 0.3s;
  flex-shrink: 0;
}
.mobile-menu-toggle:hover { background: rgba(235,30,58,0.1); border-color: rgba(235,30,58,0.3); }

/* Portal Link */
.nav-links a.portal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}
.nav-links a.portal-link:hover {
    background: rgba(235, 30, 58, 0.08);
    border-color: rgba(235, 30, 58, 0.4);
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ─── Section Separators ─────────────────────────────────────────────────── */
.section-divider {
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 1.5rem auto 0;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ─── Excellence Banner ──────────────────────────────────────────────────── */
.excellence-banner {
  background: radial-gradient(circle at center, rgba(235, 30, 58, 0.08), transparent);
}
.excellence-banner .excellence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer-main { margin-top: 5rem; padding: 6rem 0 3rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 5rem; }
.footer-heading { margin-bottom: 2.5rem; color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; }
.footer-links { display: flex; flex-direction: column; gap: 1.2rem; color: var(--text-secondary); font-size: 1rem; }
.footer-links a { text-decoration: none; color: inherit; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-color); transform: translateX(8px); display: inline-block; }
.footer-contact-info { display: flex; flex-direction: column; gap: 1.5rem; color: var(--text-secondary); font-size: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item i { color: var(--accent-color); font-size: 1.2rem; margin-top: 0.1rem; flex-shrink: 0; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: #fff; opacity: 0.5; font-size: 1.5rem; transition: 0.4s; }
.social-links a:hover { opacity: 1; color: var(--accent-color); transform: translateY(-5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 3rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; flex-wrap: wrap; gap: 1rem; }
.dev-link { color: var(--accent-color); text-decoration: none; font-weight: 700; transition: 0.3s; }

/* ─── Canvas 3D Background ───────────────────────────────────────────────── */
#hero-canvas, #about-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* ─── Tablet Breakpoint ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  aside#sidebar { width: 260px !important; }
  main { margin-left: 260px !important; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .excellence-banner .excellence-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
}

/* ─── Mobile Breakpoint ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-height: 65px; }
  
  .mobile-menu-toggle { display: flex; align-items: center; }
  
  /* Full-screen overlay mobile nav */
  .nav-links {
    position: fixed;
    top: 0; right: -110%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1999;
    padding: 2rem;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; color: #fff; }
  .nav-links a.portal-link { width: 55px; height: 55px; }
  .nav-links .btn.nav-cta { padding: 1rem 2.5rem; font-size: 1.1rem; }

  /* Close button shows when open */
  .mobile-menu-toggle { position: relative; z-index: 2001; }

  /* Sections */
  section { padding: 70px 0; }
  .container { padding: 0 1.25rem; }

  /* Hero */
  .hero { min-height: 100vh; padding-top: var(--nav-height); }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem) !important; margin-bottom: 1.5rem; line-height: 1.1; }
  .hero p { font-size: 1rem !important; margin-bottom: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; }

  /* Grids */
  .card-grid, .grid { grid-template-columns: 1fr !important; }

  /* Excellence banner */
  .excellence-banner .excellence-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .excellence-banner h2 { font-size: 2rem !important; }

  /* Admin */
  aside#sidebar { display: none !important; }
  main { margin-left: 0 !important; padding: 4rem 1.25rem !important; }

  /* Footer */
  .footer-main { padding: 4rem 0 2rem; margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
  .footer-brand .logo { margin-bottom: 1rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  /* Founder card mobile */
  .founder-card { flex-direction: column !important; gap: 2rem !important; padding: 2.5rem 1.5rem !important; }
  .founder-img { width: 160px !important; height: 160px !important; }
  .founder-info h2 { font-size: 2.2rem !important; }
  .founder-info > div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; gap: 1.5rem !important; }
  .founder-info blockquote { font-size: 1rem !important; padding-left: 1.2rem !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.5rem) !important; }
  .btn { padding: 0.9rem 2rem; font-size: 0.95rem; }
  .service-card { border-radius: 20px; }
  .founder-info > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .glass { border-radius: 18px; }
  .glass-nav { padding: 0 1rem; }
}

::selection { background: var(--accent-color); color: #fff; }
