/* ============================================================
   Shrivatsa Cybersecurity Solutions — Clean Light Theme
   Design: Professional, Bright, Trustworthy, Responsive
   ============================================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border: rgba(148, 163, 184, 0.25);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  
  /* Brand Accents adjusted for light theme contrast */
  --accent-cyan: #0284c7; /* deep sky blue */
  --accent-blue: #2563eb; /* royal blue */
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  
  /* Utilities */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  background-image: radial-gradient(rgba(148, 163, 184, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { color: var(--text-heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============================================================
   Layout & Containers
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 100px 0; position: relative; }
.section-light { background-color: var(--bg-secondary); }
.section-dark { background-color: var(--bg-primary); }

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}
.btn-white {
  background: transparent;
  color: var(--text-heading) !important;
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-white:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Header & Navigation
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s ease;
}
header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.brand a { display: flex; align-items: center; gap: 12px; }
.logo-horizontal { height: 28px; transition: all 0.3s ease; } /* New horizontal logo */
.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; color: var(--text-heading); } /* Fallback */

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
nav a:hover, nav a.active-link { color: var(--accent-blue); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 0;
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { padding: 8px 20px; }
.dropdown-menu a { display: block; color: var(--text-secondary); }
.dropdown-menu a:hover { color: var(--accent-blue); }
.chevron { font-size: 0.7em; margin-left: 4px; transition: transform 0.3s; }
.dropdown:hover .chevron { transform: rotate(180deg); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================
   Hero Section (Fixed to be full width)
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px; /* offset header */
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05) 0%, rgba(37, 99, 235, 0.08) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  text-align: center;
}
/* Overlay to ensure text readability on background images */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85); /* Light overlay for readability */
}
.hero > .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* Sub-page hero */
.hero-sub {
  min-height: 50vh;
  padding-top: 120px;
}
.hero-sub h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 5px;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ============================================================
   Cards & Grids
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-bottom: 24px;
}
.card h3 { margin-bottom: 16px; font-size: 1.4rem; }
.card p { color: var(--text-secondary); margin-bottom: 24px; }
.card-link {
  color: var(--accent-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link:hover { gap: 12px; color: var(--accent-cyan); }

/* Service Blocks (About / Services Pages) */
.service-block {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 50px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.service-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.service-icon-box {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-blue);
}
.service-header h2 { font-size: 2rem; }
.methodology-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.methodology-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.methodology-list i { color: var(--accent-blue); margin-top: 4px; }

/* ============================================================
   Two Col Layout & Forms
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.form-card {
  background: var(--bg-primary);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
form { display: flex; flex-direction: column; gap: 16px; }
label { font-size: 0.9rem; font-weight: 600; color: var(--text-heading); }
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================================
   HackConnect Specific
   ============================================================ */
.hc-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hc-title {
  font-size: 2.5rem; font-weight: 800; margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.hc-visual {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 2px;
  position: relative;
}
.hc-visual-inner {
  background: var(--bg-primary);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 60px;
  text-align: center;
  font-size: 5rem;
  color: var(--accent-blue);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 80px 24px 40px;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { height: 45px; margin-bottom: 20px; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--accent-blue); }
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.social-icons a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.social-icons a:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}
.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 30px;
}

/* ============================================================
   Animations
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger-in > * { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.stagger-in.visible > * { opacity: 1; transform: translateY(0); }
.stagger-in.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-in.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-in.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-in.visible > *:nth-child(4) { transition-delay: 0.4s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .two-col, .hc-showcase { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

/* ============================================================
   Logo Protection
   ============================================================ */
.protect-logo {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
  nav {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--bg-primary);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.5s ease-out;
    box-shadow: var(--shadow-lg);
  }
  nav.open { clip-path: circle(150% at 100% 0); }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li { width: 100%; border-bottom: 1px solid var(--border); }
  nav ul li:last-child { border-bottom: none; }
  nav a { display: block; padding: 16px 0; }
  
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    border: none;
    background: var(--bg-secondary);
    display: none;
    padding: 0;
  }
  .dropdown.open .dropdown-menu { display: flex; }
  
  .stats-container { grid-template-columns: 1fr; margin-top: 40px; }
  .stats-container::before { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  header { padding: 0 20px; }
}

/* ============================================================
   Toast Notification (AJAX Forms Feedback)
   ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-blue);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon {
  font-size: 1.3em;
  color: var(--accent-blue);
}
.toast-message {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}
