:root {
  --bg: #ffffff;
  --card: #f5f5f5;
  --muted: #555555;
  --accent: #000000;
  --gradient: linear-gradient(90deg, #000000, #333333);
  --maxw: 1100px;
  --border: rgba(0,0,0,0.08);
  --btn-bg: transparent;
  --btn-hover-bg: #000;      /* light mode hover background */
  --btn-color: #000;          /* light mode text */
  --btn-hover-color: #fff;    /* light mode hover text */
  --btn-border: rgba(0,0,0,0.2); /* light mode border */

  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: #000000;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  margin-top: 30px;
  padding: 28px;
  animation: fadeIn 1.2s ease;
}

/* Header */
header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
  animation: slideDown 1s ease;
  position: relative; /* so button positions relative to container */
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* ensures image stays inside rounded corners */
  animation: popIn 1s forwards;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the avatar area while keeping aspect ratio */
  transition: opacity 0.3s ease; /* smooth fade effect */
}

.avatar:hover img {
  content: url("img/profile1.png"); /* swap to profile1.png on hover */
}

@media (max-width: 900px) {
  .avatar {
    width: 88px;
    height: 88px;
  }
}



.hero {
  flex: 1;
}

h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Make the h1 a flex container to align text and image */
.hero h1 {
  display: inline-flex; /* or flex if you want it full width */
  align-items: center;  /* vertically centers the image with text */
  gap: 8px;             /* spacing between text and image */
  flex-wrap: wrap;      /* allow text to wrap on small screens */
}

/* Adjust the verified check size on mobile */
@media (max-width: 600px) {
  .hero h1 img {
    width: 18px !important;
    height: 18px !important;
  }
}


hr {
  margin: 16px 0;
  margin-top: 80px;
  border: none;
  border-top: 1px solid var(--border);
}


.sub {
 
  margin-top: 5px;

}

.sub.location {
  color: var(--muted);   /* muted color */
  font-size: 0.9rem;     /* smaller text (adjust as needed) */
}

.sub.role {
	margin-top: 20px;
  
  font-weight: 400;      
  font-size: 1.1rem;     /* bigger text */
}



.badges {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 6px 12px;
  border-radius: 10px;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--gradient);
  border: 0;
  color: #ffffff;
}

.btn.primary:hover {
  opacity: 0.9;
}

/* Main content */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px; /* main grows, aside fixed */
  gap: 20px;
}

/* Remove gap in mobile view */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr; /* stack layout */
    gap: 0;
  }
}

.card {
  border-radius: 14px;
  padding: 20px;
  margin-top: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  animation: fadeUp 1s ease;
  animation-fill-mode: both;

}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

@media (max-width: 500px) {
  header,
  .allcard,
  aside {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center horizontally */
    justify-content: center; 
    
  }

  .card {
    width: 100%;
    max-width: 355px;  /* keep cards readable on small screens */
    margin-left: auto;
    margin-right: auto;
  }

   .hero h1 {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  
  }

  .badges {

    gap: 6px !important;
  }

  .badges a,
  .badges button {
    font-size: 0.75rem ;
    padding: 6px 10px ;
  }
  
  .contact-item .btn {
    font-size: 0.75rem !important;   /* smaller text */
    padding: 6px 8px !important;     /* reduce button size */
    word-break: break-word !important; /* wrap if too long */
    text-align: center !important;   /* center text */
  }

  .contact-item .btn i {
    font-size: 0.9rem !important;    /* smaller icon */
    margin-right: 4px !important;    /* tighter spacing */
  }
}

@media (max-width: 400px) {
  header,
  .allcard,
  aside {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center horizontally */
    justify-content: center; 
    
  }

  .card {
    width: 100%;
    max-width: 320px;  /* keep cards readable on small screens */
    margin-left: auto;
    margin-right: auto;
  }

   .hero h1 {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  
  }

  .badges {

    gap: 6px ;
  }

  .badges a,
  .badges button {
    font-size: 0.75rem ;
    padding: 6px 10px ;
  }
  
  .contact-item .btn {
    font-size: 0.75rem !important;   /* smaller text */
    padding: 6px 8px !important;     /* reduce button size */
    word-break: break-word !important; /* wrap if too long */
    text-align: center !important;   /* center text */
  }

  .contact-item .btn i {
    font-size: 0.9rem !important;    /* smaller icon */
    margin-right: 4px !important;    /* tighter spacing */
  }
}

@media (max-width: 360px) {
	
	 header,
  .allcard,
  aside {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center horizontally */
    justify-content: center; 
    
  }

  .card {
    width: 100%;
    max-width: 300px;  /* keep cards readable on small screens */
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero h1 {
    font-size: 0.6rem !important;
    line-height: 1.3 !important;
	display: inline-flex;          /* keep text + icon on one line */
         /* vertically center */
  gap: 3px;    
  }
  
  .hero h1 img {
    width: 13px !important;
    height: 13px !important;
  }

  .sub.location,
  .sub.role {
    font-size: 0.55rem !important;
    line-height: 1.2 !important;
  }

  .badges {
    
    gap: 4px !important;
  }

  .badges a,
  .badges button {
    font-size: 0.4rem !important;
    padding: 4px 8px !important;
  }
  
  .project {
     width: 87% !important;       /* make sure it fits container */
  }
}


main > section .card:nth-child(1) { animation-delay: 0.2s; }
main > section .card:nth-child(2) { animation-delay: 0.4s; }
main > section .card:nth-child(3) { animation-delay: 0.6s; }
main > section .card:nth-child(4) { animation-delay: 0.8s; }


.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p.lead {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  margin-top: 10px;
}

a.btn {
  font-size: 15px;
  color: var(--muted);
}

/* Stack / Chips */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #000000;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  background: var(--gradient);
  color: #ffffff;
}



/* Experience */
.experience-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.experience-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.experience-item .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

/* Projects */
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.project-img {
  width: 100%;
  height:170px;
  object-fit: cover;
  display: block;
}

.project div {
  padding: 14px 16px;
}

.project strong {
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.project .meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.project .meta a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.project .meta a:hover {
  text-decoration: underline;
}

/* Aside */
aside .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  
}

aside ul {
  margin-top: 8px;
  margin-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
aside li {
  margin-bottom: 6px;
}


.card .contact-item a,
.card .btn {
  font-size: 0.85rem;
}

.contact-item a[href^="tel"] {
  margin-top: 8px;
  display: inline-block; /* ensures margin works properly */
}


/* Footer */
footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  animation: fadeIn 2s ease;
  line-height: 1.7;
}

/* ICON FIXES */
.card i, 
.chip i, 
aside i, 
footer i {
  font-size: 15px;         
  width: 18px;             
  text-align: center;      
  flex-shrink: 0;          
  line-height: 1;          
  vertical-align: middle;  
  color: grey;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes popIn {
  to { transform: scale(1); }
}

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

/* On smaller screens, stack section + aside */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr; /* single column */
  }

  aside {
    width: 100%; /* make it full width */
    display: block; /* reset in case flex messed it up */
  
  }

  header {
    flex-direction: row;
    align-items: flex-start;
  }

  .avatar {
    width: 88px;
    height: 88px;
    font-size: 22px;
  }

  h1 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
 
  
  /* Decrease badge/chip size on mobile */
  .badges .btn,
  .chip {
    padding: 4px 8px;  /* smaller padding */
    font-size: 0.75rem; /* smaller text */
  }

}



/* Responsive */
@media (max-width: 900px) {
  .avatar {
    width: 108px !important;
    height: 108px !important;
    font-size: 22px !important;
  }

  h1 {
    font-size: 1rem !important; /* smaller text */
  }
}

@media (max-width: 600px) {
  header {
    font-size: 0.75rem !important; /* smaller text */
  }
  
  .sub.location {
    font-size: 0.6rem ;  /* smaller than default 0.9rem */
  }

  .sub.role {
    font-size: 0.7rem;   /* smaller than default 1.1rem */
  }

  /* Decrease badge/chip size on mobile */
  .badges .btn,
  .chip {
    padding: 4px 8px ;  /* smaller padding */
    font-size: 0.50rem ; /* smaller text */
  }
  
  .badges {
    gap: 6px ;
  }
  
  .badges a[href^="tel:"] {
    display: none ;
  }
}

 

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  gap: 8px;
    justify-content: center;
}

.carousel-track img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: scale(1) translateY(0); /* base state */
 
}

.carousel-track img:hover {
  transform: scale(1.05) translateY(-6px); /* zoom + lift up */

}



/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}





/* Dark Mode */
body.dark-mode {
  --bg: #0d0d0d;
  --card: #1a1a1a;
  --muted: #aaaaaa;
  --accent: #ffffff;
  --gradient: linear-gradient(90deg, #ffffff, #666666);
  --border: rgba(255,255,255,0.15);
  --btn-bg: transparent;
  --btn-hover-bg: #fff;      /* dark mode hover background */
  --btn-color: #fff;          /* dark mode text */
  --btn-hover-color: #000;    /* dark mode hover text */
  --btn-border: rgba(255,255,255,0.2); /* dark mode border */
  
  background: var(--bg);
  color: #ffffff;
}

body.dark-mode .btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.dark-mode .btn.primary {
  background: var(--gradient);
  color: #000000;
}

body.dark-mode .chip {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dark-mode .card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode footer {
  color: var(--muted);
}

#darkToggle {
  position: absolute;
  top: 0;
  right: 0;
  margin: 5px;
  z-index: 10;
  white-space: nowrap;
  border: 1px solid var(--btn-border); /* use variable here */
  border-radius: 10px;
  padding: 6px 12px;
  background: var(--btn-bg);
  color: var(--btn-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

#darkToggle:hover {
  background-color: var(--btn-hover-bg);
  color: var(--btn-hover-color);
  transform: translateY(-2px);
}



/* Tablets / medium screens */
@media (max-width: 900px) {
  #darkToggle {
    top: 0;
    right: 0;
    margin: 8px;
    font-size: 0.9rem; 
    padding: 5px 10px;
  }
}

/* Mobile / small screens */
@media (max-width: 600px) {
  #darkToggle {
    position: fixed !important; /* fixed to viewport */
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    font-size: 0.5rem !important;
    padding: 4px 8px !important;
    z-index: 9999 !important; /* ensure it stays on top */
  }
}

/* Floater Messenger Button */
.floater-messenger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0084ff; /* Messenger blue */
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  text-decoration: none;
  font-size: 24px;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floater-messenger:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Dark mode adjustment */
body.dark-mode .floater-messenger {
  background-color: #00a2ff;
  color: #fff;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .floater-messenger {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 14px;
    right: 14px;
  }
}


/* Skills chips */
.stack .fa-html5 { color: #e34f26; }       /* HTML orange */
.stack .fa-css3-alt { color: #1572b6; }    /* CSS blue */
.stack .fa-js { color: #f7df1e; }          /* JavaScript yellow */
.stack .fa-php { color: #777bb4; }         /* PHP purple */
.stack .fa-database { color: #4caf50; }    /* MySQL green */
.stack .fa-figma { color: #f24e1e; }       /* Figma red */
.stack .fa-brain { color: #9c27b0; }       /* Problem-Solving purple */
.stack .fa-bug { color: #ff5722; }         /* Debugging orange */
.stack .fa-users { color: #2196f3; }       /* Team Collaboration blue */
.stack .fa-pen-ruler { color: #3f51b5; }   /* UI/UX indigo */
.stack .fa-palette { color: #31a8ff; }      /* Adobe Photoshop blue */
.stack .fa-paintbrush { color: #9b59b6; }   /* Graphic Designing purple */

/* Horizontal Image Scroll */
.image-list {
  display: flex;
  gap: 12px; /* reduced spacing */
  overflow-x: hidden; /* hide manual scroll */
  padding: 6px 0;
}

.image-card {
  flex: 0 0 150px;  /* smaller width on desktop */
  height: 100px;    /* smaller height on desktop */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet (<= 768px) */
@media (max-width: 768px) {
  .image-card {
    flex: 0 0 100px;  /* narrower */
    height: 80px;
  }
}

/* Mobile (<= 480px) */
@media (max-width: 480px) {
  .image-card {
    flex: 0 0 50px;  /* narrowest */
    height: 70px;
  }
}

