:root {
  --max-width: 1200px;

  /* spacing scale (8px system like Apple) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-xxl: 100px;

  /* colors */
  --primary: #64ffda;
  --text: #ccd6f6;
  --muted: #8892b0;
}

.section {
  padding: 100px 24px 80px;
  margin: 0;
  scroll-margin-top: 90px; /* 🔥 GLOBAL FIX */
}

section h2 {
  margin-top: 0;
}

.section > * {
  max-width: var(--max-width);
  margin: 0 auto;
}

::selection {
  background: #64ffda;
  color: #0a192f;
}

html {
  scroll-behavior: smooth;
}

/* RESET */
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-in-out;
  background: radial-gradient(circle at 20% 20%, #0f2a4a 0%, #0a192f 40%, #020c1b 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* GLOBAL SMOOTHNESS */
* {
  transition: all 0.25s ease;
}

h1, h2 {
  text-align: center;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

p {
  text-align: center;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ SECTION ============ */

.logo-img {  
  width: 160px;  
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-container:hover .logo-img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px #64ffda);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #ccd6f6;
  font-size: 16px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;  
  bottom: -4px;
  left: 0;
  background-color: #64ffda;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #64ffda;
}

.nav-links a:hover::after {
  width: 100%;
}

/* RESUME BUTTON */
.resume-btn {
  border: 1px solid #64ffda;  
  color: #64ffda;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 40px; 
  border-radius: 3px;
  font-size: 16px;
  width: fit-content !important; 
  padding: 10px 22px;
  
}

.resume-btn:hover {
  background-color: #64ffda;
  color: #0a192f;
  transform: translateY(-2px);
}

/* ================= NAVBAR (FINAL FIX) ================= */
.navbar {
  display: flex;
  align-items: center;  
  overflow: visible;  
  height: 80px;
  padding: 0 24px; 
  position: sticky;
  justify-content: space-between;
  top: 0;
  z-index: 100;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(18px);
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}

.navbar-container {  
  max-width: 1400px;   /* 🔥 increased */
  margin: 0 auto;
  padding: 0 32px;    
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-center {  
  display: flex;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-img {
  width: 200px;  
}

.menu-toggle span {
  height: 3px;
}

/* ================= PREMIUM SEARCH BAR ================= */
.nav-search {
  display: flex;
  align-items: center;
  color: #64ffda;
  font-size: 16px;
  opacity: 0.8;
  gap: 12px;
  width: 420px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 14px 20px;
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(100,255,218,0.15);
  border-radius: 14px;
  margin-right: auto;  
}

/* INPUT */
.nav-search input {
  flex: 1;

  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ccd6f6;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0;
  margin: 0;
}

/* REMOVE WHITE AUTOFILL BACKGROUND */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(17, 34, 64, 0.6) inset !important;
  -webkit-text-fill-color: #ccd6f6 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* RIGHT SIDE CONTROLS */
.search-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* RESULT COUNT */
#searchCount {
  font-size: 12px;
  color: #64ffda;
  opacity: 0.8;
}

/* SMALL ICON BUTTONS */
.search-actions button {
  background: transparent;
  border: none;
  color: #64ffda;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.7;
}

.search-actions button:hover {
  opacity: 1;
}

/* FOCUS EFFECT */
.nav-search:focus-within {
  border-color: rgba(100,255,218,0.6);
  box-shadow: 
    0 0 0 1px rgba(100,255,218,0.4),
    0 8px 30px rgba(100,255,218,0.15);
  width: 420px;
  border-color: rgba(100,255,218,0.5);
  transform: translateY(-1px) scale(1.02);
}

/* SUBTLE HOVER */
.nav-search:hover {
  border-color: rgba(100,255,218,0.3);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

/* HIGHLIGHT */
.highlight {
  background: #64ffda;
  color: #0a192f;
  border-radius: 2px;
}
.highlight.active {
  background: #22c55e;
}

/* RESULT COUNT */
#searchCount {
  font-size: 12px;
  color: #64ffda;
  opacity: 0.8;
}

.nav-search input::placeholder {
  color: #8892b0;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

.nav-search:focus-within input::placeholder {
  opacity: 1;
  color: #e6f1ff;
}

/* FIX INPUT TEXT COLOR (CHROME BUG FIX) */
.nav-search input,
.nav-search input:focus,
.nav-search input:active {
  color: #e6f1ff !important;
  -webkit-text-fill-color: #e6f1ff !important;
}

/* REMOVE AUTOFILL STYLE */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ccd6f6 !important;

  -webkit-box-shadow: 0 0 0 1000px rgba(17, 34, 64, 0.6) inset !important;

  transition: background-color 5000s ease-in-out 0s;
}

.nav-search input::selection {
  background: #64ffda;
  color: #0a192f;
}

/* PLACEHOLDER */
.nav-search input::placeholder {
  color: #8892b0;
  opacity: 0.6;
}

/* ACTIVE TEXT */
.nav-search:focus-within input {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* ================== Search Result ============== */

.search-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: auto;
  width: 100%;
  max-width: 500px;
}

/* FEEDBACK POSITION */
.search-feedback {
  
  margin-left: 4px;
  padding-left: 28px; /* aligns with text start after icon */
  font-size: 13px;
  color: #64ffda;
  opacity: 0;
  transform: translateY(-5px);
  transition: 0.25s ease;
}

/* SHOW */
.search-feedback.active {
  opacity: 1;
  transform: translateY(0);
}

/* LOGO */
.logo-container {
  display: flex;  
  align-items: center; /* perfect vertical centering */
  margin-right: 90px; /* controls gap between logo & search */
}

.logo-img {
  width: 130px;  
  height: auto;
}


/* INPUT */
.nav-search input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ccd6f6;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0;
  margin: 0;
}

/* REMOVE WHITE AUTOFILL BACKGROUND */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(17, 34, 64, 0.6) inset !important;
  -webkit-text-fill-color: #ccd6f6 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* RIGHT SIDE CONTROLS */
.search-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* RESULT COUNT */
#searchCount {
  font-size: 12px;
  color: #64ffda;
  opacity: 0.8;
}

/* SMALL ICON BUTTONS */
.search-actions button {
  background: transparent;
  border: none;
  color: #64ffda;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.7;
}

.search-actions button:hover {
  opacity: 1;
}

/* FOCUS EFFECT */
.nav-search:focus-within {
  border-color: rgba(100,255,218,0.6);
  box-shadow: 
    0 0 0 1px rgba(100,255,218,0.4),
    0 8px 30px rgba(100,255,218,0.15);
  width: 420px;
  border-color: rgba(100,255,218,0.5);
  transform: translateY(-1px) scale(1.02);
}

/* SUBTLE HOVER */
.nav-search:hover {
  border-color: rgba(100,255,218,0.3);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

/* HIGHLIGHT */
.highlight {
  background: #64ffda;
  color: #0a192f;
  border-radius: 2px;
}
.highlight.active {
  background: #22c55e;
}

/* RESULT COUNT */
#searchCount {
  font-size: 12px;
  color: #64ffda;
  opacity: 0.8;
}

.nav-search input::placeholder {
  color: #8892b0;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

.nav-search:focus-within input::placeholder {
  opacity: 1;
  color: #e6f1ff;
}

/* FIX INPUT TEXT COLOR (CHROME BUG FIX) */
.nav-search input,
.nav-search input:focus,
.nav-search input:active {
  color: #e6f1ff !important;
  -webkit-text-fill-color: #e6f1ff !important;
}

/* REMOVE AUTOFILL STYLE */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ccd6f6 !important;

  -webkit-box-shadow: 0 0 0 1000px rgba(17, 34, 64, 0.6) inset !important;

  transition: background-color 5000s ease-in-out 0s;
}

.nav-search input::selection {
  background: #64ffda;
  color: #0a192f;
}

/* PLACEHOLDER */
.nav-search input::placeholder {
  color: #8892b0;
  opacity: 0.6;
}

/* ACTIVE TEXT */
.nav-search:focus-within input {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* ================== Search Result ============== */

.search-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: auto;
}

/* FEEDBACK POSITION */
.search-feedback {
  
  margin-left: 4px;
  padding-left: 28px; /* aligns with text start after icon */
  font-size: 13px;
  color: #64ffda;
  opacity: 0;
  transform: translateY(-5px);
  transition: 0.25s ease;
}

/* SHOW */
.search-feedback.active {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */
.hero {
  min-height: calc(100vh - 80px); 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;  
  text-align: center;
  padding: 0 20px;
  padding-top: 60px;
}
  
.hero-btn {
  display: flex;
  justify-content: center;   /* 🔥 center horizontally */
  margin-top: 25px;
  text-align: center;  
}

.hero .description {
  margin-bottom: 10px;
  max-width: 650px;
}

.hero h1 {
  background: linear-gradient(90deg, #ccd6f6, #64ffda); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.hero h2 {
  margin-bottom: 15px;
}

/* TEXT */
h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 10px;
}

h2 {
  font-size: 32px;
  color: var(--secondary);
  margin: 0 0 20px;
}

.description {
  font-size: 16px;
  color: #8892b0;
  max-width: 540px;
  margin-bottom: 25px;
}

/* ============= Clear Button in Searchbar ============= */
/* CLEAR BUTTON */
.clear-btn {
  font-size: 16px;
  color: #8892b0;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;

  transition: 0.2s ease;
}

/* SHOW WHEN ACTIVE */
.nav-search.active .clear-btn {
  opacity: 1;
  pointer-events: all;
}

/* HOVER */
.clear-btn:hover {
  color: #64ffda;
  transform: scale(1.1);
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 4px;
}

.btn:hover {
  background-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

/* ABOUT */
.about-section {
    padding: 120px 40px;
}

.about {
  padding: 120px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 28px;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 200px));
  gap: 10px;
  
  list-style: none;
  padding: 0;
}

.skills-list li {
  background-color: #112240;
  padding: 8px 12px;
  border-radius: 4px;
  color: #64ffda;
}

/* ================= ABOUT SECTION =================== */
.about-section {  
  background: #0a192f;
}

/* TITLE */
.about-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

/* WRAPPER */
.about-wrapper {
  max-width: 850px;
  margin: auto;
  padding: 0 20px;
  text-align: center;
}

/* IMAGE */
.about-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;  
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid #64ffda;
}


/* PROFILE IMAGE */
.about-image img {   
  border-radius: 50%;  
  object-position: 50% 35%;
  border: 3px solid #64ffda;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

/* HOVER EFFECT */
.about-image img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.6),
              0 0 60px rgba(100, 255, 218, 0.3);
}

/* TEXT */
.about-text {  
  max-width: 850px;
  margin: 40px auto 0;  
  text-align: left;
}

.about-text p {    
  font-size: 16px;
  line-height: 1.9;
  color: #b8c7e0;  
  text-align: justify;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}


/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* STAGGER EFFECT */
.about-title { transition-delay: 0.1s; }
.about-image { transition-delay: 0.2s; }
.about-text { transition-delay: 0.3s; }


/* ================= CONTACT SECTION ================= */

#contact {  
  background: #0a192f;  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  
}

textarea {
  min-height: 100px;
  resize: none;
}
/* HEADER */
.contact-header {
  text-align: center;
  margin-bottom: 25px;
  scroll-margin-top: 100px;    
}

.contact-header h2 {
  font-size: 30px;
  margin-bottom: 10px;
  color: #ccd6f6;
}

.contact-header p {
  color: #8892b0;
  font-size: 14px;
  margin-bottom: 30px;
}

/* GRID */
.contact-grid {  
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 180px;
  max-width: 1100px;
  margin: 0 auto;  
  align-items: start;  
}

.contact-grid > div {
  margin-top: 0 !important;
}

/* LEFT INFO */
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color:#a8b2d1;  
  font-size: 15px;  
  gap: var(--space-sm);
  margin-bottom: 0;
  position: relative;
  justify-content: flex-start;
  transition: transform 0.25s ease, color 0.25s ease;
}

.info-item:hover {
  transform: translateX(5px);
  color: #64ffda;
}

.info-item span {
  font-size: 15.5px;
  letter-spacing: 0.3px;
}

/* LEFT ICON */
.info-item > i:first-child {
  width: 38px;
  height: 38px;
  background: rgba(100,255,218,0.08);
  color: #64ffda;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* INPUT GROUP */
.input-group {
  position: relative;  
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px 14px;  
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #ccd6f6;
  font-size: 14px;
  outline: none;
}

/* LABEL DEFAULT (inside box) */
.input-group label {
  position: absolute;
  left: 14px;
  top: 16px;
  color: #8892b0;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.25s ease;
  background: #0a192f;
  padding: 0 6px;
}

textarea {
  resize: none;
  min-height: 120px;
}

.message-box textarea {
  min-height: 90px;
  height: 90px;
}

.input-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #64ffda;
}

/* FLOAT UP ON FOCUS OR INPUT */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -8px;
  left: 10px;  
  font-size: 12px;
  color: #64ffda;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #64ffda;
}

/* FOCUS */
.input-group input:focus,
.input-group textarea:focus {
  border-color: #64ffda;
  box-shadow: 0 0 2px rgba(100, 255, 218, 0.2);
  outline: none;
}

/* BOTTOM SECTION */
.contact-bottom {
  max-width: 1000px;     
  display: flex;
  align-self: end; 
  flex-direction: column;
  align-items: flex-start; 
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 18px; /* tighter + premium */
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 25px; /* tighter + premium */
}

/* SOCIAL */
.social-icons {
  display: flex;  
  margin-bottom: 8px;  
  gap: var(--space-sm); 
}

.social-icons a {
  font-size: 22px;
  color: #8892b0;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #64ffda;
  transform: translateY(-3px);
  text-shadow: 0 0 12px rgba(100,255,218,0.6);
}

/* WHATSAPP */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  max-width: 260px;
  padding: 12px 16px;
  border: 1px solid #64ffda;
  border-radius: 8px;
  color: #64ffda;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn i {
  font-size: 16px;
}

.whatsapp-btn:hover {
  background: #64ffda;
  color: #0a192f;
}

/* FORM ACTIONS (BUTTON + MSG ALIGNMENT) */
.form-actions {
  margin-top: 15px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

/* ============= SEND BUTTON =============== */
.send-btn {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(100,255,218,0.4);
  background: rgba(100,255,218,0.05);
  color: #64ffda;
  font-weight: 500;
  letter-spacing: 0.5px;  
  justify-content: center;
  display: inline-block;
  align-items: center;
  transition: all 0.3s ease;
}

.send-btn:hover {
  background: #64ffda;
  color: #0a192f;
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(100,255,218,0.4);
}

/* LOADER */
.loader {
  display: none;
  width: 16px;  
  border: 2px solid #64ffda;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* SUCCESS MESSAGE */
#msg {
  display: block;  
  color: #64ffda;
  font-size: 13px;
}

/* =========================
   PROJECTS SECTION
========================= */

#projects {  
  background: #0a192f;
}

/* CONTAINER */
.projects-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* TITLE */
.projects-title {
  font-size: 42px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* SUBTITLE */
.projects-subtitle {
  color: #8892b0;
  margin-bottom: 60px;
  font-size: 15px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

/* =========================
   PROJECT CARD
========================= */

.project-card {
  text-align: left;
  padding: 26px;
  border-radius: 16px;

  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.05);

  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border 0.3s ease;
}

/* HOVER EFFECT */
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(100,255,218,0.2);
  border: 1px solid rgba(100,255,218,0.25);
}

/* TITLE */
.project-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #ccd6f6;
}

/* META INFO */
.project-meta {
  display: block;
  font-size: 13px;
  color: #8892b0;
  margin-bottom: 12px;
}

/* DESCRIPTION */
.project-card p {
  font-size: 14px;
  color: #a8b2d1;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* =========================
   IMPACT TOGGLE
========================= */

.impact-toggle {
  background: none;
  border: none;
  color: #64ffda;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
  transition: 0.2s ease;
}

.impact-toggle:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* HIDDEN CONTENT */
.project-impact {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* ACTIVE */
.project-impact.active {
  max-height: 200px;
}

/* LIST */
.project-impact ul {
  padding-left: 18px;
  margin-bottom: 14px;
}

.project-impact li {
  font-size: 13px;
  color: #a8b2d1;
  margin-bottom: 6px;
}

/* =========================
   TECH STACK
========================= */

.tech-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tech-stack span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;

  background: rgba(100,255,218,0.08);
  border: 1px solid rgba(100,255,218,0.2);
  color: #64ffda;

  transition: all 0.25s ease;
}

.tech-stack span:hover {
  background: rgba(100,255,218,0.18);
}

/* =========================
   VIEW MORE BUTTON
========================= */

.view-more-container {
  text-align: center;
  margin-top: 50px;
}

#viewMoreBtn {
  background: transparent;
  border: 1px solid #64ffda;
  color: #64ffda;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#viewMoreBtn:hover {
  background: #64ffda;
  color: #0a192f;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100,255,218,0.25);
}

/* =========================
   HIDDEN PROJECTS
========================= */

.hidden-project {
  display: none;
}

/* SHOW ANIMATION */
.project-card.show {
  display: block;
  animation: fadeUp 0.5s ease forwards;
}

/* =========================
   ANIMATION
========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================= BACK TO TOP BUTTON ================= */
.back-to-top {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.08);
  border: 1px solid rgba(100, 255, 218, 0.25);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: all 0.3s ease;
}

/* ICON ANIMATION */
.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.35s ease;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 rgba(100,255,218,0.3); }
  50% { box-shadow: 0 0 20px rgba(100,255,218,0.6); }
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* ===== TOOLTIP ===== */
.tooltip {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(10, 25, 47, 0.95);
  color: #64ffda;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(100, 255, 218, 0.15);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

/* SHOW TOOLTIP */
.back-to-top:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; 
  background: rgba(10, 25, 47, 0.9);
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.menu-toggle {
  width: 28px;  
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-toggle span {  
  width: 100%;
  background: #ccd6f6;
  border-radius: 2px;
  transition: 0.3s;
}

/* ANIMATION → CROSS */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ================= PREMIUM SIDE MENU ================= */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%; /* HIDDEN by default */
  height: 100vh;
  width: 78%;
  max-width: 300px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(25px) saturate(140%);
  box-shadow: -10px 0 40px rgba(0,0,0,0.6),
    inset 1px 0 0 rgba(255,255,255,0.05);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(40px); 
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 100px 30px 30px;
  
}

/* BACKDROP */
.menu-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(2, 12, 27, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  position: fixed;
  
}

.menu-toggle span {
  height: 3px;
  background: #ccd6f6;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ACTIVE */
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ACTIVE STATE */
.side-menu.active {
  right: 0;
  transform: translateX(0);
}

/* LINKS */
.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;  
}

.side-menu li {
  margin: 20px 0;
  opacity: 0;
  transform: translateX(20px);
}

/* Animate when open */
.side-menu.active li {
  animation: slideInItem 0.5s forwards;
}

/* STAGGER DELAY */
.side-menu.active li:nth-child(1) { animation-delay: 0.1s; }
.side-menu.active li:nth-child(2) { animation-delay: 0.18s; }
.side-menu.active li:nth-child(3) { animation-delay: 0.26s; }
.side-menu.active li:nth-child(4) { animation-delay: 0.34s; }

@keyframes slideInItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.side-menu a {
  color: #ccd6f6;
  font-size: 18px;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  position: relative;
  transition: all 0.25s ease;
}

.side-menu a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #64ffda;
  transition: width 0.3s ease;
}

.side-menu a:hover {
  color: #64ffda;
  transform: translateX(6px);
}

.side-menu a:hover::after {
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

/* ================= SEARCH OVERLAY ================= */
.search-overlay {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;  
  background: rgba(10, 25, 47, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s;
  z-index: 1000;
}

.search-overlay input {
  width: 60%;
  padding: 15px;
  font-size: 18px;
  border: none;
  outline: none;
}

.search-overlay.active {
  top: 0;
}

/* ===== GLASS NAVBAR ON SCROLL ===== */
.navbar.scrolled {
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  width: 0%; 
  top: 0;
  left: 0;
  background: #64ffda;
  transition: 0.4s;
  z-index: -1;
}

.btn:hover::after {
  width: 100%;
}

.btn:hover {
  color: #0a192f;
}

.project-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* ================= FOOTER ================= */
.footer {  
  background: rgba(10, 25, 47, 0.6);
  opacity: 0;
  position: relative;
  overflow: hidden;
  transform: translateY(40px);
  transition: all 0.8s ease;
  padding: 60px 24px 30px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer.show {
  opacity: 1;
  transform: translateY(0);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    #64ffda,
    #00c6ff,
    #64ffda,
    transparent
  );

  background-size: 200% auto;
  animation: waveLine 4s linear infinite;
}

@keyframes waveLine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.footer::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100,255,218,0.15), transparent);
  bottom: -100px;
  left: -100px;
  filter: blur(80px);
  animation: glowMove 6s ease-in-out infinite alternate;
}

@keyframes glowMove {
  from { transform: translate(0, 0); }
  to   { transform: translate(60px, -40px); }
}

.footer-row > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.footer-row > *:nth-child(1) { animation-delay: 0.2s; }
.footer-row > *:nth-child(2) { animation-delay: 0.4s; }
.footer-row > *:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* BRAND */
.footer-brand {
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo {
  width: 200px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #8892b0;
  font-size: 14px;
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 16px;
  color: #ccd6f6;
}

.footer-col a {
  display: block;
  color: #8892b0;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #64ffda;
  transform: translateX(4px);
}

/* BOTTOM */
.footer-bottom {  
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;     /* 🔥 stack vertically */
  align-items: center;        /* 🔥 center everything */
  justify-content: center;
  gap: 10px;                  /* spacing between icons & text */
  text-align: center;
}

/* CENTER COPYRIGHT */
.footer-bottom p {  
  margin: 0;
  color: #8892b0;
  font-size: 13px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-social a {
  color: #8892b0;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s;
}

.footer-social a:hover {
  transform: translateY(-4px) scale(1.15);
  color: #64ffda;
}

.footer-bottom p {
  color: #8892b0;
  font-size: 13px;
  position: static;
  transform: none;
  margin: 0;  
}

/* ============== TEXT CLICKABLE ================ */
.reveal-text {
  flex: 1;
  display: flex;
  align-items: center;
  color: #ccd6f6;
  cursor: pointer;
}

/* ============ COPY ICON (hidden initially) ============== */
/* RIGHT SIDE WRAPPER */
.copy-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* COPY BUTTON */
.copy-btn {  
  background: transparent;
  border: none;
  color: #64ffda;
  font-size: 16px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;   /* match text height */
  line-height: 1; /* remove extra spacing */  
}

/* DISABLED STATE */
.copy-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  
}

.copy-btn i {
  display: block;
  line-height: 1; 
  transform: translateY(1px) 
}

/* TOOLTIP BELOW ICON */
.copy-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 130%;          /* below icon */
  right: 0;           /* align with icon */
  transform: none;    /* remove center shift */
  background: #0a192f;
  left: 0;
  color: #64ffda;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 5px;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: 0.2s;
}

/* SHOW TOOLTIP */
.copy-btn:hover::after {
  opacity: 1;
}

/* HOVER EFFECT */
.copy-btn:not(.disabled):hover i {
  transform: translateY(1px) scale(1.15);
}


/* LABEL TEXT */
.copy-label {
  font-size: 12px !important;
  color: #64ffda;
  line-height: 1;        /* removes vertical offset */
  letter-spacing: 0.3px;  
  opacity: 0;
  transform: translateY(1px);
  transition: 0.2s ease;
  pointer-events: none; 
}

/* ACTIVE STATE */
.copy-btn:not(.disabled):hover + .copy-label {
  color: #64ffda;
}


.copy-icon {
  all: unset;
  margin-left: auto;   /* pushes to right */
  flex-shrink: 0;
  position: relative;  /* required for tooltip */
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  color: #64ffda;
}

/* SHOW AFTER REVEAL */
.copy-icon.show {
  opacity: 1;
  transform: scale(1);
}

/* SUCCESS STATE */
.copy-icon.copied {
  color: #22c55e;
}

/* TOOLTIP BASE */
.copy-icon {
  position: relative;
}

/* TOOLTIP TEXT */
.copy-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 25, 47, 0.95);
  color: #64ffda;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.copy-icon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  background: rgba(10, 25, 47, 0.95);
  opacity: 0;
  transition: 0.25s ease;
}

/* SHOW TOOLTIP */
.copy-icon:hover::after,
.copy-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal-text {
  flex: 1;
}

/* SHOW ON HOVER */
.copy-wrapper:hover .copy-label {
  opacity: 1;
  transform: translateY(0);
}

/* OPTIONAL: highlight on active */
.copy-btn:not(.disabled):hover + .copy-label {
  color: #64ffda;
}






/* =========================
   TABLET (≤1024px)
========================= */
@media (max-width: 1024px) {

  /* NAVBAR */
  .nav-search {
    width: 300px;
  }

  .logo-container {
    margin-right: 40px;
  }

  .nav-links {
    gap: 20px;
  }

  /* HERO */
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 26px;
  }

  .hero .description {
    max-width: 520px;
  }

  /* ABOUT */
  .about-text {
    padding: 0 20px;
  }

  /* PROJECTS */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CONTACT */
  #contact.section {
    padding: 40px 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
  }

  .contact-left {
  gap: 14px;
  }

  .contact-right {
  gap: 18px;
  }

  /* FOOTER */
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-bottom p {
    position: static;
    transform: none; 
    text-align: center;
    order: 2; 
  }

  .footer-social {
    justify-content: center;
    order: 1;
  }

.copy-btn i {
  display: block;
  line-height: 1; 
  transform: translateY(-4px) !important;
}

.copy-btn:not(.disabled):hover i {
    transform: translateY(-4px) scale(1.15) !important;
}

}

















/* =========================
   MOBILE (≤768px)
========================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    height: 70px;
    padding: 0 16px;
  }

  .navbar-container {
    display: flex;
    justify-content: space-between !important; 
    align-items: center;
    width: 100%;
    padding: 0 16px;
  }

  .nav-left {
    flex: unset;
    justify-content: flex-start;
    flex: 0 0 auto;
  }  

  .nav-right {
    flex: unset;
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .nav-center {
    display: none !important;
    width: 0;
  }

  .nav-links {
    display: none; /* hide links */
  }

  .menu-toggle {
    display: flex;
  }

  .side-menu {
    width: 65%;
    max-width: 280px;
    padding-top: 80px;
  }

  .side-menu li {
  margin: 18px 0;
  }

  .nav-center {
    display: none; /* hide search */
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .logo-container {
    margin-right: 0 !important;
  }

  .logo-img {
    width: 120px;
  }

  /* HERO */
  .hero {
    min-height: auto;
    padding-top: 50px;
    justify-content: flex-start;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 20px;
  }

  .description {
    font-size: 14px;
    line-height: 1.6;
  }

  /* ABOUT */
  .about-image {
    width: 180px;
    height: 180px;
  }

  .about-text {
    text-align: left;
    padding: 0 10px;
  }

  .about-text p {
    font-size: 14px;
  }

  /* PROJECTS */
  #projects {
    padding: 80px 20px;
  }

  .projects-title {
    font-size: 30px;
  }

  .projects-subtitle {
    font-size: 14px;
    margin-bottom: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 20px;
  }

  /* CONTACT */
  #contact.section {
    padding: 40px 20px;
  }

  .contact-grid {
    display: flex;              /* switch from grid → flex */
    flex-direction: column;     /* stack everything */
    gap: 30px;
  }

  .contact-left,
  .contact-right {
    width: 100%;
  }

  .contact-left {
    align-items: flex-start;
  }

  .info-item {
    width: 100%;
  }

  .contact-right {
    margin-top: 10px;
  }

  .contact-header h2 {
    font-size: 24px;
  }

  .contact-header p {
    font-size: 13px;
  }

  .input-group input,
  .input-group textarea {
    font-size: 13px;
    padding: 14px;
  }

  .send-btn {
    width: 100%;
  }

  /* BACK TO TOP */
  .back-to-top {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    right: 12px;
    width: 45px;
    height: 45px;
    z-index: 9999;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }

  .footer-left {
    align-items: center;
    text-align: center;
  }

  .footer-bottom-row {    
    text-align: center;
    gap: 20px;
  }

  .footer-social {
    justify-content: center;
  }

.info-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
}

.copy-btn {
  margin-left: auto;
  flex-shrink: 0;
}

.copy-btn i {
  display: block;
  line-height: 1; 
  transform: translateY(12px) !important;
}

.copy-btn::after {
    right: 0;
    left: auto;
}

.copy-btn:not(.disabled):hover i {
    transform: translateY(12px) scale(1.15) !important;
}

}










/* =========================
   SMALL MOBILE (≤480px)
========================= */
@media (max-width: 480px) {

  /* HERO */
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 18px;
  }

  .description {
    font-size: 13px;
  }

  /* LOGO */
  .logo-img {
    width: 140px;
  }

  /* ABOUT */
  .about-image {
    width: 150px;
    height: 150px;
  }

  .about-text p {
    font-size: 13px;
    line-height: 1.7;
  }

  /* PROJECTS */
  .project-card h3 {
    font-size: 18px;
  }

  .project-card p {
    font-size: 13px;
  }

  .project-meta {
    font-size: 12px;
  }

  .tech-stack span {
    font-size: 11px;
  }

  /* CONTACT */
  .info-item span {
    font-size: 13px;
  }

  .info-item i {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .whatsapp-btn {
    font-size: 13px;
    padding: 10px;
  }

  /* FOOTER */
  .footer-links {
    display: flex;
    gap: 28px;
  }

  .footer-social {
      gap: 16px;
 }

  .footer-social a {
    transition: transform 0.3s ease, color 0.3s;
  }

  .footer-social a:hover {
    transform: translateY(-4px) scale(1.15);
    color: #64ffda;
  }
  .footer-bottom p {
    font-size: 11px;
  }

}
