:root {
  --primary: #facf0f;
  --text-main: #111;
  --text-sub: #555;
  --bg-body: #fcfcfc;
  --white: #ffffff;
  --primary-hover: #e6b800;
  --transition-fast: 0.3s;

  --glass-white: rgba(255, 255, 255, 0.532);

  --glass-grey: rgba(245, 245, 245, 0.184);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.245);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;

  background-color: var(--bg-body);
  color: var(--text-main);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed; /* 1. Make it stay at the top */
  top: 0;
  left: 0; /* 2. Pin it to the very top */
  width: 100%; /* 3. Make it stretch across the screen */
  z-index: 1000; /* 4. Keep it ABOVE the hero and projects */
  padding: 15px 50px; /* 5. Keep padding consistent */
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text-main);
}

.profile-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-image: url(./images/Profile.jpeg);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--primary);
  background-color: var(--primary);
}

.logo-text {
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  margin-left: 40px;
  font-size: 0.9rem;
}
.hero-section {
  margin-top: 80px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: #f5f5f5 url(./images/bk.png) center/cover no-repeat;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero-subtext {
  font-size: 1.2rem;
  max-width: 800px;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 40px;
}

.cta-button {
  text-decoration: none;
  background-color: var(--primary);
  color: var(--text-main);
  padding: 18px 50px;
  font-weight: 800;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

.project-card .cta-button {
  padding: 10px 25px;
  font-size: 0.9rem;
  display: inline-block;
  margin: 5px 0;
  width: auto;
}

.project-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center; /* center buttons */
}
.cta-button:hover {
  transform: translateY(-3px);
  background: var(--primary-hover);
}

.projects-section {
  padding: 100px 20px;
  background: var(--white);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
}
.yellow-line {
  width: 35px;
  height: 5px;
  background: var(--primary);
  margin: 20px auto;
  border-radius: 10px;
}

/* --- CHANGE THIS SECTION --- */
.project-card {
  width: 90%; /* ADD THIS: Makes it look better on phones */
  max-width: 800px; /* KEEP THIS: Prevents it from getting too wide on desktop */
  margin: 40px auto; /* Reduced margin for better flow */
  padding: 40px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-radius: 8px; /* Optional: adds a slight professional curve */
}
.about-section {
  padding: 100px 20px; /* spacing top/bottom */
  background: var(--bg-body); /* same background as hero */
  text-align: center;
}

.about-section .section-title {
  font-size: 2.5rem;
  font-weight: 800;
}

.about-section .yellow-line {
  width: 35px;
  height: 5px;
  background: var(--primary);
  margin: 20px auto;
  border-radius: 10px;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin: 15px 0;
  line-height: 1.6;
  color: var(--text-sub);
  font-size: 1.1rem;
}

.contact-section {
  padding: 100px 20px;
  background: var(--bg-body);
  text-align: center;
}

.contact-section .section-title {
  font-size: 2.5rem;
  font-weight: 800;
}

.contact-section .yellow-line {
  width: 35px;
  height: 5px;
  background: var(--primary);
  margin: 20px auto;
  border-radius: 10px;
}

.contact-text {
  max-width: 700px;
  margin: 20px auto 40px;
  line-height: 1.6;
  color: var(--text-sub);
  font-size: 1.1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(250, 207, 15, 0.5);
}

.contact-form button {
  width: max-content;
  align-self: center;
}

.form-response {
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

.contact-section {
  padding: 100px 20px;
  background: var(--bg-white);
  text-align: center;
  min-height: 50vh;
}

.social-footer-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.social-item {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.social-item img {
  width: 40px; /* Slightly larger for footer view */
  height: 40px;
  margin-bottom: 10px;
  filter: grayscale(1);
}

.social-item:hover {
  transform: translateY(-5px);
}

.social-item:hover img {
  filter: grayscale(0);
}

.social-item span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.social-icon img {
  width: 25px;
  height: 25px;
  margin: 10px 0;
  display: block;
  filter: grayscale(1);
  transition: var(--transition-fast, 0.3s);
}

.social-icon img:hover {
  filter: grayscale(0); /* Colors come back on hover! */
  transform: scale(1.1);
  transition: var(--transition-fast, 0.3s);
}
.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
}
.main-footer {
  background: #000;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container p {
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 400;
}

.footer-name {
  font-weight: 700;
  color: var(--primary-yellow); /* Uses your existing yellow variable */
}

/* 1. Define the "Floating" movement */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  } /* Moves up 10px */
  100% {
    transform: translateY(0px);
  }
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;

  animation: float 3s ease-in-out infinite;
}

/* 3. Add "Delay" so they don't move all at the same time (optional but pro) */
.social-item:nth-child(2) {
  animation-delay: 0.5s;
}

.social-item:nth-child(3) {
  animation-delay: 1s;
}

.social-item:hover {
  animation-play-state: paused;
  transform: scale(1.2); /* Slight zoom on hover */
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    box-shadow: var(--shadow-soft);
    z-index: 1001;
  }

  .nav-links a {
    margin: 15px 0;
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
  }

  .social-side-bar {
    display: none;
  }
}
