/* ============================================================
   1. ROOT VARIABLES (THEME COLORS & GLOBAL SCALES)
============================================================ */
:root {
  --mustard: #C4A64A;        /* Subtle gold accent */
  --grey-label: #999999;
  --bg-black: #000;
  --bg-dark: #111;
  --bg-box: #1b1b1b;
  --text-white: #ffffff;
  --text-lightgrey: #d1d1d1;

  --sidebar-width: 300px;
  --max-width: 1100px;
}

/* ============================================================
   2. GLOBAL STYLES
============================================================ */
* {box-sizing: border-box;}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text-white); /* Default text color set to white */
  background: linear-gradient(180deg, #000 0%, #111 50%, #1a1a1a 100%);
  -webkit-font-smoothing: antialiased;
}


/* ============================================================
   3. SIDEBAR + PROFILE
============================================================ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #000 0%, #111 100%);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 40;
}

.profile img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.profile {
  text-align: center;
  width: 100%;
}

.profile img {
  display: block;
  margin: 0 auto;
}

.heading.quote h3 {
  color: var(--grey-label);          /* Grey label for the h3 text */
  text-align: center;                /* Center-align the h3 text */
  font-weight: 360;    
}


/* ===============================================================
   4. NAVIGATION — LIGHT GREY ICONS, MUSTARD HOVER + TEXT STYLING
============================================================ */

.nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
  margin-top: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 300;  /* thinner text */
  color: var(--text-lightgrey); /* light grey text */
  text-decoration: none;
  transition: 0.2s ease;
  background: transparent !important; /* no background */
}

.nav-link:hover {
  transform: translateX(6px);
  color: var(--text-white); /* white text on hover */
  font-weight: 600;  /* bold text on hover */
}

.nav-link img.icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) saturate(100%) invert(78%) sepia(61%) saturate(200%) hue-rotate(10deg) brightness(50%); /* very light grey outline */
  transition: 0.25s ease;
}

.nav-link:hover img.icon {
  filter: brightness(0) saturate(100%) invert(65%) sepia(61%) saturate(350%) hue-rotate(10deg) brightness(90%); /* Lightened mustard */
}

.nav-link.active {
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
}

/* ACTIVE STATE — same visual effect as hover, but persistent when scrolling */
.nav-link.active {
  transform: translateX(6px);
  color: var(--text-white);
  font-weight: 600;
}

.nav-link.active img.icon {
  filter: brightness(0) saturate(100%) invert(65%) sepia(61%) 
          saturate(350%) hue-rotate(10deg) brightness(90%);
}



/* ============================================================
   5. MAIN WRAPPER
============================================================ */

.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  max-width: var(--max-width);
  margin-right: auto;
  background-color: var(--bg-black);  /* Set background color to black */
}


/* =============================================================
   6. HERO SECTION
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/img/myphoto.jpeg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 20px;
  text-align: center;
}

.hero h1 { font-size: 48px; margin-bottom: 1px; }
.hero h2 { font-size: 26px; font-weight: 500; margin-bottom: 60px; color: var(--text-lightgrey)}


/* ==============================================================================
   6. HERO SECTION — Underline the typing text while keeping the typing effect
============================================================================== */
.hero h2 .typed {
  position: relative; /* Position the text for the underline */
  display: inline-block; /* Ensures the underline is just under the text */
  color: var(--text-lightgrey); 
}

.hero h2 .typed::after {
  content: ''; /* No actual text, just the underline */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; /* Full width of the typed text */
  height: 2px; /* Thickness of the underline */
  background-color: var(--mustard); /* Mustard color for the underline */
  transform: scaleX(0); /* Start with the underline hidden */
  transform-origin: bottom right;
  animation: typing-underline 1s ease-in-out forwards; /* Animation for underline */
}

/* Animation for the underline to appear as text types */
@keyframes typing-underline {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* ============================================================
   7. BUTTONS
============================================================ */
.btn, .btn-outline, .contact-btn, a.btn, a.contact-btn {
  background: var(--mustard) !important;
  color: black !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid var(--mustard);
  color: var(--mustard) !important;
}

.btn:hover, .contact-btn:hover {
  box-shadow: 0 0 12px var(--mustard);
  transform: translateY(-2px);
}

.hero .btn, .hero .contact-btn {
  margin-top: 40px; 
}

/* ============================================================
   8. SECTIONS
============================================================ */

.section {
  padding: 50px;
  background: var(--bg-dark);  
  border-radius: 12px;
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  color: var(--text-lightgrey)!important; 
  margin-bottom: 25px;
  border-left: 4px solid var(--mustard);
  padding-left: 10px;
}

.section p {
  color: var(--text-lightgrey); /* Light grey for paragraph text */
}

/* ============================================================
   9. ABOUT ME
============================================================ */
.about h2 { font-size: 36px; color: var(--text-lightgrey) !important; }
.about h3 { font-size: 19px; color: var(--grey-label) !important; line-height: 1.5;}
.about p { font-size: 16px; color: var(--text-lightgrey) !important; text-align: justify !important; line-height: 1.5;}

/* ============================================================
   BLOGS AND ARTICLES
============================================================ */

.blogcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.blogcard {
  background: var(--bg-box);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Remove default link styling */
.blogcard a {
  text-decoration: none;
  color: inherit;
}

/* Image wrapper */
.blog-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Blog image */
.blog-image-wrapper img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Overlay */
.blog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Main title */
.blog-overlay h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Subtitle / topics */
.blog-overlay h4 {
  color: #ddd;
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover effects */
.blogcard:hover img {
  transform: scale(1.07);
  opacity: 0.6;
}

.blogcard:hover .blog-overlay {
  opacity: 1;
}

.blogcard:hover .blog-overlay h3,
.blogcard:hover .blog-overlay h4 {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   11. TECHNICAL DOCUMENTATION
============================================================ */

.writing h2 { font-size: 36px; color: var(--text-lightgrey) !important;}

.writingcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.writingcard {
  background:  var(--bg-box); 
  padding: 14px;
  border-radius: 0px;
  color: #ddd;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.writingcard h3 { font-size: 19px; color: var(--grey-label) !important; line-height: 1.25;}

.writingcard h3 a {
  color: inherit;
  display: inline-block;                     
  transition: transform 0.25s ease,
  color 0.25s ease;
}

.writingcard h3 a:hover {
  transform: scale(1.05);                    
  color: var(--text-lightgrey);              
}

.writingcard p {  font-size: 15px;  color: var(--text-lightgrey) !important; line-height: 1.4;}


/* ============================================================
   DATA SCIENCE PROJECTS – Project Cards
============================================================ */

.projectcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.projectcard {
  background: var(--bg-box);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Remove default link styling */
.projectcard a {
  text-decoration: none;
  color: inherit;
}

/* Image wrapper */
.project-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Project image */
.project-image-wrapper img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Main title */
.project-overlay h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Subtitle/tech stack */
.project-overlay h4 {
  color: #ddd;
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover effects */
.projectcard:hover img {
  transform: scale(1.07);
  opacity: 0.6;
}

.projectcard:hover .project-overlay {
  opacity: 1;
}

.projectcard:hover .project-overlay h3,
.projectcard:hover .project-overlay h4 {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   13. CONTACT
============================================================ */

.contact h2 { font-size: 36px; color: var(--text-lightgrey) !important;}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-left,
.contact-right {
  background: var(--bg-box);
  padding: 30px;
  border-radius: 12px;
  border: 2px solid var(--mustard);
  color: var(--text-lightgrey);
}

.contact-left iframe,
.contact-right iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  border: 0;
}

.info-header {
  display: flex;
  align-items: center;      /* Center icon and text vertically */
  gap: 15px;                /* Keep the gap between icon and text comfortable */
}

.info-header h3 {
  margin: 0;               
}

.contact-icon {
  width: 40px;               /* smaller circle */
  height: 40px;
  background: var(--mustard);
  border-radius: 50%;
  margin-bottom: 5px;
  
  display: flex;             /* changed from flex center the inner icon */
  align-items: center;
  justify-content: center;

  margin: 0; 
  padding: 0;                /* remove padding so the SVG stays correct size */
  transition: background 0.3s ease;
}

.contact-icon img {
  width: 16px;
  height: 16px;
  display: block;
  margin: auto;
}

/* Wrapper for the heading and paragraph */

.text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Ensures the text is centered vertically */
  gap: 0;                 /* Slightly reduce the gap between heading and text */
}

.contact-left h3 { font-size: 20px; color: var(--grey-label) !important; }
.contact-right h3 { font-size: 20px; color: var(--grey-label) !important; }
.contact-left p { font-size: 16px; color: var(--text-lightgrey) !important; }
.contact-right p { font-size: 16px; color: var(--text-lightgrey) !important; }

/* ============================================================
   14. SOCIAL ICONS — SMALLER ICONS + CLOSER TOGETHER
============================================================ */

.social-icons {
  display: flex;
  gap: 6px;  /* reduced gap between icons */
  justify-content: center;
  align-items: center;
}

/* icon circle size */
.social-icons a {
  width: 38px;  
  height: 38px; 
  background: #2b2b2b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.25s;
}

.social-icons a:hover {
  background: var(--mustard);
  transform: scale(1.12);
}

/* increased icon size inside */
.social-icons img {
  width: 30px;   /* reduced icon size */
  height: 30px;  /* reduced icon size */
  filter: brightness(0) invert(1);
  transition: 0.25s;
}

.social-icons a:hover img {
  filter: brightness(0);
}


/* ============================================================
   15. FOOTER
============================================================ */

/* Footer sits cleanly at the bottom with no extra spacing */

.site-footer {
  margin-top: 0;
  padding: 5px;
  text-align: center;
  color: #8d8d8d;
}


/* ============================================================
   16. RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  .sidebar {
    position: relative;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
  }

  .profile img {
    width: 56px;
    height: 56px;
  }

  .main { margin-left: 0; }

  .hero h1 { font-size: 32px; }
  .hero h2 { font-size: 20px; }
  .hero-desc { font-size: 16px; }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-icon {
    width: 18px;   /* Make icons smaller */
    height: 18px;  /* Make icons smaller */
  }

  .info-header {
    flex-direction: column; /* Stack the icon and heading vertically on small screens */
    align-items: flex-start; /* Align them to the left */
  }
}
