/* =========================
   THEME SYSTEM
========================= */

:root {
  /* 🌞 SUN THEME (Default) */
  --bg-color: #f6f2df;          /* warm off-white */
  --text-color: #1a1a1a;
  --muted-text: #3a3a3a;
  --accent-color: #d9a441;      /* warm gold */
  --card-bg: #fff8e7;
  --border-color: rgba(0, 0, 0, 0.08);
}

/* 🌙 MOON THEME */
[data-theme="moon"] {
  --bg-color: #0f1118;          /* deep dark base */
  --text-color: #e6e9f0;
  --muted-text: #c4cad8;
  --accent-color: #4a6fa5;      /* greyish blue */
  --card-bg: #161b26;
  --border-color: rgba(255, 255, 255, 0.08);
}


/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =========================
   BASE
========================= */

body {
  padding-top:100px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  line-height: 1.6;

  background: var(--bg-color);
  color: var(--text-color);

  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  max-width: 1100px;
  margin: 0 auto;

  transition: background 0.3s ease, color 0.3s ease;
}


/* NAVIGATION */

/* Fixed navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* left = links, right = theme toggle */
  align-items: center;
  padding: 1.5rem 2rem; /* adjust to your original spacing */
  background-color: var(--bg-color); /* optional */
  box-shadow: 0 2px 4px var(--border-color); /* optional */
}

/* Keep nav links on the left */
.nav-links {
  display: flex;
  gap: 40px;
}



nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent-color);
}

/* ========================= */
/* THEME TOGGLE SWITCH */
/* ========================= */

/* Keep theme toggle on the right */
.theme-switch {
  display: flex;
  align-items: center;
}

.theme-switch input {
  display: none;
}

.theme-switch label {
  width: 50px;
  height: 26px;
  background: var(--border-color);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.theme-switch .toggle-circle {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

/* When checked → move circle */
.theme-switch input:checked + label .toggle-circle {
  transform: translateX(24px);
}

/* Dark mode active styling */
[data-theme="moon"] .theme-switch label {
  background: var(--accent-color);
}

/* =========================
   HERO
========================= */
.career-section {
  padding-top: 10px; /* adjust based on navbar height */
}


.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  color: var(--muted-text);
}


/* =========================
   WORK SECTION
========================= */

.featured-work {
  margin-top: 4rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}


/* =========================
   PROJECT CARD
========================= */

.project-card {
  padding: 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;

  text-decoration: none;
  color: inherit;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
html {
  overflow-y: scroll;
}
/* =========================
   GLOBAL LINKS
========================= */

/* Base link style (outside navbar) */
a {
  text-decoration: none;
  color: var(--accent-color);
}

/* Remove animation from navbar links */
nav a {
  color: var(--text-color);
  transition: color 0.2s ease;
}

/* Keep your navbar hover color */
nav a:hover {
  color: var(--accent-color);
}

/* Animate NON-navbar links */
body a:not(nav a) {
  display: inline-block;
  transition: transform 0.15s ease;
}

/* Grow slightly when clicked */
body a:not(nav a):hover {
  transform: scale(1.04);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.project-item {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 30px 0;
}

.project-image img {
  width: 200px;
  border-radius: 12px;
}

.project-info {
  max-width: 500px;
}

.project-item:visited {
  color: inherit;   /* 🔥 removes purple visited color */
}

.project-link {
  color: var(--accent-color);
  font-weight: 500;
}

.project-item:hover .project-link {
  opacity: 0.8;
}


/* ====================
  Container 
=====================*/
.featured-work {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Project List */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Single Project */
.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.8rem;
  text-decoration: none;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.25s ease;
  background: var(--card-bg);
}

.project-item:hover {
  border-color: var(--accent-color);
  background: var(--bg-color);
  transform: translateY(-3px);
}

.project-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
}
.project-info p {
  font-size: 1.05rem;
  color: var(--muted-text);   /* 🔥 use theme variable */
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Arrow on right */
.arrow {
  font-size: 1.5rem;
  color: var(--muted-text);
  transition: color 0.25s ease;
}

.project-item:hover .arrow {
  color: var(--muted-text);
}

/* ========================= */
/* HERO LAYOUT */
/* ========================= */

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 60px;
}


/* Image */

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Text */

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--muted-text);
  max-width: 500px;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    display: flex;
    justify-content: center;
  }
}

/* =========================
   BUTTONS
========================= */

button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

button:hover {
  opacity: 0.85;
  transform: scale(1.05);
}


.swap-word {
  color: var(--accent-color);
  position: relative;
}

/* Blinking cursor */
.swap-word::after {
  content: "|";
  margin-left: 4px;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* =========================
   HOME IDENTITY SECTION
========================= */

.hero-identity {
  min-height: 80vh;      /* full viewport height */
  display: flex;
  align-items: center;     /* vertically center the hero content */
  justify-content: center; /* horizontal center */
  padding: 4rem 0 4rem 0;         /* optional padding */
}

.hero-identity-container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.hero-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}

/* Click Interaction */
.hero-name.active {
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Role Styling */
.hero-role {
  font-size: 1.2rem;
  color: var(--muted-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.swap-word {
  color: var(--accent-color);
}
/* =========================
   SCROLL ARROW
========================= */

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  font-size: 1.5rem;
  color: var(--muted-text);
  opacity: 0.6;
  animation: bounce 2s infinite;
  cursor: pointer;
  user-select: none;
}

/* Center it horizontally */
.hero-identity {
  position: relative; /* required for absolute positioning */
}

/* Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.case-container{
max-width:800px;
margin:0 auto;
padding-top: 100px;
}

.case-hero{
  display: block;
  margin: 40px auto;

  width: 100%;
  max-width: 700px;

  border-radius: 12px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

/*
.case-hero{
  display:block;
  margin:40px auto;
  width:100%;
  max-width:600px;
}*/

.case-summary{
margin-top:2rem;
}

.case-facts{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:2rem;
margin:1.5rem 0;
}

.case-section{
margin-top:4rem;
}

.case-section img{
width:100%;
max-width: 700px;
display: block;
border-radius:10px;
margin:25px auto;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
}
.case-section ul {
  padding-left: 1.5rem;
  margin-left: 0;
}


/* =========================
   CONNECT SECTION
========================= */
.connect {
  text-align: center;
  margin: 6rem 0 4rem; /* spacing from other sections */
}

.connect h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.connect p {
  font-size: 1.05rem;
  color: var(--muted-text);
  margin-bottom: 2rem;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem; /* spacing between buttons */
  flex-wrap: wrap;
}

.connect-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;

  /* fix size to prevent jumping */
  min-width: 180px; 
  text-align: center;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.connect-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.connect-btn:active {
  transform: translateY(-3px);
  opacity: 0.9;
}
/* =========================
   FOOTER / CONNECT
========================= 
.connect-footer {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg); /* subtle footer background
  border-top: 1px solid var(--border-color);
}

.connect-footer p {
  font-size: 1.05rem;
  color: var(--muted-text);
  margin-bottom: 2rem;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.connect-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;

  width: 180px; /* fixed width to prevent jump
  text-align: center;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.connect-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.connect-btn:active {
  transform: translateY(-3px);
  opacity: 0.9;
}
*/
/* =========================
   SUN / MOON CENTERED BACKGROUND
========================= */
.astro-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* click-through */
  z-index: -1; /* behind all content */
  display: flex;
  align-items: center;
  justify-content: center;
}

.astro-bg .sun,
.astro-bg .moon {
  position: absolute;
  width: 1000px;   /* adjust size */
  height: 1000px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Sun SVG */
.astro-bg .sun {
  background-image: url('../assets/images/SunDrawing.svg');
  opacity: 0.05;
}

/* Moon SVG */
.astro-bg .moon {
  background-image: url('../assets/images/MoonDrawing.svg');
  opacity: 0; /* hidden initially */
  width: 1000px;
  height: 1000px;

  transform: translate(-50px);

}

/* TOGGLE: Moon theme */
[data-theme="moon"] .astro-bg .sun {
  opacity: 0;
  transform: scale(0.8);
}

[data-theme="moon"] .astro-bg .moon {
  opacity: 0.7;
  transform: scale(1) translate(-50px);
}
/* =========================
   SWORD + FIRE
========================= */

.sword-scene {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 220px;
  height: 420px;

  pointer-events: none;
  z-index: -1; /* stays behind content */
}

/* Sword image */
.sword-img {
  position: absolute;
  bottom: 0;
  left: 10px;

  width: 160px;
  height: auto;
}
/* default = sun theme */

.sword-sun {
  opacity: 1;
}

.sword-moon {
  opacity: 0;
}

/* moon theme swap */

[data-theme="moon"] .sword-sun {
  opacity: 0;
}

[data-theme="moon"] .sword-moon {
  opacity: 1;
}
.fire {
  position: absolute;
  bottom: 98px;
  left: 46px;
  width: 80px;
  height: 150px;
  background: radial-gradient(
    ellipse at center,
    var(--accent-color) 0%,
    transparent 70%
  );
  filter: blur(10px);
  opacity: 0.7;

  animation: fireFlicker 3s infinite ease-in-out;

}
/* Flame flicker */
@keyframes fireFlicker {

  0% {
    transform: scaleY(1) scaleX(1);
    opacity: 0.7;
  }

  50% {
    transform: scaleY(1.1) scaleX(0.95);
    opacity: 0.9;
  }

  100% {
    transform: scaleY(1) scaleX(1);
    opacity: 0.7;
  }

}


/* =========================
   IMAGE ZOOM MODAL
========================= */

.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.85);
}

.modal-content {
  display: block;
  margin: auto;
  width: 95vh;      /* almost full screen width */
  max-width: 1200px; /* optional max for really big screens */
  height: auto;     /* keep aspect ratio */
  max-height: 95vh; /* almost full viewport height */
  border-radius: 10px;

  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.close-modal {
  position: absolute;
  top: 25px;
  right: 40px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

/* Make images clickable */
.case-section img,
.case-hero {
  cursor: zoom-in;
}

.combined-images {
  display: flex;       /* horizontal row */
  gap: 10px;           /* space between images */
  justify-content: center; /* center the row */
}

.combined-images img {
  max-width: 200px;    /* adjust as needed */
  height: auto;        /* maintain aspect ratio */
  border-radius: 8px;  /* optional styling */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.scroll-percentage {
  position: absolute;
  top: 95%;          /* vertical center of the sword figure */
  left: 37%;         /* horizontal center */
  transform: translate(-25%, -50%); /* truly center it */
  
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;    /* smaller than before */
  font-weight: bold;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);

  pointer-events: none; /* don't block clicks */
  z-index: 10;
}

.responsive-scroll {
  display: flex;
  overflow-x: hidden;  /* hide scrollbar */
  gap: 0.5rem;
  width: 100%;
}

.responsive-scroll img {
  flex: 0 0 auto;           /* don’t shrink */
  width: calc(20% - 0.4rem);/* 5 per screen on desktop */
  height: auto;
  border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .responsive-scroll img { width: calc(25% - 0.4rem); }
}
@media (max-width: 900px) {
  .responsive-scroll img { width: calc(33.33% - 0.4rem); }
}
@media (max-width: 600px) {
  .responsive-scroll img { width: calc(50% - 0.25rem); }
}