@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');


/* ==============================
   COLOR PALETTE VARIABLES
   ============================== */
:root {
  
  --primary: #375534;   /* earthy medium green → ties with your --medium */
  --secondary: #4F7942; /* moss green, deeper contrast than medium */
  --accent: #88C999;    /* fresh leafy accent that pops */
  --teal: #5FA693;      /* teal-green mix for variation */

  --dark: #0F2A1D;      /* deep dark green */
  --medium: #375534;    /* medium earthy green */
  --muted: #689071;     /* muted soft green */
  --light: #AEC3B0;     /* light pastel green */
  --pale: #E3EED4;      /* pale background */
  --text: #0F2A1D;
  --background: #E3EED4;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* ==============================
   BODY & GLOBAL
   ============================== */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, var(--pale) 0%, var(--light) 100%);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
/* ==============================
   NAVBAR
   ============================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Strong perimeter glow */
nav .logo img {
  width: 40px; 
  height: 40px;
  border: 2px solid var(--glow-color);
  border-radius: 10px; /* adjust to match your image shape */
  animation: glow-flow 4s ease-in-out infinite;
  box-shadow: 
    0 0 25px var(--glow-color),
    0 0 50px var(--glow-color),
    0 0 75px var(--glow-color),
    0 0 100px var(--glow-color);
}

/* LOGO TEXT */
nav .logo span {
  font-weight: bold;
  font-size: 1.2rem;
  font-family:  'Satisfy', cursive;
  color: #97c09b; /* pastel green text */
  animation: glow-flow 4s ease-in-out infinite;
  text-shadow: 10px 10px 16px var(--glow-color);
}


nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color:  rgba(199, 248, 208, 0.938);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--secondary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 20px;
  background: var(--pale);
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: var(--dark);
  text-decoration: none;
}

.dropdown-content a:hover {
  background: var(--light);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #8ffa958e;
}


/* ==============================
   HERO
   ============================== */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  min-height: 450px;
  color: var(--dark);
  background: linear-gradient(120deg, var(--pale) 0%, var(--light) 100%);
}

.dna-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 30px auto;
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 5%;
  box-shadow: 0 8px 40px rgba(15,42,29,0.07);
  backdrop-filter: blur(4px);
}

.canvas-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--dark), var(--muted), var(--medium));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 3s linear infinite;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 1.5rem;
  color: var(--medium);
}

/* ==============================
   UNIFIED BUTTON STYLE
   ============================== */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  color: #e6fde6;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.5s ease, transform 0.2s ease;
  position: relative;
}

/* Hover: gradient reverse and subtle lift */
.btn:hover {
  background: linear-gradient(270deg, var(--primary), var(--pale));
  transform: translateY(-2px);
  color:#0F2A1D;
}

/* Active / click effect */
.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
  gap:100px;
}
@media (max-width: 600px) {
  .button-container {
    flex-direction: column;
    align-items: stretch;
  }
  .button-container .btn {
    text-align: center;
    width: 100%;
  }
}
.copy-btn {
  position: relative;
  margin: 8px 12px 3px 500px;
  background: #75fc80;
  color: #4e503b;
  border: none;
  border-radius: 6px;
  padding: 0.2em 0.8em;
  font-size: 0.95em;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s;
  z-index: 2;
}
.copy-btn:hover { background: var(--muted); color: var(--dark); }



/* ==============================
   SECTIONS & CARDS
   ============================== */
main {
  max-width: 1100px;
  margin: 40px auto;
  background: #e7f8dd;
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--light);
  padding: 2rem;
}
section {
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--light);
  padding: 2rem;
}

/* ------------------------------
   PROJECTS (for .card-container + .card)
   ------------------------------ */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
  align-items: start;
  padding: 0;
}

.project-card {
  background: #bbe4bf;
  width: auto;
  height: 100%;
  max-height: 400px;
  padding: 18px;
  border-radius: 12px;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  border: 1px solid rgba(0,0,0,0.03);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Hover / focus */
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px) scale(1.03); 
  box-shadow: 0 12px 30px rgba(15, 42, 29, 0.25); 
  border: 1px solid rgba(15, 42, 29, 0.4);        
}
/* } */

/* small screens: single column stack */
@media (max-width: 600px) {
  .project-card-list {
    grid-template-columns: 1fr;
  }
}
/* ==============================
   BLOG STYLES
   ============================== */
.blog-post-link { text-decoration: none; color: inherit; display: block; }
.blog-post {
  background: var(--light);
  border-left: 5px solid var(--medium);
  padding: 12px;
  margin: 12px 0;
}
.blog-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.blog-text { flex: 1 1 200px; }
.blog-text h2 { margin: 0; font-size: 1.15em; }
.blog-text p { margin: 6px 0 0; font-size: 0.95em; }
.blog-thumbnail {
  flex: 0 0 auto;
  max-width: 180px;
  border-radius: 6px;
  box-shadow: 0 1px 4px #ccc;
  object-fit: cover;
  cursor: pointer;
}

.blog-thumbnail:hover { transform: scale(1.05); transition: transform 0.2s; }
.blog-post:hover { transform: scale(1.05); transition: transform 0.2s; }
/* Blog image styling */
.blog-img {
  width: 100%;           /* full width of parent container */
  max-width: 800px;      /* limits image size on large screens */
  height: auto;          /* maintain aspect ratio */
  display: block;        /* removes inline spacing */
  margin: 20px auto;     /* center horizontally with spacing above/below */
  border-radius: 10px;   /* optional: rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* subtle shadow for emphasis */
}

/* Optional: extra responsiveness for very small screens */
@media (max-width: 480px) {
  .blog-img {
    max-width: 100%;     /* allow full width on tiny devices */
    margin: 15px 0;      /* smaller vertical spacing */
  }
}


/* CSS */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* adjusts columns automatically */
  gap: 10px; /* space between images */
  padding: 10px;
}

.image-item {
  text-align: center;
}

.image-item img {
  width: 100%;        /* scale to fit the grid column */
  height: 250px;      
  object-fit:contain;  /* crop to fit without stretching */
  border-radius: 8px;
  display: block;
  margin: 0 auto;     
}

.caption {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

/* Smaller screens */
@media (max-width: 500px) {
  .image-item img {
    height: 180px;    /* reduces height for small screens */
  }
}

@media (max-width: 320px) {
  .image-item img {
    height: 150px;    /* further reduces height for very small screens */
  }
}


/* ==============================
   CODE BLOCKS
   ============================== */
.code-block {
  background: var(--light);
  border-radius: 12px;
  margin-bottom: 2em;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid var(--medium);
}
.code-header {
  background: var(--accent);
  padding: 0.6em 1em;
  color: #fff;
  font-weight: 600;
}
.code-block pre {
  margin: 0;
  padding: 1em;
  overflow-x: auto;
  background: var(--light);
  color: var(--dark);
  font-family: "Fira Code", monospace;
  font-size: 0.92em;
  line-height: 1.5;
}
.explanation {
  background: var(--pale);
  color: var(--dark);
  padding: 1em;
  font-size: 0.93em;
}
.explanation strong { color: var(--medium); }
/* ==============================
   FORMS
   ============================== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
form input, form textarea {
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--light);
  font-size: 1rem;
  width: 100%;
}
form button {
  background: var(--muted);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
form button:hover { background: var(--dark); }
#form-message { margin-top: 1rem; color: var(--medium); font-weight: bold; 
}

/* ==============================
   CHIPS
   ============================== */
.chip{ 
  background: var(--light);
  padding: 4px 10px;
  border-radius:999px;
  color: var(--dark);
  font-size:13px; 
  text-align: center;
  box-shadow:0 2px 8px #00000011; 
  display: inline-block;
}
.chip-wide {
  min-width: 280px;
  white-space: nowrap;
}

/* ==============================
   MEDIA QUERIES
   ============================== */
@media (max-width: 900px) {
  section, main { padding: 1.5rem; }
  .project-list { gap: 0.8rem; }
  nav ul { gap: 1rem; }
}
@media (max-width: 500px) {
  nav .logo {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    gap: 0.6rem;
    background: var(--dark);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    display: none;
    padding: 1rem;
  }
  nav ul.active { display: flex; }
  .project-list { flex-direction: column; align-items: center; }
  .blog-content { flex-direction: column; align-items: flex-start; }
  .blog-thumbnail { max-width: 100%; }
  section, main { padding: 1rem; }
  main { margin: 20px 10px; max-width: 100%; }
}

/* ==============================
   FOOTER
   ============================== */
footer {
  background: var(--medium);
  color: #fff;
  text-align: center;
  padding: 25px 20px;
}

footer .social-links {
  margin-bottom: 12px;
}

footer .social-links a img {
  width: 28px;
  height: 28px;
  margin: 0 8px;
  filter: invert(1);
  transition: transform 0.3s;
}

footer .social-links a img:hover {
  transform: scale(1.2);
}

footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 6px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }
  footer a:hover {
    color: #fff;
    text-decoration: underline;
  }
  footer span {
    color: #fff; /* make © text stand out */
    font-weight: bold;
  }

/* ==============================
   ANIMATIONS
   ============================== */
   
   
@keyframes gradient-move {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 200% center; }
}
/*  */

/* FLOWING MULTI-COLOR GLOW */
@keyframes glow-flow {
  0% { --glow-color: #11e7d5;  }
  25% { --glow-color: #ac1686;}
  50% {--glow-color: #ff6a2f;}
  75% {--glow-color: #2f55ff; }
  100% {--glow-color: #11e7d5;}
}
/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    width: 200px;
    display: none;
  }
  nav ul.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}
/* ==============================
   FUN NOTE HEADER ANIMATION
   ============================== */
/* .blast-header-wrap { */
  /* text-align: center; */
  /* margin: 40px 0; */
/* } */

.fun-note {
  display: inline-flex;
  text-align: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text);
  padding: 20px 80px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: #f8fcf8;
  position: relative;
  display: flex;
  overflow: hidden;
  margin: 10px auto;      
  justify-content: center;
}

/* Stars animation */
.star {
  display: inline-block;
  margin: 0 8px;
  font-size: 2rem;
  animation: star-glow 2s infinite alternate;
}

/* Left star delay */
.star.left {
  animation-delay: 0s;
}

/* Right star delay */
.star.right {
  animation-delay: 0.3s;
}

/* Text animation */
.text {
  display: inline-block;
  background: linear-gradient(90deg, #11e7d5, #2f55ff, #75fc80);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-gradient 3s linear infinite, text-glow 1.5s infinite alternate;
}

/* Star glow animation */
@keyframes star-glow {
  0% { transform: scale(1); text-shadow: 0 0 2px #11e7d5; }
  50% { transform: scale(1.2); text-shadow: 0 0 10px #2f55ff; }
  100% { transform: scale(1); text-shadow: 0 0 2px #75fc80; }
}

/* Text gradient move */
@keyframes text-gradient {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Text glow */
@keyframes text-glow {
  0% { text-shadow: 0 0 4px #11e7d5; }
  50% { text-shadow: 0 0 12px #2f55ff; }
  100% { text-shadow: 0 0 4px #75fc80; }
}


.contact-card {
  background: #bbe4bf;
  width: auto;
  height:auto;
  max-height: 600px;
  padding: 18px;
  border-radius: 12px;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  border: 1px solid rgba(0,0,0,0.03);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Hover / focus */
.contact-card:hover,
.contact-card:focus-within {
  transform: translateY(-6px) scale(1.03); 
  box-shadow: 0 12px 30px rgba(15, 42, 29, 0.25); 
  border: 1px solid rgba(15, 42, 29, 0.4);        
}
.responsive-heading {
  font-size: clamp(1rem, 5vw, 2.5rem); /* min 1rem, max 2.5rem, scales with viewport */
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
  word-wrap: break-word; /* allow text to wrap on very small screens */
}


/* Wrapper makes table scrollable on small screens */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}

/* Table style */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* ensures readability on larger screens */
  font-family: Arial, sans-serif;
}

.responsive-table th,
.responsive-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.responsive-table thead th {
  background-color: #447744;
  color: #fff;
  text-align: center;
  font-weight: bold;
}

.responsive-table tbody th {
  background-color: #71a66a;
  color: #fff;
  text-align: center;
}

.responsive-table tbody tr:nth-child(even) {
  background-color: #d9ead3;
}

.responsive-table tbody tr:nth-child(odd) {
  background-color: #f0f8f0;
}

/* Hover effect */
.responsive-table tbody tr:hover {
  background-color: #c5e1a5;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .responsive-table th,
  .responsive-table td {
    padding: 8px;
    font-size: 0.85rem;
  }
  ul, ol {
    margin-left: 0.5cm;
  }
  li {
    margin-left: 0.5cm;
  }
}
