:root {
  --theme-color: #000000; /* You can easily change the theme color here #04294b*/
  --font-family: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: clip;
}

a {
  text-decoration: none;
}

.project-tech span {
  font-size: 0.85rem;
  color: #555;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.project-block:hover .project-tech span {
  background: rgba(0, 0, 0, 0.08);
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-btn {
  background-color: var(--theme-color);
  color: #fff;
}

.github-btn {
  background-color: transparent;
  color: var(--theme-color);
  border: 1px solid var(--theme-color);
}

.view-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.github-btn:hover {
  background-color: var(--theme-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-preview {  color: inherit;
}

.container {
  text-align: center;
  padding: 1rem 1rem;
}


/* Hero container specific styling */
.hero .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero subtitle styling */
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0 2rem 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Scroll Down Button */
.scroll-down-btn {
  position: absolute;
  bottom: 30px;
  left: 90%;
  transform: translateX(-0%) translateY(calc(30% + 20px));
  z-index: 10;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  cursor: pointer;
  position: relative;
  animation: bounce 3s infinite; /* Changed from 2s to 3s for slower animation */
  margin-top: 20px;
}

.scroll-arrow span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  animation: scrollDown 2s infinite;
  opacity: 0;
}

.scroll-arrow span:nth-child(1) {
  animation-delay: 0s;
}

.scroll-arrow span:nth-child(2) {
  top: 16px;
  animation-delay: 0.15s;
}

.scroll-arrow span:nth-child(3) {
  top: 32px;
  animation-delay: 0.3s;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-45deg) translate(-20px, 20px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px); /* Changed from -5px to -8px for more downward movement */
  }
  60% {
    transform: translateX(-50%) translateY(-8px); /* Changed from -5px to -8px for more downward movement */
  }
}

/* Ensure full viewport height on mobile devices */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0.3rem 0 1.5rem 0;
  }

  .scroll-down-btn {
    bottom: 80px;
    transform: translate(-50%, -20px);
  }

  .scroll-arrow {
    width: 25px;
    height: 40px;
  }

  .scroll-arrow span {
    width: 20px;
    height: 20px;
    margin-left: -10px;
  }

  .scroll-top-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .scroll-text {
    font-size: 12px;
  }
}

.profile-pic {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  outline: 5px solid white;
}

.highlight {
  color: white;
  font-weight: 700;
  font-size: 62px;
}

.highlight2 {
  color: var(--theme-color);
  font-weight: 700;
  font-size: 30px;
}


.hero {
  background-color: var(--theme-color);
  color: #fff;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 1rem;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-buttons {
  margin-top: 0rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-buttons img{
    width: 55px;
    height: 55px;
    translate: 0px 20px;
    margin-left: 20px;
    border-radius: 50px;
}

.btn, .btn-outline {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn {
  background-color: #fff;
  color: var(--theme-color);
  margin: 0 0.5rem;
}

.btn:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 2px solid var(--theme-color);
  color: var(--theme-color);
}

.btn-outline:hover {
  background-color: var(--theme-color);
  color: #fff;
}

.navbar {
  width: 100%;
  background: #fff;
  padding: 1rem .5rem;
  position: fixed;
  top: -100px;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: top 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  opacity: 0;
  pointer-events: none;
}

.navbar.show {
  top: 0;
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  list-style: none;
  display: flex;
 
  gap: .65rem;
}

.nav-links li a {
  font-weight: 600;
  color: #333;
}

section{
  position: relative;
  overflow-x: clip;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--theme-color);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.about-content img {
  width: 200px;

  border-radius: 10px;
}

.my-details span{
    font-weight: bold;
}

.aboutme{
    padding-left: 10%;
    padding-right: 10%;
}



.tech-stacks {
  text-align: center;
  margin-top: 2rem;
}

.tech-stacks h3 {
  color: var(--theme-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0 5rem;
}

.tech-item {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--theme-color);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tech-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: var(--theme-color);
  color: white;
}



/* Projects Section Styling */
.projects {
  padding: 5rem 1rem;
  background-color: #ffffff;
}

.projects-grid {
  max-width: 1200px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 0 1rem;
}

.project-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-block:hover {
  background: rgba(0, 0, 0, 0.03);
  transform: translateX(10px);
}

.project-block:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
  direction: rtl;
}

.project-block:nth-child(even) .project-content {
  direction: ltr;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-type {
  font-size: 0.9rem;
  color: var(--theme-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.project-content h3 {
  font-size: 1.8rem;
  color: var(--theme-color);
  margin: 0.5rem 0;
}

.project-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-tech span {
  font-size: 0.85rem;
  color: #555;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.project-block:hover .project-tech span {
  background: rgba(0, 0, 0, 0.08);
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-btn {
  background-color: var(--theme-color);
  color: #fff;
}

.github-btn {
  background-color: transparent;
  color: var(--theme-color);
  border: 1px solid var(--theme-color);
}

.view-btn:hover, .github-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.view-btn:hover {
  background-color: #333;
}

.github-btn:hover {
  background-color: var(--theme-color);
  color: #fff;
}

.project-preview {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  line-height: 0; /* Remove the gap */
  font-size: 0; /* Remove any potential inline spacing */
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block; /* Remove inline element gap */
}

.project-block:hover .project-preview img {
  transform: scale(1.05);
}

/* Projects Section Media Queries */
@media screen and (max-width: 768px) {
  .project-block, 
  .project-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 1.5rem;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-preview {
    order: -1;
  }

  .project-preview img {
    height: 200px;
  }

  .project-block:hover {
    transform: translateY(-5px);
  }

  /* Contact form responsive */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-section {
    padding: 40px 15px;
    margin: 20px 15px;
  }

  .contact-section h2 {
    font-size: 28px;
  }

  .contact-subtitle {
    font-size: 16px;
  }

  /* Footer responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section h3 {
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }
  
  /* Center social icons on mobile */
  .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #ffffff;
  font-family: var(--font-family);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

footer {
  background: linear-gradient(135deg, var(--theme-color), #2c3e50);
  color: #fff;
  text-align: center;
  padding: 60px 20px 40px;
  margin-top: 60px;
  overflow-x: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: left;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
  color: #e1e5e9;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links li:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 14px;
  color: #e1e5e9;
}

.social-icons a {
  margin: 0 0.5rem;
  color: var(--theme-color);
  font-weight: 500;

}

.social-icons a {
  font-size: 1.8rem;  /* icon size */
  margin-right: 15px;
  color: white;       /* icon color */
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00aaff;     /* hover color */
}


@media screen and (min-width: 768px) {
  .about-content {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }


}


.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
  background: white;
  border-radius: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--theme-color);
  text-align: center;
}

.contact-subtitle {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 40px;
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--theme-color);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

form input,
form textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  resize: none; /* Disable elastic textarea */
}

form input::placeholder,
form textarea::placeholder {
  color: #999;
  font-style: italic;
}

form button {
  background: linear-gradient(135deg, var(--theme-color), #2c3e50);
  color: #fff;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  margin-top: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

form button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2c3e50, var(--theme-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

form button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-text {
  transition: transform 0.3s ease;
}

.btn-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

form button:hover .btn-icon {
  transform: translateX(5px);
}

/* Loading animation for submit button */
form button.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

form button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form input focus and validation styles */
form input:focus,
form textarea:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

form input:invalid,
form textarea:invalid {
  border-color: #000000;
  animation: shake 0.5s ease-in-out;
}

form input:valid,
form textarea:valid {
  border-color: #000000;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Cloudflare Turnstile styling */
.cf-turnstile {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

/* Form status styling */
.form-status {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  display: none;
}

.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  margin: 20px 0;
  text-align: center;
}

.scroll-top-button {
  background: linear-gradient(135deg, var(--theme-color), #2c3e50);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #2c3e50, var(--theme-color));
}

.scroll-top-button span:first-child {
  font-size: 20px;
  font-weight: bold;
  animation: floatUp 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 14px;
  letter-spacing: 0.5px;
}

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

#formStatus {
  margin-top: 15px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

#formStatus:empty {
  display: none;
}


