/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root color variables */
:root {
  --primary: #ffff00;
  --primary-dark: #cccc00;
  --dark: #000000;
  --navy: #1a1a1a;
  --light: #ffffff;
  --lightest: #f5f5f5;
  --transition: all 0.3s ease;
}

.highlight {
  color: var(--primary); /* Uses your yellow color from root variables */
}

.highlight {
  color: #ffff00; /* Bright yellow */
}


/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: var(--light);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}


/* Full-page background image */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  z-index: -1;

  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('Background-Image.jpg'); /* ✅ Update path if needed */

  background-size: cover; /* ✅ Maintains aspect ratio */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}



/*
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  z-index: -1;

  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('test1.jpg'); /* ✅ Update path if needed 

  background-size: 100% 100%; /* Stretch to fit screen
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


/* Old Code for background image */
/* 
.background-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  margin: 0; 
  padding: 0; 
  width: 100%; 
  height: 100%; 
  z-index: -1; /* Behind all content 
  background: linear-gradient( rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4) ), url('test1.jpg'); /* ✅ Replace with your actual image path 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  background-attachment: fixed; 
  /*opacity: 25;
}



/* Layout container */
.max-width {
  max-width: 1300px;
  margin: auto;
  padding: 0 2rem;
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem;
  z-index: 10;
}

.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.menu a {
  color: var(--light);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.menu a:hover {
  color: var(--primary);
}

/* Home Section */
.home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-content {
  max-width: 1000px;        /* ✅ Wider content area */
  margin: 0 auto;           /* ✅ Center horizontally */
  padding: 2rem 3rem;       /* ✅ Add breathing room */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-content h1 {
  font-size: 3.5rem;        /* ✅ Slightly larger headline */
  margin-bottom: 1rem;
}

.home-content .profession {
  font-size: 1.6rem;        /* ✅ More readable subtitle */
  margin-bottom: 2rem;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profession {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* Button group */
.button-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--dark);
}

/* Profile image */
.profile-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.column.left {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  min-width: 180px;
}

.column.left, .column.right {
  flex: 1;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  margin-bottom: 1.5rem;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Titles */
.title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary);
  text-align: center;
}

/* About Section */
.about {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.column.left img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.column.right .title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
}

.column.right p {
  text-align: justify;
  color: var(--light);
  margin-bottom: 1rem;
}

.column.right a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.column.right a:hover {
  color: var(--primary-dark);
}



/* Initial hidden state */
.column.left,
.column.right {
  opacity: 0;
  position: relative;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Photo animation: from top-left */
.column.left {
  transform: translate(-100px, -100px);
}

/* Text animation: from top-right */
.column.right {
  transform: translate(100px, -100px);
}

/* Triggered visible state */
.about.visible .column.left,
.about.visible .column.right {
  opacity: 1;
  transform: translate(0, 0);
}

.column.left {
  transition-delay: 0.2s;
}
.column.right {
  transition-delay: 0.4s;
}

html {
  scroll-behavior: smooth;
}





/* Skills Section */
.skills {
  padding: 6rem 0;
}

/* 5 skill cards as fits in row as per screem size */
.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skills-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

/* Individual card styling */
.skill-card {
  flex: 1 1 250px; /* Grow, shrink, base width */
  max-width: 300px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  color: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Hover effect for readability */
.skill-card:hover {
  background-color: rgba(255, 255, 255, 0.85); /* Light background */
  color: #111; /* Dark text */
  transform: translateY(-5px);
}

.skill-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.skill-card:hover i {
  color: #111;
}

/* Icon color change on hover */
.skill-card:hover i {
  color: #111;
}

@media (max-width: 768px) {
  .skill-card {
    width: 90%;
    max-width: 100%;
  }
}

/* Experience Section */
.experience {
  padding: 6rem 0;
}

.experience-item {
  background: rgba(255, 255, 255, 0.05); /* Default subtle background */
  padding: 2rem;
  border-radius: 10px;
  text-align: left;
  transition: var(--transition);
  color: var(--light); /* Light text by default */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Hover effect for readability */
.experience-item:hover {
  background-color: rgba(255, 255, 255, 0.85); /* Light background */
  color: #111; /* Dark text for contrast */
  transform: translateY(-5px);
}

/* Ensure all child text elements also switch to dark */
.experience-item:hover h3,
.experience-item:hover p,
.experience-item:hover span,
.experience-item:hover li {
  color: #111;
}

/* Optional: icon or title styling */
.experience-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.experience-item:hover i {
  color: #111;
}


.experience-item h3 {
  color: var(--primary);
  font-size: 1.5rem;
}

.experience-item p,
.experience-item li {
  color: var(--light);
  text-align: justify;
}


/* Projects Section */
.projects {
  padding: 6rem 0;
}

.projects-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.projects-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition);
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

/* Hover effect for readability */
.projects-card:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: #111;
  transform: translateY(-5px);
}

/* Ensure all child elements switch to dark */
.projects-card:hover h3,
.projects-card:hover p,
.projects-card:hover span,
.projects-card:hover li {
  color: #111;
}

/* Icon styling */
.projects-card i {
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.projects-card:hover i {
  color: #111;
}

/* Title styling */
.projects-card h3 {
  font-size: 1.3rem;
  color: var(--lightest);
  margin-bottom: 0.5rem;
}

/* Bullet list styling */
.projects-card ul {
  list-style: disc outside;
  text-align: left;           /* ✅ Left-align bullet text */
  padding-left: 1.25rem;      /* Indent bullets */
  margin: 0;
}

/* Bullet item spacing */
.projects-card li {
  font-size: 1rem;
  line-height: 1.5;
}



/* Certifications Section */
.certifications {
  padding: 6rem 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  transition: var(--transition);
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;              /* Keep icon and text on same line */
  overflow: visible;              /* Allow content to expand */
}

/* Allow text to wrap inside the title */
.cert-title {
  white-space: normal;            /* ✅ Enable wrapping */
  overflow-wrap: break-word;     /* ✅ Break long words if needed */
  flex: 1;                        /* ✅ Let title take remaining space */
}

/* Hover effect */
.cert-card:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: #111;
  transform: translateY(-5px);
}

.cert-card:hover i,
.cert-card:hover .cert-title {
  color: #111;
}

/* Link styling */
.cert-title a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.cert-card:hover .cert-title a {
  color: #111;
  text-decoration: underline;
}

.cert-card i {
  font-size: 2rem;
  color: var(--primary);
}

/* Awards Section */
.awards {
  padding: 6rem 0;
}

.awards-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.award-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition);
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;       /* ✅ Center icon, title, and details */
  text-align: center;        /* ✅ Center text inside elements */
  gap: 0.75rem;
}

/* Hover effect for readability */
.award-card:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: #111;
  transform: translateY(-5px);
}

/* Ensure all child elements switch to dark */
.award-card:hover h3,
.award-card:hover p,
.award-card:hover span,
.award-card:hover li {
  color: #111;
}

/* Hyperlink styling */
.award-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.award-card:hover a {
  color: #111;
  text-decoration: underline;
}

.award-card i {
  font-size: 2.5rem;
  color: var(--primary); /* Original icon color */
  transition: var(--transition);
}

.award-card:hover i {
  color: #111; /* Dark icon on light background */
}

.award-card h3 {
  font-size: 1.3rem;
  color: var(--lightest);
  margin-bottom: 0.5rem;
}

.award-card p {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.award-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.award-card a:hover {
  color: var(--primary-dark);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05); /* Default subtle background */
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition);
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;       /* ✅ Center icon, title, and details */
  text-align: center;        /* ✅ Center text inside elements */
  gap: 0.75rem;
}

/* Hover effect for readability */
.contact-card:hover {
  background-color: rgba(255, 255, 255, 0.85); /* Light background */
  color: #111; /* Dark text */
  transform: translateY(-5px);
}

/* Ensure child elements also switch to dark */
.contact-card:hover h3,
.contact-card:hover p,
.contact-card:hover span,
.contact-card:hover li {
  color: #111;
}

/* Hyperlink styling */
.contact-card a {
  color: var(--primary); /* Accent color */
  text-decoration: none;
  font-weight: 500;
}

.contact-card:hover a {
  color: #111;
  text-decoration: underline;
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--primary); /* Original icon color */
  transition: var(--transition);
}

.contact-card:hover i {
  color: #111; /* Dark icon on light background */
}

.contact-card h3 {
  font-size: 1.5rem;
  color: var(--lightest);
  margin: 0.5rem 0;
}

.contact-card p {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.contact-card.contact-card p {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--primary-dark);
}

/* Footer Section */
/* footer {
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  text-align: center;
  color: var(--light);
  font-size: 1rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
*/ 

.site-footer {
  background: linear-gradient(to right, #0f1111, #1a1c1c);
  color: #ccc;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid;
  border-image: linear-gradient(to right, #eeff00, #0072ff) 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-social h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

/* Footer Social Links */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links li a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links li a i {
  font-size: 1.2rem;
  color: var(--primary); /* Accent color */
  transition: transform 0.3s ease;
}

.social-links li a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-links li a:hover i {
  transform: scale(1.2);
  color: #fff;
}

.footer-brand p {
  margin: 0;
  font-weight: 400;
  color: #aaa;
  font-size: 0.85rem;
}

.site-footer {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Divider */
.footer-divider {
  width: 60%;
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.4); /* Thicker and more visible */
  margin: 1rem auto;
}

.footer-divider {
  width: 60%;
  border: none;
  border-top: 2px solid var(--primary); /* Accent color */
  margin: 1rem auto;
}

.footer-divider {
  width: 60%;
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
  margin: 1rem auto;
}


/* Responsive styles OR Global styles */
@media (max-width: 768px) {
  .section {
    padding: 10px;
    font-size: 16px;
  }

@media (max-width: 768px) {
 .background-overlay {
   background-attachment: scroll; /* Prevents fixed background jitter on mobile */
  }
}


  .social-icons {
    flex-direction: column;
    align-items: center;
  }
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body {
  overflow-x: hidden;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .background-overlay {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .summary-text {
    text-align: center;
    font-size: 16px;
    padding: 0 10px;
  }
}
