/* ================= GLOBAL STYLES ================= */

:root {
  --bg: #f8fafc;
  --bg-alt: #e2e8f0;
  --bg-soft: #cbd5e1;
  --accent: #eab308; /* amber */
  --accent-soft: rgba(234, 179, 8, 0.12);
  --accent-strong: #facc15;
  --accent-gradient: linear-gradient(135deg, #eab308, #f97316);
  --text: #1e293b;
  --text-soft: #64748b;
  --border: #cbd5e1;
  --danger: #ef4444;
  --youtube-red: #ff0000;
  --youtube-red-dark: #b91c1c;

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-full: 999px;

  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.6);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.4);

  --nav-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Utility containers */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ================= NAVBAR ================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.9));
  border-bottom: 1px solid rgba(203, 213, 225, 0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.brand-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Legacy styles (kept for backward compatibility if needed) */
.brand-mark {
  background-image: linear-gradient(135deg, #2563eb, #7c3aed, #ff0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.6rem;
  margin-right: 0.5rem;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  position: relative;
  padding-block: 0.2rem;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-image: var(--accent-gradient);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 5px;
}

.nav-toggle.open .nav-toggle-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ================= HERO ================= */

.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 55%),
    radial-gradient(circle at top right, rgba(147, 51, 234, 0.06), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-name {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-soft);
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 1rem 0 0;
  max-width: 540px;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  border: none;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn.outline {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  background: transparent;
  backdrop-filter: blur(10px);
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn.full-width {
  width: 100%;
}

.btn.youtube {
  background: linear-gradient(135deg, var(--youtube-red), var(--youtube-red-dark));
  color: #f9fafb;
  box-shadow: 0 18px 35px rgba(185, 28, 28, 0.7);
}

.btn.youtube:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(185, 28, 28, 0.85);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

.hero-profile {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.3), transparent 54%),
    #020617;
  border-radius: 24px;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 360px;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-initials {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.hero-name {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.hero-role {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--accent-strong);
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0 0 0.9rem;
}

.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.hero-tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  color: var(--text-soft);
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.8;
}

.scroll-down::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, #6b7280, transparent);
}

/* ================= SECTIONS ================= */

.section {
  padding: 4.5rem 0;
  position: relative;
  background: #050816;
  color: #f9fafb;
}

#home {
  background: var(--bg);
  color: var(--text);
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617 70%);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.section-header {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.section-header.centered {
  text-align: center;
  position: static;
  margin-bottom: 2.4rem;
}

.section-title {
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.section-content {
  display: grid;
  gap: 1.3rem;
}

/* ================= ABOUT ================= */

.about-card {
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.about-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.about-card p {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ================= SKILLS ================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.skills-group {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 1.4rem 1.5rem;
}

.skills-group h3 {
  margin: 0 0 0.7rem;
}

.skills-group p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.skill {
  margin-bottom: 0.85rem;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  color: var(--text-soft);
}

.skill-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  overflow: hidden;
}

.skill-progress {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background-image: var(--accent-gradient);
  transition: width 0.8s ease-out;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.skills-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
}

.skills-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
}

/* ================= CARDS (Services / Blog / Projects) ================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.75);
  border-color: rgba(250, 204, 21, 0.9);
  background: radial-gradient(circle at top, rgba(234, 179, 8, 0.32), rgba(15, 23, 42, 0.98));
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Services */
.service-card .service-highlight {
  margin-top: 0.4rem;
  color: #e5e7eb;
}

/* Blog */

.blog-card{
  display: flex;
  flex-direction: column;
  height: 500px;
}
.blog-card img {
  width: 100%;
  max-height: 40%;
  border-radius: 14px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.blog-card .badge {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(250, 204, 21, 0.8);
  color: #fef3c7;
  margin-bottom: 0.6rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--accent-strong);
}

.text-link::after {
  content: "→";
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.text-link:hover::after {
  transform: translateX(2px);
}

/* Projects */
.project-meta {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

/* ================= YOUTUBE ================= */

.youtube-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.youtube-intro h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.youtube-intro p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0 0 0.8rem;
}

.youtube-videos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  min-width: 70vw;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.video-card {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 0.9rem;
  width: 100%;
  height: 250px;
  min-height: 250px;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 0.6rem;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* ================= CONTACT ================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2.2rem;
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0 0 0.7rem;
}

.contact-info a {
  color: var(--accent-strong);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

/* Social links */
.social-links h4 {
  margin: 1.3rem 0 0.6rem;
  font-size: 0.98rem;
}

.social-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links li + li {
  margin-top: 0.4rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
}

.social-links a:hover {
  color: #e5e7eb;
}

.icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.icon-circle.youtube {
  border-color: var(--youtube-red);
  color: var(--youtube-red);
}

/* Contact form */
.contact-form-wrapper {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-size: 0.88rem;
  color: #e5e7eb;
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.92);
  color: #f9fafb;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
  background: rgba(15, 23, 42, 0.98);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 0.9rem;
}

input.error,
textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.8);
}

.form-status {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0.3rem 0 0;
}

/* ================= FOOTER ================= */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 70%);
  padding: 2.3rem 0 2.1rem;
}

/* ================= PAGE LAYOUTS (INNER PAGES) ================= */

.page-hero {
  padding: 4.5rem 0 2.5rem;
  /* background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.2), transparent 55%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 50%),
    linear-gradient(to bottom, #020617, #020617); */
  background: white;
}

.page-hero-inner {
  max-width: 720px;
}

.page-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.8rem;
}

.page-title {
  font-size: clamp(1.9rem, 3.4vw, 2.45rem);
  margin: 0 0 0.7rem;
}

.page-subtitle {
  margin: 0;
  max-width: 40rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.feature-card {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.7);
}

.feature-card .section-title {
  font-size: 1.4rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.section-cta {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), #020617 80%);
}

.cta-strip {
  border-radius: 20px;
  border: 1px solid rgba(250, 204, 21, 0.7);
  background:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.3), transparent 60%),
    #020617;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 2rem;
}

.about-main {
  display: grid;
  gap: 1.4rem;
}

.about-block {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.4rem 1.6rem;
}

.about-block h2 {
  margin: 0 0 0.6rem;
}

.about-block p {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
}

.about-sidebar {
  display: grid;
  gap: 1.2rem;
}

.sidebar-card {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.2rem 1.3rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.sidebar-card h3 {
  margin: 0 0 0.65rem;
}

.sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-card li {
  margin-bottom: 0.4rem;
}

/* Services page */
.service-card .service-list {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.service-card .service-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
}

.service-card .service-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-strong);
  position: absolute;
  left: 0.15rem;
  top: 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 2.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-logo {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-links h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.3rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-meta p {
  margin: 0 0 0.35rem;
}

.footer-seo {
  margin-top: 0.3rem;
}

/* ================= ANIMATIONS & SCROLL EFFECTS ================= */

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-animate="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-image-wrapper {
    order: 1;
  }

  .hero-content {
    order: 2;
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
  }

  .hero-profile {
    justify-content: flex-start;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header {
    position: static;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youtube-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .youtube-videos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .video-card {
    min-height: 250px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .brand-logo {
    height: 38px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: var(--nav-height);
    background: rgba(3, 4, 8, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.3rem 0.9rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  .nav-links.open {
    max-height: 260px;
  }

  .nav-links li {
    padding: 0.25rem 0;
  }

  .hero {
    padding-top: 4rem;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-container {
    gap: 2rem;
  }

  .hero-portrait {
    max-width: 100%;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .youtube-videos {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scroll-down {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 32px;
  }

  .container {
    width: min(100% - 1.6rem, 100%);
  }

  .hero-card {
    max-width: 100%;
  }

  .cta-strip {
    padding-inline: 1.3rem;
  }
}

/* Contact Page Styles */
.contact-page {
  background: white;
  color: black;
}

.contact-page .page-hero {
  background: white;
}

.contact-page .section {
  background: white;
  color: black;
}

.contact-page .social-links {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-page .social-links h4 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-page .social-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-page .social-links li {
  display: inline-block;
}

.contact-page .social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.contact-page .social-links a:hover {
  color: #ff0000;
}

.contact-page .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}

.contact-page .icon-circle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contact-page .contact-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Page Styles */
.blog-page {
  background: white;
  color: black;
}

.blog-page .page-hero {
  background: white;
}

.blog-page .section {
  background: white;
  color: black;
}

/* YouTube Page Styles */
.youtube-page {
  background: white;
  color: black;
}

.youtube-page .page-hero {
  background: white;
  padding: 5rem 0 3rem;
}

.youtube-page .page-hero-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.youtube-page .page-title {
  color: black;
  font-weight: 700;
}

.youtube-page .page-subtitle {
  color: #333;
  margin-bottom: 2rem;
}

.youtube-page .section {
  background: white;
  color: black;
}

.youtube-page .section-alt {
  background: white;
  color: black;
}

.youtube-page .btn.youtube {
  background: #ff0000;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.youtube-page .btn.youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.youtube-page .video-card {
  background: white;
  border: 2px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.youtube-page .video-card h3 {
  color: black;
  font-weight: 600;
}

.youtube-page h2 {
  color: #ff0000;
  text-align: center;
  font-weight: 700;
}

.youtube-page .youtube-intro {
  text-align: center;
  margin-top: 1rem;
}

.youtube-page .youtube-intro p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

.section-subtitle{
  color: #555;
  margin: 2rem;
  text-align: center;
}
