/* Base styles */
:root {
  --primary: #0a84ff; /* C# Corner-like blue */
  --primary-600: #086dd1;
  --dark: #0b132b;
  --muted: #6b7280; /* Slate 500 */
  --bg: #ffffff;
  --surface: #ffffff;
  --section-alt: #f7f9fc; /* lighter alt section */
  --footer-bg: #0f172a; /* Slate 900 */
  --footer-text: #94a3b8; /* Slate 400 */
  --nav-bg: #0a84ff;
  --accent: #00CED1; /* Teal accent for name and CTAs */
}

html, body {
  height: 100%;
}

/* Larger base typography */
html {
  font-size: 18px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: #111827; /* Slate 900 text for contrast */
  background: var(--bg);
  line-height: 1.75;
}

/* Headings scale */
h1 { font-size: clamp(2.25rem, 3.2vw + 1.2rem, 3.25rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 1.2vw + .9rem, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { font-size: 1.125rem; }
.lead { font-size: clamp(1.125rem, .8vw + .9rem, 1.375rem); }

.navbar-brand span.brand-accent {
  color: #fff;
}

/* Bigger brand like portfolio headers */
.navbar-brand { font-size: 1.75rem; letter-spacing: .2px; color: #fff !important; }

/* Navbar themed like C# Corner */
.navbar {
  background: linear-gradient(90deg, var(--nav-bg), var(--primary-600)) !important;
  border-bottom: none !important;
}
.navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  position: relative;
  padding-bottom: .4rem;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff !important;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  opacity: .9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* Toggler adjustments for dark/blue navbar */
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero more spacious and prominent */
.hero {
  /* Subtle executive background: deep navy to near-black */
  background: radial-gradient(1200px circle at 50% 40%, #0c1a3a 0%, #0b1020 55%, #070b16 100%);
  padding: 8rem 0; /* was 6rem */
}

/* Hero image section - full width with same height as index hero */
.hero-image-section {
  position: relative;
  width: 100%;
  padding: 8rem 0;
  overflow: hidden;
}

.hero-image-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.5));
  z-index: 1;
}

.hero-image-section img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-image-section .container {
  position: relative;
  z-index: 2;
}

/* Dark overlay above images */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.4));
  z-index: 1;
}

/* Faint geometric mesh texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .07; /* ~7% visibility */
  z-index: 1;
  pointer-events: none;
}

.section {
  padding: 5rem 0; /* was 4rem */
}

.section.alt {
  background: var(--section-alt);
}

.section-title {
  margin-bottom: 1.5rem;
  display: inline-block;
  padding-bottom: .4rem;
  border-bottom: 3px solid var(--primary);
}

.section-lead {
  color: var(--muted);
  margin-bottom: 2.25rem;
}

.footer {
  border-top: 1px solid #e9ecef;
  color: var(--footer-text);
  background: var(--footer-bg);
}

.footer a { color: var(--footer-text); }

/* Contact page styles */
.contact-section .section-title { border-bottom-color: var(--primary); }
.contact-card {
  background: var(--surface);
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem rgba(0,0,0,.06);
}
.contact-list .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: var(--primary);
}
.contact-form .input-group-text { background: rgba(0,0,0,.03); }
.contact-form .form-control { border-color: #e5e7eb; }
.contact-form .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(10, 132, 255, .15);
  border-color: var(--primary);
}
.contact-success { border-color: rgba(10, 132, 255, .35); }

.card-icon {
  width: 56px; /* was 48px */
  height: 56px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 132, 255, 0.12);
  color: var(--primary);
  font-size: 1.25rem;
}

.blog-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(10, 132, 255, .15);
  border-color: var(--primary);
}

/* Helpers */
.text-gradient {
  background: linear-gradient(90deg, #8cc6ff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal[data-reveal-delay] {
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hover effects */
.card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 2rem rgba(0,0,0,.08);
}

/* Consistent card styling */
.card {
  border: 1px solid #e9ecef;
  border-radius: 1rem;
}

/* Projects page card polish */
.project-card {
  position: relative; /* anchor stretched links and stabilize hover */
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.9rem 2.2rem rgba(0,0,0,.08);
  background: #f8fbff;
  border-color: rgba(10, 132, 255, .22);
}
.project-meta .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.14);
  color: var(--primary);
  font-size: .95rem;
}
.project-card .btn-outline-primary {
  border-color: rgba(10, 132, 255, .7);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.project-card:hover .btn-outline-primary,
.project-card .btn-outline-primary:hover {
  background: var(--primary);
  color: #0b1020;
  border-color: var(--primary);
}

/* Larger buttons */
.btn {
  transition: transform .15s ease, box-shadow .15s ease;
  padding: .7rem 1.1rem;
  font-size: 1.05rem;
  border-radius: .65rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
}

/* Override primary button to theme colors */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
}

/* About page styles */
.about-section .section-title { border-bottom-color: var(--primary); }
.about-card {
  background: var(--surface);
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem rgba(0,0,0,.06);
}
.about-highlights .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.14);
  color: var(--primary);
  font-size: 1rem;
}

/* Accent button for About page CTA (Bootstrap 5 variable-based) */
.btn-accent {
  --bs-btn-color: #042a2b;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #042a2b;
  --bs-btn-hover-bg: #19d6d8; /* slightly darker teal on hover */
  --bs-btn-hover-border-color: #19d6d8;
  --bs-btn-focus-shadow-rgb: 0, 206, 209;
  --bs-btn-active-color: #042a2b;
  --bs-btn-active-bg: #00b8ba;
  --bs-btn-active-border-color: #00b8ba;
  --bs-btn-disabled-color: #042a2b;
  --bs-btn-disabled-bg: rgba(0, 206, 209, .45);
  --bs-btn-disabled-border-color: rgba(0, 206, 209, .45);
}

/* Testimonial accent styling */
.blockquote-accent {
  background: rgba(0, 206, 209, 0.08);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
}

/* Make hero text visible on dark */
.hero .container { position: relative; z-index: 2; }
.hero h1, .hero p, .hero .lead { color: #ffffff; }
.hero .container { max-width: 980px; }
.hero .lead { opacity: .92; }
.hero .btn-outline-primary { color: #ffffff; border-color: rgba(255,255,255,.82); }
.hero .btn-outline-primary:hover { background: var(--primary); color: #0b1020; border-color: var(--primary); }

/* Hero primary button uses brand blue */
.hero .btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.hero .btn-primary:hover,
.hero .btn-primary:focus {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
}

a.nav-link, a.link-secondary {
  position: relative;
}

a.nav-link::after, a.link-secondary::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  opacity: .5;
}

a.nav-link:hover::after, a.link-secondary:hover::after {
  transform: scaleX(1);
}

/* Parallax helpers */
.parallax {
  will-change: transform;
}

/* Hero layered images */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero-layers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Ensure layers fill the entire hero and cover edge-to-edge */
.hero-layers .hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.8) brightness(.6); /* darken images under overlay */
}
.hero-layers .layer-bg { opacity: .18; }
.hero-layers .layer-mid { opacity: .22; }
.hero-layers .layer-fg { opacity: .25; }
.cert-item {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.cert-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.07);
  background: #f8fbff;
  border-color: rgba(10, 132, 255, .25);
}
.cert-item .btn-outline-primary {
  border-color: rgba(10, 132, 255, .6);
}
.cert-item .btn-outline-primary:hover {
  background: var(--primary);
  color: #0b1020;
  border-color: var(--primary);
}
