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

html {
  scroll-behavior: smooth;
}

/* Splash Screen Styling */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1c1c1c;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Slide-Up and Fade-Out Animation */
@keyframes slideUpFadeOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* Slide-Up and Fade-In Animation for Main Content */
@keyframes slideUpFadeIn {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#content {
  opacity: 0; /* Start hidden */
  animation: slideUpFadeIn 1s ease-out forwards; /* Slide-up effect when triggered */
}

/* Animation Class (not applied initially) */
.slide-up {
  animation: slideUpFadeOut 1s ease-out forwards;
}

#hello {
  font-size: 3em;
  font-weight: bold;
  transition: opacity 0.2s ease;
  opacity: 1;
  color: white;
}

/* Body Styling */
body {
  background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 100%);
  color: #ffffff;
  font-family: "Poppins", Arial, sans-serif; /* Modern font from Google Fonts */
  overscroll-behavior: none;
}

/* Navbar Styling */
header {
  background-color: #1c1c1c;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-logo a {
  color: #ffd700;
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.navbar-links {
  list-style-type: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 8px 20px;
  border: 2px solid #ffffff;
  border-radius: 50px;
}

.navbar-links li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2em;
  padding: 10px 20px;
  transition: color 0.3s, transform 0.3s;
}

.navbar-links li a:hover {
  color: #ffd700;
  transform: translateY(-3px); /* Slight upward movement on hover */
}

/* Burger Menu Styling */
.burger-menu {
  display: none; /* Hidden by default */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: all 0.3s ease;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .burger-menu {
    display: flex; /* Show burger menu on small screens */
  }

  .navbar {
    position: relative; /* Ensure the navbar is a positioned parent */
  }

  .navbar-links {
    display: none; /* Hide links by default */
    flex-direction: column;
    position: absolute; /* Position relative to the navbar */
    top: 60px; /* Position below the navbar */
    right: 0; /* Align to the right edge of the navbar */
    width: 100%; /* Make it span the entire width */
    background-color: #111111; /* Match the navbar background */
    padding: 10px 0; /* Add some padding for aesthetics */
    border-radius: 8px;
    z-index: 999; /* Ensure it appears above other content */
  }

  .navbar-links.active {
    display: flex; /* Show links when active class is added */
  }

  .navbar-links li {
    margin: 0; /* Remove any list item margins */
    text-align: center; /* Center-align the text */
  }

  .navbar-links li a {
    padding: 10px; /* Add padding for clickable area */
    display: block; /* Make links full-width */
  }

  .burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger-menu.open span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Slide-Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

section {
  opacity: 0; /* Initially hidden */
  transform: translateY(50px); /* Start slightly below */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.in-view {
  opacity: 1; /* Become visible */
  transform: translateY(0); /* Slide into place */
}

@media (max-width: 768px) {
  .section {
    transform: translateY(30px); /* Reduce initial offset for smaller screens */
  }
}

section h2 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffd700;
}

/* Home Section */
#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 20px;
  min-height: 70vh;
  height: auto;
  text-align: center;
  border-bottom: #ffffff solid 2px;
}

/* Slide-Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(2em);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#home-div {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  animation: slideUp 1s ease-out;
}

#home h2 {
  font-size: 2.2em;
  font-weight: 300;
  color: #b3b3b3; /* Softer gray for subtitle */
  margin-bottom: 10px;
}

h1 {
  font-size: 3.5em;
  line-height: 1.2;
}

/* Gradient Text Styling */
.gradient-text {
  font-weight: bold;
  background: linear-gradient(to right, #a06ffb, #b287fa, #c2a3f9);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Contact Links Styling */
#contact-links {
  margin-top: 20px;
}

#contact-links a {
  margin: 0 10px;
  transition: transform 0.3s, opacity 0.3s;
}

.socials-svg {
  width: 40px;
  height: 40px;
  vertical-align: middle; /* Align icons vertically with the text */
  transition: transform 0.3s, opacity 0.3s ease; /* Optional: Add hover effect */
}

.socials-svg:hover {
  transform: scale(1.1); /* Slight zoom-in effect on hover */
  opacity: 0.8;
}

/* Responsive Design for Smaller Devices */
@media (max-width: 768px) {
  #home {
    padding: 5vh 20px; /* Reduce padding on smaller screens */
  }

  h1 {
    font-size: 2.5em;
  }

  #home h2 {
    font-size: 1.8em;
  }

  #contact-links {
    gap: 10px; /* Reduce spacing between links */
  }

  .socials-svg {
    width: 30px; /* Smaller size for icons on smaller devices */
    height: 30px; /* Adjust height proportionally */
  }
}

@media (max-width: 480px) {
  #home h2 {
    font-size: 1.5em; /* Further reduce subtitle size */
  }

  h1 {
    font-size: 2em; /* Further adjust heading size */
  }

  .socials-svg {
    width: 25px; /* Further reduce size for very small screens */
    height: 25px;
  }
}

#contact-links a:hover {
  transform: scale(1.1); /* Slightly enlarges icon on hover */
  opacity: 0.8;
}

/* Projects Section */
#projects {
  padding: 60px 20px;
  background-color: #2a2a2a; /* Darker background to differentiate the section */
  color: #ffffff;
  text-align: center;
  height: auto;
  border-bottom: white solid 2px;
}

.projects-container {
  display: grid;
  gap: 20px; /* Space between cards */
  grid-template-columns: repeat(2, 1fr); /* Two columns for larger screens */
  max-width: 1200px;
  margin: 0 auto; /* Center the container */
  padding: 20px;
}

/* Stack cards vertically on smaller screens */
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr; /* Single column for smaller screens */
  }
}

/* Center the last project card if it's an odd number */
.projects-container > .project-card:nth-child(odd):last-child {
  grid-column: span 2;
  justify-self: center;
}

@media (max-width: 768px) {
  .projects-container > .project-card:nth-child(odd):last-child {
    grid-column: span 1; /* Revert to single column layout */
    justify-self: stretch; /* Stretch across the available space */
  }
}

/* Project Card Styling */
.project-card {
  position: relative;
  background-color: #1c1c1c;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: space-between; /* Space between elements */
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.project-card > img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 5px;
}

.project-card h3 {
  font-size: 1.5em;
  margin: 15px 0;
  color: #ffd700;
}

.project-card p {
  font-size: 1em;
  margin: 15px 0;
  text-align: center;
  color: #b3b3b3;
}

.project-footer {
  display: flex; /* Arrange tech logos and button side by side */
  justify-content: space-between; /* Align logos to the left, button to the right */
  align-items: center;
  margin-top: auto; /* Push footer to the bottom */
}

.project-link {
  padding: 10px 20px;
  color: #ffffff;
  background-color: #4caf50;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  font-size: 0.9em; /* Slightly smaller text size */
}

.project-link:hover {
  background-color: #3a9f4a;
}

/* Technology Logos */
.tech-logos {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tech-logos img {
  width: 30px; /* Adjusted size */
  height: 30px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.tech-logos img:hover {
  opacity: 1;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  #projects > h2{
    font-size: 2em;
  }
  
  .project-card {
    padding: 15px;
    margin: 0 auto;
  }

  .project-card img {
    max-height: 200px; /* Adjust image height for smaller screens */
  }

  .project-card h3 {
    font-size: 1.3em;
  }

  .project-card p {
    font-size: 0.95em;
  }

  .project-footer {
    flex-direction: row; /* Keep alignment for logos and button */
  }

  .tech-logos img {
    width: 20px; /* Smaller size for smaller screens */
    height: 20px;
  }
}

.show-more-btn {
  display: inline-block;
  margin: 20px auto; /* Center the button */
  padding: 12px 24px;
  background-color: #ffd700; /* Gold color */
  color: #1c1c1c; /* Dark text for contrast */
  text-align: center;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Button shadow */
}

.show-more-btn:hover {
  background-color: #ffc300; /* Slightly darker gold on hover */
  transform: translateY(-3px); /* Slight hover effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 4px;
  font-size: 0.9em;

  /* Positioning */
  position: absolute;
  z-index: 1;
  bottom: 120%; /* Position above the logo */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#about {
  padding: 60px 20px;
  border-bottom: white solid 2px;
}

#about > h2 {
  text-align: center;
  margin-bottom: 30px;
}

#about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Space between image and description */
}

.about-img-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.about-img {
  width: 100%;
  max-width: 300px; /* Limit maximum size */
  height: auto; /* Maintain aspect ratio */
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

#about-description {
  flex: 2;
  padding: 10px;
}

#about-description p {
  font-size: 1.2em;
  padding-bottom: 20px;
  line-height: 1.6;
  color: #b3b3b3; /* Softer gray for readability */
  text-align: left;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  #about-container {
    flex-direction: column; /* Stack image and description vertically */
    text-align: center;
  }

  .about-img-container {
    max-width: 100%; /* Allow the image to take full width on smaller screens */
    margin-bottom: 20px; /* Add spacing between image and text */
  }

  .about-img {
    max-width: 250px; /* Slightly smaller image size */
  }

  #about-description {
    padding: 0 20px; /* Add padding around the description for smaller screens */
  }

  #about-description p {
    font-size: 1em; /* Adjust text size for readability */
    line-height: 1.4; /* Reduce line height slightly */
    text-align: center; /* Center-align text for smaller screens */
  }
}

@media (max-width: 480px) {
  #about > h2 {
    font-size: 2em; /* Further reduce heading size */
  }

  .about-img {
    max-width: 200px; /* Scale down the image further */
  }

  #about-description p {
    font-size: 0.9em; /* Smaller text for very small screens */
    padding-bottom: 15px; /* Reduce padding between paragraphs */
  }
}

/* Contact Section Styling */
#contact {
  padding: 60px 20px;
  background-color: #111111; /* Dark background */
  color: #fff; /* White text */
  text-align: left; /* Align text to the left */
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 40px; /* Space between columns */
  max-width: 1200px; /* Center content */
  margin: 0 auto;
  align-items: start; /* Align items to the top */
}

/* Column Headings */
.contact-container h3 {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
}

.contact-container h4 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffa500; /* Orange for Explore */
}

.contact-follow h4 {
  color: #00bfff; /* Blue for Follow Me */
}

/* Highlight Styling */
.highlight {
  color: #ff69b4; /* Pink highlight */
}

.highlight-alt {
  color: #00bfff; /* Blue highlight */
}

/* Links Styling */
.contact-explore ul,
.contact-follow ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-explore li,
.contact-follow li {
  margin: 8px 0;
}

.contact-explore a,
.contact-follow a {
  text-decoration: none;
  color: #f5f5f5; /* Light text */
  font-size: 1em;
  display: inline-flex; /* Shrink to fit text and icons */
  align-items: center; /* Align icons and text vertically */
  gap: 10px; /* Space between icon and text */
  padding: 0; /* No extra padding around the link */
  margin: 0; /* No extra margin around the link */
  transition: color 0.3s ease; /* Smooth hover effect */
}

.contact-explore a:hover,
.contact-follow a:hover {
  color: #ffa500; /* Hover color for Explore */
}

.contact-follow a:hover {
  color: #00bfff; /* Hover color for Follow Me */
}

/* Icons Styling */
.contact-follow img {
  width: 24px;
  height: 24px;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr; /* Stack all sections vertically */
    text-align: center;
    gap: 20px;
  }

  .contact-container h3 {
    font-size: 1.5em; /* Adjust font size */
  }

  .contact-follow a {
    justify-content: center; /* Center align icons and text */
  }
}

@media (max-width: 480px) {
  .contact-container h3 {
    font-size: 1.2em; /* Smaller heading for small screens */
  }

  .contact-follow img {
    width: 20px; /* Reduce icon size */
    height: 20px;
  }
}


/* Footer Styling */
.center-footer {
  position: relative; /* Keep the footer fixed at the bottom */
  bottom: 0; /* Align at the bottom of the viewport */
  left: 0; /* Stretch across the full width */
  width: 100%; /* Ensure it spans the entire width */
  background-color: #1c1c1c; /* Dark background matching the theme */
  color: #ffffff; /* White text for visibility */
  padding: 10px 0; /* Add some vertical padding */
  text-align: center; /* Center-align content */
  font-size: 1em; /* Slightly smaller text */
  z-index: 1000; /* Ensure it stays above other elements */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Optional: Subtle shadow for separation */
  border-top: white solid 1px;
}

.center-footer a {
  color: #ffd700; /* Gold color for links */
  text-decoration: none; /* Remove underline */
  font-weight: bold; /* Make links stand out */
  margin: 0 5px; /* Add spacing between links */
  transition: color 0.3s; /* Smooth color transition */
}

.center-footer a:hover {
  color: #ffc300; /* Slightly lighter gold on hover */
}

.center-footer p {
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
}

/* Responsive Design */
@media (max-width: 768px) {
  .center-footer {
    font-size: 0.8em; /* Adjust font size for smaller screens */
    padding: 8px 0; /* Adjust padding */
  }
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 22px;
  padding: 12px 22px;

  border-radius: 999px;                 /* matches your pill nav style */
  border: 2px solid rgba(255, 255, 255, 0.18);

  font-weight: 600;
  font-size: 1.05em;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;

  color: #ffffff;
  background: linear-gradient(to right, #a06ffb, #b287fa, #c2a3f9); /* match gradient-text */

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.cv-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.30);
}

.cv-btn:active {
  transform: translateY(0);
}

.cv-btn:focus-visible {
  outline: 3px solid rgba(160, 111, 251, 0.45);
  outline-offset: 4px;
}
