*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}
.container{
    padding: 10px 10%;
}
:root {
  --bg-color: #fff;
  --text-color: #111;
  --card-bg: #f9f9f9;
  --accent: #007bff;
}
body.dark-mode {
  --bg-color: #080808;
  --text-color: #fff;
  --card-bg: #1a1a1a;
  --accent: #66ccff;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 10%;
  position: sticky;
  top: 0;
  background: var(--bg-color);
  z-index: 1000;
  border-bottom: 1px solid #ccc;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav li {
  margin: 0;
  padding: 0;
}

/*Book Logo Settings Start*/

.logo {
  width: 80px !important;
  height: auto !important;
}

.logo-dark {
  display: none;
}

.dark-mode .logo-dark {
  display: inline;
}

.dark-mode .logo-light {
  display: none;
}

/*Logo Settings End*/

nav ul li{
    display: flex;
    align-items: center; 
    list-style: none;
    margin: 10px 20px;

}

nav ul li a{
    color: var(--text-color);
    text-decoration: none;
    vertical-align: middle;
    line-height: 1.6;
    display: inline-block;
    font-size: 18px;
    position: relative;
}

nav ul li a:hover {
  color: var(--accent);
}

/*Toogle Dark Button*/
.toggle-mode {
  background-color: var(--card-bg);
  border: 1px solid rgba(20, 20, 20, 0.205); /* lighter border */
  border-radius: 10px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  position: absolute; /* Prevent it from affecting hero layout */
  top: 20px;
  right: 20px;
  z-index: 999; /* Ensure it stays on top */
}

.toggle-mode:hover {
  background-color: var(--accent);
  transform: scale(1.05);
}

.toggle-mode .icon {
  font-size: 18px;
  color: var(--text-color);
  transition: transform 0.3s, color 0.3s;
}

body.dark-mode .toggle-mode .icon {
  transform: rotate(180deg);
}

/*Hero Class (Header)*/
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem; /* ✅ tighter layout */
  padding: 3rem 10%;
  background-color: var(--card-bg);
  flex-wrap: wrap;
  text-align: left;
}

.hero-text {
  max-width: 500px;
  margin: 0 auto; /* centers on small screens */
}

/* Target the image block */
.hero-image {
  flex: 1 1 350px;
  max-width: 350px;
  margin: 0;        /* ✅ remove default margin */
  padding: 0;       /* ✅ remove default padding */
}

.hero-image img {
  width: 100%;      /* ✅ responsive scaling */
  height: auto;
  max-width: 400px; /* adjust if needed */
}

.hero-image svg {
  width: 100%;
  height: auto;
  display: block;
}

/*Hero Animation*/
.typing-line {
  opacity: 0;
  transform: translateX(-20px);
  animation: showAndClear 8s linear infinite;
  animation-fill-mode: both;
}

.line1 {
  animation-delay: 0s;
}

.line2 {
  animation-delay: 1s;
}

.line3 {
  animation-delay: 2s;
}

.line4 {
  animation-delay: 3s;
}

@keyframes showAndClear {
  0%, 10% {
    opacity: 0;
    transform: translateX(-20px);
  }

  20%, 60% {
    opacity: 1;
    transform: translateX(0);
  }

  80%, 100% {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* Dropdown styles */
.dropdown {
  position: relative;
  padding: 5px;
  top: calc(100% + 10px); /* adds vertical buffer below the text */
}

.dropdown > a {
  display: flex;
  align-items: center;
  position: relative;
  gap: 6px;
  line-height: 1.6;
  z-index: 2;
}

.dropdown .arrow {
  margin-left: 6px;
  transition: transform 0.3s ease;
  display: flex;
}

.dropdown:hover .arrow {
  transform: rotate(90deg);
}

/* Make the dropdown content float below with space */
.dropdown-content {
  position: absolute;
  top: calc(100% + 1px); /* creates a small buffer zone */
  left: 0;
  background-color: var(--bg-color);
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  padding: 10px 0;
  display: none;
  z-index: 1;
  min-width: 180px;
  pointer-events: auto;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/*Dropdown content li*/
.dropdown-content a::after {
  content: none;
  display: none;
}

.dropdown-content li {
  list-style: none;
 /* padding: 10px 16px;*/
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 8px; /* 👈 Soft edges */
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  width: 100%;
  height: 100%;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-link:hover {
  background-color: rgba(155, 147, 147, 0.021);
  color: var(--accent);
}

.dark-mode .dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-content li:hover {
  background-color: rgba(0, 0, 0, 0.05); /* or use a light blue tint */
}

.dark-mode .dropdown-content li:hover {
  background-color: rgba(255, 255, 255, 0.05); /* Light tint for dark mode */
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .dropdown-icon {
  filter: invert(1) brightness(2) contrast(1.1);
}

.dark-mode .dropdown-content {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/*Dropdown content li Finish*/
.dropdown-icon { /*Project dropdown icons*/
  width: 20px;
  height: 20px;
  opacity: 0.5;
}


.header-text{
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1{
    margin-top: 20px;
    font-size: 60px;
}

.header-text h1 span{
    color: #d8d2b7;
}

/*Feature Projects*/
/* — Featured Projects Section CSS — */

/* Section wrapper */
.projects {
  padding: 3rem 10%;
  max-width: 1800px;
  margin: 0 auto;
  padding-top: 2rem;
}

/* Heading with accent */
.projects h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}
.projects .highlight {
  color: var(--accent);
}

/* Two-column layout, tighter gap */
.projects-container {
  display: flex;
  gap: 0.5rem;              /* reduced from 2rem */
  max-width: 1200px;
  margin: 2rem auto 0;
}

/* Left nav, wider tabs, no bottom border */
.project-nav {
  position: sticky;
  top: 4rem;      /* ← push it down by your header’s height */
  z-index: 1;     /* ← ensure it stays underneath your header */
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0.75rem;
  flex: 0 0 240px;        /* widened from 200px */
  border-bottom: none;    /* ensure no stray line */
}
.project-nav hr { display: none; }

/* Tabs */
.project-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* text hugs icon */
  text-align: left;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #666;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 86%;
}
body.dark-mode .project-tab {
  background: #2b2b2b;
  border-color: #444;
  color: #aaa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* default white icons in dark mode */
body.dark-mode .project-tab .tab-icon {
  filter: invert(1) brightness(0.5) ;
}

/* when hovered or active, remove the white filter so it picks up the accent color */
body.dark-mode .project-tab:hover .tab-icon,
body.dark-mode .project-tab.active .tab-icon {
    filter:
    brightness(10%)
    invert(100%)   /* tweak this to get closer to your exact blue */
}

body.dark-mode .project-tab.active,
body.dark-mode .project-tab:hover {
  background: #111111;      /* your light-blue tint */
  border-color: var(--accent);
  color: var(--accent);
}

/* Active & hover */
.project-tab.active,
.project-tab:hover {
  background: #E4E9FF;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/* Tab icons */
.tab-icon {
  width: 30px;
  height: 30px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: filter 0.3s, opacity 0.3s;
}
.project-tab.active .tab-icon,
.project-tab:hover .tab-icon {
  filter: none;
  opacity: 1;
}

/* Preview content area */
.project-content {
  flex: 1;
}

/* Preview panels */
.project-preview {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
body.dark-mode .project-preview {
  background: #1f1f1f;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.hidden {
  display: none;
}

/* Preview header */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.5rem;
}
.preview-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.preview-info p {
  margin: 0 0 0.5rem;
  line-height: 1;
  font-size: 0.85rem;
  color: #555;
}
body.dark-mode .preview-info p {
  color: #aaa;
}
.preview-tags {
  font-size: 0.85rem;
  color: var(--accent);
}

/* Separator line before the circle link */
.preview-link {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
}

/* Circle + system arrow */
.link-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
body.dark-mode .link-circle {
  background: #fff;
}
.arrow-symbol {
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
  transform: rotate(-45deg);       /* start at 45° */
  transition: transform 0.3s ease, color 0.3s ease;
}
body.dark-mode .arrow-symbol {
  color: #111;
}
.preview-link:hover .link-circle {
  background: var(--accent);
}
.preview-link:hover .arrow-symbol {
  transform: rotate(0deg);        /* rotate back to 0° */
  color: #fff;
}

/* Preview image */
.preview-image {
  width: 100%;
  display: block;
  border-top: 1px solid #eee;
  object-fit: cover;
}
body.dark-mode .preview-image {
  border-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-container {
    flex-direction: column;
  }
  .project-nav {
    flex-direction: row;
    overflow-x: auto;
    margin-bottom: 1rem;
    flex: none;
  }
  .project-tab {
    flex: 1 0 auto;
    white-space: nowrap;
  }
}


/*Tech Stack Section*/
.skills-strip {
  padding: 3rem 10%;
  color: white;
  background: #1b4eff;
  text-align: center;
}

.skills-strip h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.stack-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stack-group {
  background: #fafafa;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.479); /* darker + blurrier */
  transition: box-shadow 0.3s ease;
}

.stack-group h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222; /* or use var(--text-color) if you support theming */
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-item:hover {
  background-color: #d9e4ff;
  color: #1b4eff;
  transform: translateY(-2px);
  transition: all 0.2s ease;
  cursor: default;
}

.stack-item {
  padding: 0.4rem 0.8rem;
  background-color: #eee;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
}

/*Stack Icon theme*/
.icon-skill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #eee;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
  transition: background 0.3s ease;
}

.icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cccccc80;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.icon-wrapper img {
  width: 20px;
  height: 20px;
  filter: grayscale(1) brightness(1.2);
  transition: filter 0.3s ease;
}

.icon-skill:hover .icon-wrapper {
  border-color: #1b4cff48;
}

.icon-skill:hover .icon-wrapper img {
  filter: none;
}

.icon-skill {
  text-decoration: none !important; /* Stronger enforcement */
}

/*Why Me? Section*/
.why-me {
  padding: 4rem 1.5rem;
  max-width: 1400px; /* ✅ wider container to fit content better */
  margin: 0 auto;
  text-align: center;
}

.why-me h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.why-me-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  position: relative;  /* Important for absolute positioning */
}

.why-me-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;  /* Center of the wrapper */
  transform: translateX(-50%);
  width: 0.3px;
  background-color: #c6c9cc;
  z-index: 1;
}

body.dark-mode .why-me-wrapper::before {
  background-color: rgba(255, 255, 255, 0.15);
}

.why-me-left,
.why-me-right {
  flex: 1 1 50%;           /* Each half takes 50% of the wrapper */
  max-width: 50%;          /* Prevent overflow into other half */
  box-sizing: border-box;  /* Include padding/borders in width */
}

.why-me-left {
  background: #fff;     
  max-width: 500px;  
  border-radius: 10px;
  padding: 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.why-me-left h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: var(--accent); /* assuming --accent is your site's blue color */
}

body.dark-mode .why-me-left {
  background: #1e1e1e;   /* Or a soft dark background */
  color: #f5f5f5;        /* Light text for readability */
  border: 1px solid #333; /* Optional: subtle border for definition */
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
  line-height: 1.8; 
}

.why-list li:last-child {
  border-bottom: none;
}

.check-icon {
  width: 20px;   /* Adjust size as needed */
  height: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.why-me-right {
  min-width: 200px;
  text-align: center;   /* Center-align carousel content */
  max-width: 600px;     /* ✅ Prevent overflow past divider */
  margin: 0 auto;
  padding-left: 4rem;
}

/* Carousel Styles */
.carousel {
  position: relative;
  min-height: 150px;
}

.carousel-slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease-in-out; /* smoother fade */
  text-align: center;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--accent);
}

.carousel-dots {
  margin-top: 1rem;
  text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--accent);
}

/*Carousel Logos*/
.company-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap; /* 👈 prevents wrapping */
  overflow-x: auto;  /* optional: horizontal scroll if still too tight */
}

.company-item {
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.company-item img {
  height: 60px;
  width: auto;
  object-fit: contain;
  max-width: 100px; /* optional, prevents overly wide logos like Amazon */
  display: block;
  margin: 0 auto;
}

.company-item img[alt="Thales Group"] {
  height: 60px; /* slightly larger than default */
  max-width: 120px; /* optional cap */
}

.company-item p {
  font-size: 0.75rem;
  color: var(--text-color);
  margin: 0;
  transition: color 0.2s ease;
}

.education-icons img {
  width: 70px !important;    /* Adjust size as needed */
  height: auto !important;
  max-width: unset !important;
  max-height: unset !important;
  display: block;
}

.awards-icons img {
  width: 80px !important;     /* Try increasing if needed */
  height: auto !important;
  max-width: unset !important; /* Prevent restrictive overrides */
  max-height: unset !important;
  display: block;
}

/* Highlight label when hovering over link */
.company-item:hover p {
  color: var(--accent); /* Matches your site’s blue */
}

/*Footer Section*/
.footer {
  background-color: var(--card-bg);
  font-size: 0.85rem;
  padding: 20px 0 10px 0; /* tighten space, especially at bottom */
  text-align: center;
  margin-top: 3rem;
  color: var(--text-color);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.icon-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.icon-item:hover span {
  color: var(--accent); /* Or use a custom color like #007bff */
}

.icon-item:hover {
  cursor: pointer;
}

.social-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  object-fit: contain;
}

.contact-line {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1rem;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.copyright {
  text-align: center;
  font-size: 0.75rem; /* smaller than normal */
  color: var(--text-color);
  margin-top: 1rem;
  opacity: 0.6; /* optional: makes it more subtle */
}

/*About me page*/
.about-me-image {
  display: block;
  max-width: 450px;   /* Adjust width as needed */
  margin: 0 auto -3rem auto; /* Center + reduce space below */
  padding-top: -10rem;  /* Optional: reduce top padding if needed */
}