/* ---------- Base + Theme ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Dark (default) */
  --bg-primary:#0a0a0a; --bg-secondary:#1a1a1a; --bg-card:#333333;
  --text-primary:#ffffff; --text-secondary:#cccccc; --text-muted:#999999;
  --border-color:#333; --nav-bg:rgba(10,10,10,0.95);
  --shadow-light:rgba(0,0,0,0.3); --shadow-heavy:rgba(0,0,0,0.4);
  --image-bg:#1a1a1a; --image-border:#444;

  /* Page-accent defaults (overridden per page below) */
  --accent-hero: linear-gradient(135deg,#4facfe 0%,#00f2fe 100%); /* blue */
  --accent-box-bg-1: #4facfe; --accent-box-bg-2: #00f2fe;

  /* Additional variables for index/contact/about pages */
  --form-bg: #1a1a1a;
  --form-input-bg: #333333;
  --form-input-border: #444;
}

[data-theme="light"]{
  --bg-primary:#fafafa; --bg-secondary:#ffffff; --bg-card:#ffffff;
  --text-primary:#333; --text-secondary:#666; --text-muted:#999;
  --border-color:rgba(0,0,0,0.1); --nav-bg:rgba(255,255,255,0.95);
  --shadow-light:rgba(0,0,0,0.08); --shadow-heavy:rgba(0,0,0,0.12);
  --image-bg:#f8f9fa; --image-border:#ddd;
  
  /* Light theme overrides for form variables */
  --form-bg: #ffffff;
  --form-input-bg: #fafafa;
  --form-input-border: #f0f0f0;
}

body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  line-height:1.6; color:var(--text-primary); background:var(--bg-primary);
  transition:background-color .3s ease,color .3s ease;
  overflow-x: hidden;
}

/* ---------- Navigation ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; background:var(--nav-bg);
  backdrop-filter:blur(10px); z-index:1000; padding:20px 40px;
  border-bottom:1px solid var(--border-color);
  transition:background-color .3s ease,border-color .3s ease;
}
.nav-container{ display:flex; justify-content:space-between; align-items:center; max-width:1200px; margin:0 auto; }
.logo{ font-weight:600; font-size:16px; color:var(--text-primary); text-transform:uppercase; letter-spacing:1px; text-decoration:none; }
.nav-right{ display:flex; align-items:center; gap:40px; }
.nav-links{ display:flex; gap:30px; }
.nav-links a{ text-decoration:none; color:var(--text-secondary); font-weight:400; font-size:14px; text-transform:uppercase; letter-spacing:.5px; transition:color .3s ease; }
.nav-links a:hover,.nav-links a.active{ color:var(--text-primary); }
.theme-toggle{
  background:transparent; border:2px solid var(--border-color); border-radius:50px;
  padding:8px 16px; cursor:pointer; display:flex; align-items:center; gap:8px;
  font-size:14px; color:var(--text-secondary); transition:all .3s ease;
}
.theme-toggle:hover{ border-color:var(--text-primary); color:var(--text-primary); }

/* ---------- Layout ---------- */
.main-content{ margin-top:100px; padding:60px 40px; max-width:1000px; margin-left:auto; margin-right:auto; }
.project-hero{ text-align:center; margin-bottom:80px; }
.project-hero h1{ font-size:64px; font-weight:700; color:var(--text-primary); margin-bottom:30px; line-height:1.1; }

.project-subtitle{ font-size:24px; color:var(--text-secondary); font-weight:400; margin-bottom:20px; }

/* ---------- Hero image ---------- */
.hero-image{
  width:100%; height:500px; background:var(--accent-hero);
  border-radius:8px; margin-bottom:80px; display:flex; align-items:center; justify-content:center;
  overflow:hidden; cursor:pointer; transition:transform .2s ease; box-shadow:0 4px 20px var(--shadow-light);
}
.hero-image:hover{ transform:scale(1.01); }
.hero-image img{ max-width:90%; max-height:90%; object-fit:contain; border-radius:6px; }

/* ---------- Image sections ---------- */
.image-section{
  width:100%; height:400px; background:var(--image-bg); border-radius:8px; margin:60px 0;
  display:flex; align-items:flex-start; justify-content:center; overflow:hidden; box-shadow:0 4px 15px var(--shadow-light);
  transition:transform .2s ease, background-color .3s ease; cursor:pointer;
}
.image-section:hover{ transform:scale(1.01); }
.image-section img{ width:100%; height:100%; object-fit:cover; object-position:top; border-radius:6px; }
.image-placeholder{ color:var(--text-muted); font-size:16px; text-align:center; padding:20px; }

/* Variants used across pages */
.image-section.full-size{ height:100%; }
.image-section.max-400{ height:400px; overflow:hidden; }
.image-section.max-300{ height:300px; overflow:hidden; }
.fill-image{ width:100%!important; height:100%!important; object-fit:cover; object-position:top; }

/* Two images side by side (FlowControl style) */
.two-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}
.two-images .image-section {
  height: 400px;
  margin: 0;
}
@media (max-width: 768px) {
  .two-images { grid-template-columns: 1fr; }
}

/* ---------- Content sections ---------- */
.content-section{ margin-bottom:80px; }
.content-section h2{ font-size:32px; font-weight:600; color:var(--text-primary); margin-bottom:25px; }
.content-section h3{ font-size:20px; font-weight:600; color:var(--text-primary); margin:25px 0 10px; }
.two-column{ display:grid; grid-template-columns:1fr 1fr; gap:60px; margin:40px 0; }

/* ---------- Insight boxes ---------- */
.insight-box{
  background:linear-gradient(135deg,var(--accent-box-bg-1) 0%,var(--accent-box-bg-2) 100%);
  color:#fff; padding:30px; border-radius:8px; margin:30px 0;
}
.insight-box h4{ font-size:20px; font-weight:600; margin-bottom:15px; }
.insight-box p{ font-size:16px; margin-bottom:0; }

/* ---------- Grids ---------- */
.solution-steps,
.results-grid{ display:grid; gap:30px; margin:40px 0; }
.solution-steps{ grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); }
.results-grid{ grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); }

.solution-step,.result-item{
  background:var(--bg-card); padding:35px; border-radius:8px; box-shadow:0 8px 30px var(--shadow-light);
  transition:background-color .3s ease, box-shadow .3s ease;
}
.result-item{ text-align:center; }
.solution-step h4,.result-item h4{ font-size:20px; font-weight:600; color:var(--text-primary); margin-bottom:15px; }
.solution-step p,.result-item p{ font-size:16px; color:var(--text-secondary); margin:0; line-height:1.6; }

/* ---------- Problem solved ---------- */
.problem-solved{
  color:#fff; padding:50px; border-radius:8px; margin:60px 0; text-align:center;
  background:linear-gradient(135deg,var(--accent-box-bg-1) 0%, var(--accent-box-bg-2) 100%);
}
.problem-solved h2{ color:#fff; margin-bottom:25px; }
.problem-solved p{ font-size:18px; margin:0; }
.problem-solved li{ margin-bottom:12px; }

/* ---------- Reflection ---------- */
.reflection{ background:var(--bg-card); padding:50px; border-radius:8px; box-shadow:0 10px 40px var(--shadow-light); text-align:center; }
.reflection h2{ color:var(--text-primary); margin-bottom:25px; }
.reflection p{ color:var(--text-secondary); }

/* ---------- "More images" grid ---------- */
.more-images-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
  gap:20px; margin:40px 0;
}
.more-images-grid .image-item,
.more-images-grid a{
  display:block; border-radius:8px; overflow:hidden; box-shadow:0 4px 15px var(--shadow-light);
  transition:transform .3s ease, box-shadow .3s ease; cursor:pointer;
}
.more-images-grid .image-item:hover,
.more-images-grid a:hover{ transform:scale(1.02); }
.more-images-grid img{ width:100%; height:200px; object-fit:cover; display:block; }

/* ---------- Lightbox ---------- */
.lightbox{
  display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,0.9);
  overflow:auto; justify-content:center; align-items:center;
}
.lightbox-content{ position:relative; max-width:90%; max-height:90%; margin:auto; }
#lightbox-img{
  display:block; width:auto; height:auto; max-width:90%; max-height:90%;
  object-fit:contain; border-radius:8px; cursor:zoom-in; transition:transform .2s ease;
}
#lightbox-img.zoomed{ cursor:zoom-out; transform:scale(2.2); max-width:none; max-height:none; }
.lightbox-close{ position:absolute; top:20px; right:35px; color:#fff; font-size:40px; font-weight:bold; cursor:pointer; }
.lightbox-close:hover{ color:#ccc; }

/* ---------- Animations ---------- */
.fade-in{ opacity:0; transform:translateY(30px); animation:fadeInUp .8s ease-out forwards; }
.fade-in-delay-1{ animation-delay:.2s; }
.fade-in-delay-2{ animation-delay:.4s; }
.fade-in-delay-3{ animation-delay:.6s; }
@keyframes fadeInUp{ to{ opacity:1; transform:translateY(0);} }
.content-section{ opacity:0; transform:translateY(50px); transition:opacity .8s ease-out, transform .8s ease-out; }
.content-section.animate{ opacity:1; transform:translateY(0); }

/* ---------- Animated Hamburger Menu ---------- */
/* Hamburger button styling - inspired by CodePen */
.hamburger {
  display: none;
  position: relative;
  width: 26px;
  height: 26px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1001;
}

/* Create the hamburger lines */
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.25s ease-in-out;
  border-radius: 1px;
}

.hamburger span {
  top: 12px;
}

.hamburger span::before {
  content: '';
  top: -8px;
}

.hamburger span::after {
  content: '';
  top: 8px;
}

/* Animation when menu is active */
.hamburger.active span {
  transform: rotate(45deg);
}

.hamburger.active span::before {
  top: 0;
  transform: rotate(0deg);
}

.hamburger.active span::after {
  top: 0;
  transform: rotate(90deg);
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 80px 20px 20px 20px;
  box-shadow: -2px 0 10px var(--shadow-light);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
  right: 0;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.mobile-menu .theme-toggle {
  margin-top: 20px;
  align-self: flex-start;
}

/* When body has .tiny-nav (set by JS), swap to hamburger */
body.tiny-nav .nav-right .nav-links,
body.tiny-nav .nav-right > .theme-toggle {
  display: none;
}

body.tiny-nav .hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: also use small width to trigger hamburger */
@media (max-width: 640px) {
  .hamburger { 
    display: flex; 
    align-items: center; 
    justify-content: center;
  }
  .nav-right .nav-links,
  .nav-right > .theme-toggle { 
    display: none; 
  }
}

/* ---------- HOME PAGE STYLES (index.html) ---------- */
body[data-page="index"] .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

body[data-page="index"] .hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

body[data-page="index"] .hero-content {
  max-width: 800px;
}

body[data-page="index"] .hero-badges {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

body[data-page="index"] .badge {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] body[data-page="index"] .badge {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-page="index"] .hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-page="index"] .hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

body[data-page="index"] .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #3b82f6;
}

body[data-page="index"] .cta-button:hover {
  background: transparent;
  color: #3b82f6;
}

/* Projects Section */
body[data-page="index"] .projects-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}

body[data-page="index"] .section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

body[data-page="index"] .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--text-primary);
}

/* Projects grid */
body[data-page="index"] .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

body[data-page="index"] .projects-grid.five-projects {
  grid-template-columns: repeat(2, 1fr);
}

body[data-page="index"] .projects-grid.five-projects .project-card:last-child {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
}

body[data-page="index"] .project-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

body[data-page="index"] .project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-heavy);
}

body[data-page="index"] .project-image {
  height: 300px;
  position: relative;
  overflow: hidden;
}

/* Project colors */
body[data-page="index"] .project-card:nth-child(1) .project-image {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

body[data-page="index"] .project-card:nth-child(2) .project-image {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

body[data-page="index"] .project-card:nth-child(3) .project-image {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

body[data-page="index"] .project-card:nth-child(4) .project-image {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body[data-page="index"] .project-card:nth-child(5) .project-image {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body[data-page="index"] .project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

body[data-page="index"] .project-content {
  padding: 30px;
}

body[data-page="index"] .project-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

body[data-page="index"] .project-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* View More Section */
body[data-page="index"] .view-more {
  text-align: center;
  margin-top: 60px;
}

body[data-page="index"] .view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: #3b82f6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid #3b82f6;
  transition: all 0.3s ease;
}

body[data-page="index"] .view-more-btn:hover {
  background: #3b82f6;
  color: white;
}

/* ---------- CONTACT PAGE STYLES ---------- */
body[data-page="contact"] .main-content {
  max-width: 800px;
}

/* Hero section */
body[data-page="contact"] .hero {
  text-align: center;
  margin-bottom: 60px;
}

body[data-page="contact"] .hero h1 {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

body[data-page="contact"] .hero p {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact form */
body[data-page="contact"] .contact-form {
  background: var(--form-bg);
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow-light);
  margin-bottom: 40px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-page="contact"] .form-group {
  margin-bottom: 30px;
}

body[data-page="contact"] .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body[data-page="contact"] .form-group input,
body[data-page="contact"] .form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--form-input-border);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  background: var(--form-input-bg);
  color: var(--text-primary);
}

body[data-page="contact"] .form-group input:focus,
body[data-page="contact"] .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: var(--bg-card);
}

body[data-page="contact"] .form-group textarea {
  height: 120px;
  resize: vertical;
}

body[data-page="contact"] .submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body[data-page="contact"] .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

body[data-page="contact"] .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Contact info */
body[data-page="contact"] .contact-info {
  text-align: center;
  background: var(--form-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-page="contact"] .contact-info h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

body[data-page="contact"] .contact-info p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

body[data-page="contact"] .contact-info a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

body[data-page="contact"] .contact-info a:hover {
  text-decoration: underline;
}

/* Success message */
body[data-page="contact"] .success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

body[data-page="contact"] .error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

/* ---------- ABOUT PAGE STYLES ---------- */
/* Profile section */
body[data-page="about"] .profile-section {
  display: flex;
  gap: 60px;
  margin-bottom: 80px;
  align-items: flex-start;
}

body[data-page="about"] .profile-image {
  flex-shrink: 0;
}

body[data-page="about"] .profile-image img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow-light);
}

body[data-page="about"] .profile-content h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

body[data-page="about"] .profile-content p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

body[data-page="about"] .content-section h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 25px;
}

body[data-page="about"] .content-section h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  margin-top: 30px;
}

body[data-page="about"] .content-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

body[data-page="about"] .content-section ul {
  margin: 20px 0;
  padding-left: 20px;
}

body[data-page="about"] .content-section li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Process steps */
body[data-page="about"] .process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

body[data-page="about"] .process-step {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-page="about"] .process-step h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

body[data-page="about"] .process-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Skills grid */
body[data-page="about"] .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

body[data-page="about"] .skill-item {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-page="about"] .skill-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

body[data-page="about"] .skill-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Contact section */
body[data-page="about"] .contact-section {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow-light);
  text-align: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-page="about"] .contact-section h2 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

body[data-page="about"] .contact-section a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

body[data-page="about"] .contact-section a:hover {
  text-decoration: underline;
}

body[data-page="about"] .contact-section p {
  color: var(--text-secondary);
}

/* ---------- Responsive for index/contact/about pages ---------- */
@media (max-width: 768px) {
  /* Index page responsive */
  body[data-page="index"] .hero-container, 
  body[data-page="index"] .section-container {
    padding: 0 20px;
  }

  body[data-page="index"] .hero {
    margin-top: 80px;
  }

  body[data-page="index"] .hero h1 {
    font-size: 2.5rem;
  }

  body[data-page="index"] .hero p {
    font-size: 1.1rem;
  }

  body[data-page="index"] .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  body[data-page="index"] .projects-grid.five-projects .project-card:last-child {
    grid-column: 1;
    max-width: none;
    margin: 0;
  }

  body[data-page="index"] .project-image {
    height: 250px;
  }

  body[data-page="index"] .hero-badges {
    justify-content: center;
  }

  /* Contact page responsive */
  body[data-page="contact"] .hero h1 {
    font-size: 36px;
  }

  body[data-page="contact"] .hero p {
    font-size: 18px;
  }

  body[data-page="contact"] .contact-form {
    padding: 30px;
  }

  body[data-page="contact"] .contact-info {
    padding: 30px;
  }

  /* About page responsive */
  body[data-page="about"] .profile-section {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  body[data-page="about"] .profile-image {
    align-self: center;
  }

  body[data-page="about"] .profile-image img {
    width: 250px;
    height: 320px;
  }

  body[data-page="about"] .profile-content h1 {
    font-size: 28px;
  }

  body[data-page="about"] .content-section h2 {
    font-size: 24px;
  }

  body[data-page="about"] .process-steps {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- General Responsive ---------- */
@media (max-width: 768px) {
  .nav { padding: 15px 20px; }
  .nav-right { gap: 20px; } 
  .nav-links { gap: 20px; }
  .main-content { padding: 40px 20px; margin-top: 80px; }
  .project-hero h1 { font-size: 48px; }
  .hero-image { height: 300px; }
  .content-section h2 { font-size: 28px; }
  .content-section h3 { font-size: 22px; }
  .content-section p { font-size: 16px; }
  .two-column { grid-template-columns: 1fr; gap: 40px; }
  .solution-steps, .results-grid, .more-images-grid { grid-template-columns: 1fr; }
  .problem-solved, .reflection { padding: 35px; }
  .theme-toggle { padding: 6px 12px; font-size: 12px; }
}

/* ---------- Page-specific accents ---------- */

/* Vessel Management / Solvexus (blue) */
body[data-page="vesselmanagement"],
body[data-page="solvexus"] {
  --accent-hero: linear-gradient(135deg,#4facfe 0%,#00f2fe 100%);
  --accent-box-bg-1:#4facfe;
  --accent-box-bg-2:#00f2fe;
}

/* GiftTracker (pink) */
body[data-page="gifttracker"] {
  --accent-hero: linear-gradient(135deg,#f093fb 0%, #f5576c 100%);
  --accent-box-bg-1:#f093fb;
  --accent-box-bg-2:#f5576c;
}
body[data-page="gifttracker"] .insight-box,
body[data-page="gifttracker"] .insight-box h4,
body[data-page="gifttracker"] .insight-box p {
  color: #000 !important;
}
body[data-page="gifttracker"] .insight-box p {
  color: rgba(0,0,0,0.8) !important;
}

/* ParcelNet (peach) */
body[data-page="parcelnet"] {
  --accent-hero: linear-gradient(135deg,#ffecd2 0%, #fcb69f 100%);
  --accent-box-bg-1:#ffecd2;
  --accent-box-bg-2:#fcb69f;
}

/* FlowControl (peach) */
body[data-page="flowcontrol"] {
  --accent-hero: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --accent-box-bg-1:#ffecd2;
  --accent-box-bg-2:#fcb69f;
}
body[data-page="flowcontrol"] .insight-box,
body[data-page="flowcontrol"] .insight-box h4,
body[data-page="flowcontrol"] .insight-box p {
  color: #000 !important;
}
body[data-page="flowcontrol"] .insight-box p {
  color: rgba(0,0,0,0.8) !important;
}

/* FlowControl: Problem Solved text should be black on the light gradient */
body[data-page="flowcontrol"] .problem-solved,
body[data-page="flowcontrol"] .problem-solved h2 { color:#000 !important; }

body[data-page="flowcontrol"] .problem-solved p,
body[data-page="flowcontrol"] .problem-solved li { color:rgba(0,0,0,0.85) !important; }

/* Personas grid + card */
.persona-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin:40px 0;
}
.persona-card{
  background:var(--bg-card);
  border:1px solid var(--border-color);
  border-radius:12px;
  padding:24px;
  box-shadow:0 8px 30px var(--shadow-light);
}
.persona-card img{
  width:60px; height:60px; border-radius:50%; object-fit:cover; margin-bottom:12px;
}
.persona-card h4{ margin:0 0 6px; color:var(--text-primary); font-weight:600; }
.persona-card p{ margin:6px 0; color:var(--text-secondary); font-size:15px; }
.persona-card .persona-meta{ font-size:13px; color:var(--text-muted); }

/* ---------- Quote Section ---------- */
.quote-section{
  background:linear-gradient(135deg,var(--accent-box-bg-1) 0%,var(--accent-box-bg-2) 100%);
  border-radius:12px;
  padding:28px;
  margin:40px 0;
  color:#fff;
  box-shadow:0 8px 30px var(--shadow-light);
  text-align:center;
}
.quote-section blockquote{
  margin:0;
  font-size:20px;
  line-height:1.6;
  font-style:italic;
}
.quote-section cite{
  display:block;
  margin-top:12px;
  font-size:14px;
  opacity:.9;
}

/* FlowControl override: make quote text black on the light gradient */
body[data-page="flowcontrol"] .quote-section,
body[data-page="flowcontrol"] .quote-section blockquote,
body[data-page="flowcontrol"] .quote-section cite {
  color:#000 !important;
}

/* Personas grid */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}
.persona-card {
  background: var(--bg-card);
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 8px 30px var(--shadow-light);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.persona-card h4 {
  font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px;
}
.persona-card .role {
  font-size: 14px; font-weight: 500; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.persona-card p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 15px; text-align: left;
}

/* ---------- Page-specific persona role colors ---------- */

/* FlowControl persona role (peach tone) */
body[data-page="flowcontrol"] .persona-card .role {
  color: #fcb69f; /* matches FlowControl accent */
}

/* ParcelNet persona role (peach/cream tone) */
body[data-page="parcelnet"] .persona-card .role {
  color: #fcb69f; /* same as gradient tone */
}

/* GiftTracker persona role (pink/purple tone) */
body[data-page="gifttracker"] .persona-card .role {
  color: #f5576c; /* pink tone */
}

/* VesselManagement persona role (blue tone) */
body[data-page="vesselmanagement"] .persona-card .role {
  color: #00f2fe; /* blue accent */
}

/* FlowControl + ParcelNet: Key Insights text should be black on light gradient */
body[data-page="flowcontrol"] .insight-box,
body[data-page="flowcontrol"] .insight-box h4,
body[data-page="flowcontrol"] .insight-box p,
body[data-page="parcelnet"] .insight-box,
body[data-page="parcelnet"] .insight-box h4,
body[data-page="parcelnet"] .insight-box p {
  color: #000 !important;
}

body[data-page="flowcontrol"] .insight-box p,
body[data-page="parcelnet"] .insight-box p {
  color: rgba(0,0,0,0.8) !important;
}

/* ---------- Kalasar specific styles ---------- */

/* Kalasar (teal/mint green) */
body[data-page="kalasar"] {
  --accent-hero: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --accent-box-bg-1: #a8edea;
  --accent-box-bg-2: #fed6e3;
}

body[data-page="kalasar"] .insight-box,
body[data-page="kalasar"] .insight-box h4,
body[data-page="kalasar"] .insight-box p {
  color: #000 !important;
}

body[data-page="kalasar"] .insight-box p {
  color: rgba(0,0,0,0.8) !important;
}

body[data-page="kalasar"] .problem-solved,
body[data-page="kalasar"] .problem-solved h2 { 
  color: #000 !important; 
}

body[data-page="kalasar"] .problem-solved p,
body[data-page="kalasar"] .problem-solved li { 
  color: rgba(0,0,0,0.85) !important; 
}

body[data-page="kalasar"] .quote-section,
body[data-page="kalasar"] .quote-section blockquote,
body[data-page="kalasar"] .quote-section cite {
  color: #000 !important;
}

body[data-page="kalasar"] .persona-card .role {
  color: #a8edea;
}

/* Kalasar specific elements */
body[data-page="kalasar"] .key-insight {
  background: linear-gradient(135deg, var(--accent-box-bg-1) 0%, var(--accent-box-bg-2) 100%);
  color: #000 !important;
  padding: 25px;
  border-radius: 8px;
  margin: 30px 0;
}

body[data-page="kalasar"] .key-insight h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #000 !important;
}

body[data-page="kalasar"] .key-insight p {
  font-size: 16px;
  margin-bottom: 0;
  color: rgba(0,0,0,0.8) !important;
}

body[data-page="kalasar"] .work-items {
  margin: 40px 0;
}

body[data-page="kalasar"] .work-item {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

body[data-page="kalasar"] .work-item:last-child {
  border-bottom: none;
}

body[data-page="kalasar"] .work-item h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

body[data-page="kalasar"] .tool {
  font-size: 14px;
  color: var(--accent-box-bg-1);
  font-weight: 500;
  margin-bottom: 15px;
}

body[data-page="kalasar"] .work-item ul {
  margin: 15px 0;
  padding-left: 20px;
}

body[data-page="kalasar"] .work-item li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

body[data-page="kalasar"] .problem-list ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

body[data-page="kalasar"] .problem-list li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 0;
  position: relative;
}

body[data-page="kalasar"] .image-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

body[data-page="kalasar"] .image-grid-3 .image-section {
  height: 250px;
  margin: 0;
}

@media (max-width: 768px) {
  body[data-page="kalasar"] .image-grid-3 {
    grid-template-columns: 1fr;
  }
}