@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500&family=Space+Grotesk:wght@700&display=swap');

/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0f0f0f;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #f1f1f1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
  display: flex;
  flex-direction: column;
}


@media (max-width: 600px) {
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}



/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 80px; /* Increased padding */
  border-bottom: 1px solid #1c1c1c;
  background-color: #0f0f0f;
  flex-wrap: wrap;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px; /* Slightly wider spacing */
}

/* Logo Button */
.nav-logo {
  display: flex;
  align-items: center;
  border: 1px solid #e6e6c2;
  border-radius: 50px;
  padding: 12px 22px; /* Increased size */
  font-weight: 600;
  font-size: 1.05rem; /* Larger font */
  text-decoration: none;
  color: #e6e6c2;
}

.nav-logo .dot {
  width: 18px;
  height: 18px;
  background-color: #e6e6c2;
  border-radius: 50%;
  margin-right: 10px;
}




/* Common nav button style */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6e6c2;
  border-radius: 50px;
  padding: 12px 22px; /* Increased size */
  text-decoration: none;
  color: #e6e6c2;
  font-size: 1.05rem;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  color: #18A0FB;
}

/* Nav Center Group (Single Pill Grouping) */
.nav-center .nav-group {
  display: flex;
  align-items: center;
  border: 1px solid #FFFFE3;
  border-radius: 50px;
  overflow: hidden;
}

.nav-center .nav-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px; /* Increased size */
  text-decoration: none;
  color: #e6e6c2;
  font-size: 1.05rem;
  transition: background 0.2s ease;
}


.nav-center .nav-group a:hover {
  color: #18A0FB;
}



/* Hero Section */
/* Fonts */


/* Hero Section */

body {
  margin: 0;
  padding: 0;
  background: #0f0f0f;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #f1f1f1;
}

/* Hero Section */
.hero {
  padding: 120px 60px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-left {
  max-width: 50%;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  line-height: 0.9;
  font-weight: 700;
}

.highlight-cyan {
  color: #00f7e3;
}

.highlight-orange {
  color: #fccc6d;
}

.highlight-purple {
  color: #A374FF;
}

.left-details {
  margin-top: 20px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

.left-details .tagline {
  margin-top: -340px;
  margin-left: 400px;
}

.left-details .location {
  margin-top: 210px;
  margin-left: 420px;
}

.hero-right {
  max-width: 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

/* Intro Badge */
.intro-badge {
  /* Removed background-color: #1c1c1c; */
  background-color: transparent; /* Ensures no background color */
  color: #FFFFE3;
  padding: 20px 14px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  border: 1px solid #FFFFE3; /* Sets a 2px solid border with the specified color */
  width: fit-content;
}
.intro-badge .name {
  font-weight: 300;
}

/* Tagline */
.main-tagline {
  font-size: 1.5rem;
  color: #FFFFE3;
  font-weight: 500;
  line-height: 1.6;
  max-width: 100%;
}

/* Connect Button */
.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border: 2px solid #00aaff;
  color: #f1f1d8;
  background-color: transparent;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: fit-content; /* ✅ restrict width to content */
  max-width: 300px;
}
.button-group {
  display: flex;
  gap: 1rem; /* space between the buttons */
  margin-top: 1rem; /* optional spacing above */
}

.cnt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border: 2px solid #00aaff;
  color: #f1f1d8;
  background-color: transparent;
  font-weight: 550;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: fit-content; /* ✅ restrict width to content */
  max-width: 300px;
}

.cnt-btn .dot {
  width: 10px;
  height: 10px;
  background-color: #8aff58;
  border-radius: 50%;
  
}

.cnt-btn:hover {
  background-color: #00aaff;
  color: #0f0f0f;
}

.connect-btn .dot {
  width: 10px;
  height: 10px;
  background-color: #8aff58;
  border-radius: 50%;
}

.connect-btn:hover {
  background-color: #00aaff;
  color: #0f0f0f;
}

/* Value Statement Section */
.statement {
  padding: 50px 60px;
  background-color: #0f0f0f;
  color: #f1f1f1;
}

.statement-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
}

.statement-left {
  max-width: 55%;
}

.statement-right {
  max-width: 40%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}

.tag {
  font-family: 'Hanken Grotesk', sans-serif;
  color: #FFFFE3;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.mission {
  font-size: 2.2rem;
  line-height: 1;
  color: #FFFFE3;
  margin-bottom: 30px;
}

.highlighted-tagline {
  font-size: 2rem;
  font-weight: 700;
  color: #f27d29;
  line-height: 1.2;
  margin-bottom: 40px;
}

.divider {
  border: none;
  border-top: 1px solid #1c1c1c;
  margin: 10px 0;
  width: 90%;
}

.detail-para {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #FFFFE3;
  margin-bottom: 40px;
}

/* About Me Button */
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 2px solid #00aaff;
  border-radius: 30px;
  font-weight: 600;
  color: #f1f1f1;
  text-decoration: none;
  background-color: transparent;
  transition: background 0.3s ease;
}

.about-btn:hover {
  background-color: #00aaff;
  color: #0f0f0f;
}

.about-btn .arrow {
  font-size: 1.2rem;
}

/* Right Column Styles */
.social-links {
  display: flex;
  justify-content: center; /* Center horizontally */
  gap: 12px;
  margin-top: 20px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
}

.social-links a {
 display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFE3;
  color: #0f0f0f;
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Ensure round shape */
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s ease;
  border: 2px solid #FFFFE3; /* Optional subtle border */
}

.social-links a:hover {
   background-color: #e1e1bb;
  transform: scale(1.05);
}


hr {
    border: none; /* Remove default border */
    border-top: 0.2px solid rgba(255, 255, 255, 0.1);; /* Add a custom top border for the line */
    margin: 50px 0; /* Add some space above and below */
    width: 100%; 
}

.email-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFE3;
  padding: 7px 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 1.0em;
  font-weight: 400;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;

}

.email-icon {
   background-color: #fdfde5;
  color: #0f0f0f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.email-icon :hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.side-note {
  font-size: 0.85rem;
  color: #e6e6c2;
  text-align: right;
}

/* Star Badge */
.star-badge {
  width: 60px;
  height: 60px;
  background-color: #FFFFE3;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0f0f0f;
  font-size: 2rem;
  margin-top: auto;
}

/* What i do */
.section-title {
  text-align: center;
  color: #b0ff00;
  font-weight: bold;
  font-size: 1.9rem;
  margin-top: 50px;
  margin-bottom: 60px;
}

/* Cards container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 70px;
  padding: 60px 20px;
}

/* Individual card */
.card {
  background-color: #191919;
  padding: 50px;
  border-radius: 10px;
  width: 300px;
  height: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Icon */
.icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Colored titles */
.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 50px;
}

/* Description text */
.card-description {
  font-size: 1rem;
  color: #FFFFE3;
  line-height: 1.5;
}

/* Specific colors */
.pink { color: #FF89B3; }
.yellow { color: #FFE052; }
.teal { color: #17F1D1; }
.purple { color: #907CFF; }



/* Projects */
body{
  color: #FFFFE3;
  font-size: 1.3rem;
  margin-bottom: 50px;
}

.projects-section {
  padding: 60px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.projects-title {
  font-size: 1.9rem;
  color: #b0ff00;
  font-weight: bold;
  margin: 0;
}

.projects-icon {
  background-color: #fdfce3;
  color: #0d0d0d;
  border-radius: 50%;
  padding: 18px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project {
  display: flex;
  justify-content: space-between;
  padding: 50px 0;
  border-bottom: 1px solid #2a2a2a;
  transition: transform 0.3s ease;
  cursor: url('../images/pointer.png') 0 0, auto;
}

.project-left,
.project-right {
  transition: transform 0.3s ease;
}

/* Pump effect */
.project-link:hover .project-left,
.project-link:hover .project-right {
  transform: scale(1.03);
  
}


.load-more-wrapper {
  text-align: center;
  margin-top: 5rem;
}

.load-more-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  border: 2px solid #00aaff;
  border-radius: 50px;
  color: #f1f1d8;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: #00aaff;
  color: #0f0f0f;
}

.arrow {
  margin-left: 0.5rem;
}



/* my tech stack */

.tech-stack-section {
  text-align: center;
  padding: 5rem 2rem;
  background-color: #0f0f0f;
  overflow: hidden;
}

.tech-stack-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #b0ff00;
  margin-bottom: 5rem;
}

.tech-stack-description {
  font-size: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  color: #FFFFE3;
}

.highlight.gold {
  color: #ffba4a;
  font-weight: bold;
}

.highlight.aqua {
  color: #2efdb6;
  font-weight: bold;
}

.logo-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logo-marquee {
  display: flex;
  width: max-content;
  animation: scrollRight 20s linear infinite;
  gap: 5rem;
  align-items: center;
}

.logo-marquee img {
  height: 100px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.logo-marquee img:hover {
  transform: scale(1.15);
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}


/* contact footer */

.footer {
    padding: 30px 100px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 10px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.footer::before {
    content: 'cr8vRithesh';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(100px, 15vw, 275px);
    font-weight: 700;
    color: #131313;
    white-space: nowrap;
    z-index: 0;
    opacity: 0.5;
}

.footer-left {
    position: relative;
    z-index: 1;
}

.footer-left p {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.4;
    font-size: 1.2rem;
}

.functionality {
    color: #4fc3f7;
    font-weight: bold;
}

.footer-explore,
.footer-follow {
    position: relative;
    z-index: 1;
}

.footer-heading {
    color: #ff9800;
    font-weight: bold;
    padding: 0.5rem 0rem;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}

.footer-links {
    list-style: none;
    padding: 10;
    margin-bottom: 1rem;
}

.footer-links li {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffe3;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00aaff;
}

.footer-follow .links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-follow .links a {
    display: flex;
    align-items: center;
    color: #FFFFE3;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-follow .links img {
    width: clamp(20px, 2vw, 30px);
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.footer-follow .links a:hover {
    color: #2efdb6;
}

.footer-bottom {
    color: #FFFFE3;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: #FFFFE3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #757575;
}

/* Footer Responsive Styles */
@media screen and (max-width: 768px) {
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-follow .links {
        align-items: center;
    }

    .footer-follow .links a {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .footer::before {
        font-size: clamp(60px, 20vw, 150px);
        opacity: 0.3;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 40px 5%;
    }

    .footer-heading {
        padding: 0.5rem 0;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-follow .links {
        gap: 0.5rem;
    }
}

/* Project Page Specific Styles */
body.project-page {
  background-color: #0e0e0e;
  color: #FFFFE3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1600px;
  margin: 1rem auto;
  padding: 0 5rem;
  flex: 1;
  margin-bottom: 4rem; /* Add bottom margin to prevent footer overlap */
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #FFFFE3;
}

.project-card {
  display: flex;
  flex-wrap: wrap;
  color: #ffffe3;
  background-color: #161616;
  border: 1px solid #888;
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.project-card:nth-child(even) {
  flex-direction: row-reverse;
}

.project-img,
.project-content {
  flex: 1 1 50%;
  padding: 1.5rem;
}

.project-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.project-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #FFFFE3;
}

.year {
  float: right;
  font-weight: normal;
  font-size: 18px;
  color: #888;
}

.tech {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.project-content ul {
  list-style: disc inside;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  color: #ddd;
}

.visit-btn {
  display: inline-block;
  background-color: transparent;
  border: 1px solid #444;
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  color: #FFFFE3;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.visit-btn:hover {
  background-color: #22c55e;
  color: #000;
}

@media screen and (max-width: 768px) {
  .project-card {
    flex-direction: column !important;
  }

  .project-img,
  .project-content {
    flex: 1 1 100%;
    padding: 1rem;
  }
}

/* about */
 
       .about-hero {
  background-color: #0e0e0e;
  padding: 10rem 2rem 4rem;
  color: #fefce8;
  
}

.about-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-left h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.wave {
  display: inline-block;
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

.subtext {
  font-size: 1.25rem;
  color: #ffffe3;
  max-width: 600px;
  margin-bottom: 2rem;
}

.about-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-circle {
  background: #fff;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo-circle img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.profile-pic {
  width: 250px;         /* adjust size as needed */
  height: auto;
  overflow: hidden;
  margin-bottom: 1rem;
}

.profile-pic img {
  width: 100%;
  height: auto;
  object-fit: contain;  /* ensures entire image fits */
  display: block;
}



.right-text {
  font-size: 0.95rem;
  color: #d4d4d4;
  margin-bottom: 10rem;
  max-width: 240px;
}

@media (max-width: 768px) {
  .about-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-left h1 {
    font-size: 2.25rem;
  }

  .subtext {
    font-size: 1.1rem;
    margin: 0 auto;
  }

  .about-right {
    margin-top: 2rem;
  }
}

.skills-section {
  background-color: #0e0e0e;
  padding: 5rem 2rem 6rem;
  color: #fefce8;
  font-family: 'Inter', sans-serif;
  text-align: center;
  border-bottom: 1px solid #1e1e1e;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(to right, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4rem;
}

.dot {
  color: #a78bfa;
}

.skills-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.skill-card {
  position: relative;
  padding-top: 2rem;
 
}

.skill-index {
  font-size: 1rem;
  color: #525252;
  position: absolute;
  top: 0;
  left: 0;
}

.skill-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #FFFFE3;
}

.skill-card p {
  font-size: 1rem;
  color: #d4d4d4;
  line-height: 1.6;
}

.cta-button {
  margin-top: 5rem;
  text-align: center;
  display: flex;
  justify-content: center;
}
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: #00aaff;
  color: #0f0f0f;
}



/* contact */



.contact-container {
  max-width: 1300px;
  padding: 80px 10px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.left {
  flex: 2;
}

.right {
  flex: 1;
  text-align: right;
}

h1 {
  font-size: 3.9rem;
  color: #ffffe3;
  margin-bottom: 20px;
}

p.description {
  color: #d1d1d1;
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 40px;
}

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

.form-group label {
  font-size: 1rem;
  color: #cfcfcf;
  margin-bottom: 8px;
  display: block;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #444;
  width: 100%;
  padding: 10px 0;
  color: #2efdb6;
  font-family: consolas;
  font-size: 1rem;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
}

.send-btn {
  background: transparent;
  border: 1px solid #00aaff;
  color: #f1f1d8;
  padding: 14px 36px;
  border-radius: 30px;
  font-family: hanken grotesk;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.send-btn:hover:not(:disabled) {
  background-color: #00aaff;
  font-family: hanken grotesk;
  color: #0f0f0f;
}

.send-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-loading i {
  font-size: 0.9rem;
}

.contact-details {
  font-size: 1rem;
  color: #ffffe3;
  margin-bottom: 30px;
}

.socials a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #a78bfa;
}

.logo {
  margin-top: 20px;
  text-align: right;
}

.logo img {
  width: 60px;
  height: 60px;
}

/* Hero Section Responsive Styles */
@media screen and (max-width: 1024px) {
  .hero {
    padding: 80px 40px;
  }

  .hero-title {
    font-size: 5rem;
  }

  .left-details .tagline {
    margin-top: -240px;
    margin-left: 300px;
    display: none;
  }

  .left-details .location {
    margin-top: 160px;
    margin-left: 320px;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    padding: 60px 30px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-title {
    font-size: 4rem;
  }

  .left-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .left-details .tagline,
  .left-details .location {
    margin: 0;
  }

  .hero-right {
    max-width: 100%;
    align-items: center;
  }

  .main-tagline {
    font-size: 1.3rem;
    text-align: center;
  
  }

  .connect-btn {
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .main-tagline {
    font-size: 1.1rem;
    display: none;
  }

  .intro-badge {
    font-size: 1rem;
    padding: 15px 12px;
  }

  .connect-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .connect-btn:active {
    transform: scale(0.98);
  }
}

/* Mission Section Responsive Styles */
@media screen and (max-width: 1024px) {
  .statement {
    padding: 40px 40px;
  }

  .statement-grid {
    gap: 40px;
  }

  .mission {
    font-size: 1.8rem;
  }

  .highlighted-tagline {
    font-size: 1.6rem;
  }

  .detail-para {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 768px) {
  .statement {
    padding: 30px 20px;
  }

  .statement-grid {
    flex-direction: column;
    gap: 30px;
  }

  .statement-left,
  .statement-right {
    max-width: 100%;
  }

  .mission {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .highlighted-tagline {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .detail-para {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .social-links {
    justify-content: flex-start;
  }

  .side-note {
    text-align: left;
  }

  .star-badge {
    margin: 20px auto 0;
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .statement {
    padding: 20px 15px;
  }

  .mission {
    font-size: 1.4rem;
  }

  .highlighted-tagline {
    font-size: 1.2rem;
  }

  .tag {
    font-size: 0.9rem;
  }

  .about-btn {
    width: 100%;
    justify-content: center;
  }
}

/* What I Do Section Responsive Styles */
@media screen and (max-width: 1024px) {
  .card-container {
    gap: 40px;
    padding: 40px 15px;
  }

  .card {
    width: calc(50% - 20px);
    height: auto;
    min-height: 280px;
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
    margin: 40px 0;
  }

  .card-container {
    gap: 30px;
    padding: 30px 10px;
  }

  .card {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 250px;
    padding: 30px;
  }

  .card-title {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .card-description {
    font-size: 0.95rem;
  }

  .icon {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
    margin: 30px 0;
  }

  .card-container {
    gap: 20px;
    padding: 20px 5px;
  }

  .card {
    padding: 25px;
    min-height: 220px;
  }

  .card-title {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .icon {
    font-size: 1.8rem;
  }
}

/* Touch Device Optimizations for Cards */
@media (hover: none) {
  .card {
    transition: transform 0.2s ease;
  }

  .card:active {
    transform: scale(0.98);
  }
}

/* Projects Section Responsive Styles */
@media screen and (max-width: 1024px) {
  .projects-section {
    padding: 40px 40px;
  }

  .projects-title {
    font-size: 1.7rem;
  }

  .project {
    padding: 40px 0;
  }

  .project-name {
    font-size: 1.7rem;
  }

  .project-role {
    font-size: 1.5rem;
  }

  .project-tech {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 768px) {
  .projects-section {
    padding: 30px 20px;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 15px;
  }

  .projects-title {
    font-size: 2rem;
    
  }

  .projects-icon {
    padding: 15px;
    font-size: 15px;
    display: none;
  }

  .project {
    flex-direction: column;
    gap: 15px;
    padding: 30px 0;
  }

  .project-left,
  .project-right {
    width: 100%;
  }

  .project-name {
    font-size: 1.7rem;
    margin-bottom: 5px;
  }

  .project-year {
    font-size: 0.9rem;
  }

  .project-role {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .project-tech {
    font-size: 0.85rem;
  }

  .load-more-wrapper {
    margin-top: 3rem;
  }

  .load-more-btn {
    width: 50%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .projects-section {
    padding: 20px 15px;
  }

  .projects-header {
    gap: 10px;
    padding-bottom: 10px;
  }

  .projects-title {
    font-size: 1.3rem;
  }

  .projects-icon {
    padding: 12px;
    font-size: 18px;
  }

  .project {
    padding: 25px 0;
    gap: 10px;
  }

  .project-name {
    font-size: 1.2rem;
  }

  .project-year {
    font-size: 0.8rem;
  }

  .project-role {
    font-size: 0.95rem;
  }

  .project-tech {
    font-size: 0.8rem;
  }

  .load-more-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Touch Device Optimizations for Projects */
@media (hover: none) {
  .project {
    transition: transform 0.2s ease;
  }

  .project:active {
    transform: scale(0.98);
  }

  .load-more-btn:active {
    transform: scale(0.98);
  }
}

/* Project Page Responsive Styles */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .project-card {
    gap: 2rem;
  }

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

  .year {
    font-size: 1rem;
  }

  .tech {
    font-size: 0.9rem;
  }

  .project-content ul {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 2rem;
    margin-bottom: 3rem; /* Reduce bottom margin on mobile */
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .project-card {
    flex-direction: column !important;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .project-img,
  .project-content {
    flex: 1 1 100%;
    padding: 0;
  }

  .project-img img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
  }

  .project-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .year {
    font-size: 0.9rem;
  }

  .tech {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .project-content ul {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .project-content ul li {
    margin-bottom: 0.5rem;
  }

  .visit-btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
    padding: 0.8rem 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 1rem;
    margin-bottom: 2rem; /* Further reduce bottom margin on smaller screens */
  }

  .page-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .project-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .project-img img {
    max-height: 250px;
  }

  .project-content h2 {
    font-size: 1.3rem;
  }

  .year {
    font-size: 0.8rem;
  }

  .tech {
    font-size: 0.8rem;
  }

  .project-content ul {
    font-size: 0.85rem;
    padding-left: 0.8rem;
  }

  .project-content ul li {
    margin-bottom: 0.4rem;
  }

  .visit-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
}

/* Touch Device Optimizations for Project Cards */
@media (hover: none) {
  .project-card {
    transition: transform 0.2s ease;
  }

  .project-card:active {
    transform: scale(0.98);
  }

  .visit-btn:active {
    transform: scale(0.98);
  }
}

/* Contact Section Responsive Styles */
@media screen and (max-width: 1024px) {
  .contact-container {
    padding: 60px 40px;
    gap: 40px;
  }

  .left {
    flex: 1.5;
  }

  h1 {
    font-size: 3.2rem;
  }

  .description {
    font-size: 1rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
  }

  .left {
    flex: 1;
    width: 100%;
  }

  .right {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 8px 0;
  }

  .send-btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  .contact-details {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .socials {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  .socials a {
    font-size: 0.9rem;
  }

  .logo {
    display: none; /* Hide logo on mobile for better space usage */
  }
}

@media screen and (max-width: 480px) {
  .contact-container {
    padding: 30px 15px;
    gap: 25px;
  }

  h1 {
    font-size: 2rem;
  }

  .description {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

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

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.85rem;
    padding: 6px 0;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    font-size: 0.85rem;
  }

  .send-btn {
    font-size: 0.9rem;
    padding: 12px 24px;
  }

  .contact-details {
    font-size: 0.9rem;
  }

  .socials {
    gap: 12px;
  }

  .socials a {
    font-size: 0.85rem;
  }
}

/* Touch Device Optimizations for Contact Form */
@media (hover: none) {
  .send-btn:active {
    transform: scale(0.98);
  }

  .socials a:active {
    opacity: 0.7;
  }
}

/* Navbar Responsive Styles */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #e6e6c2;
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: 20px;
  }

  .navbar {
    padding: 20px;
    position: relative;
  }

  .nav-center {
    position: fixed;
    top: -100%; /* Start off-screen at the top */
    left: 0; /* Align to the left */
    width: 100%;
    height: 100vh;
    background-color: #0f0f0f;
    padding: 80px 20px 20px;
    transition: top 0.5s ease-in-out; /* Animate the top property */
    z-index: 999;
    display: flex; /* Use flexbox for centering content */
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center horizontally */
    justify-content: flex-start; /* Align to top */
    overflow-y: auto; /* Add scroll if content exceeds height */
    max-height: 50vh;
  }

  .nav-center.active {
    top: 0; /* Slide in from the top */
  }

  .nav-group {
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Adjust gap between menu items */
    border: none !important; /* Remove border from the group container */
    width: 100%; /* Give the menu items a specific width */
    max-width: 100%; /* Ensure max width is 100% */
    margin-top: 20px; /* Add some space from the top */
    
  }

  .nav-group a {
    font-size: 1.2rem;
    padding: 15px 20px; /* Adjust padding for better spacing */
    width: 100%; /* Ensure item takes full width */
    max-width: 100%; /* Ensure max width is 100% */
    text-align: left; /* Align text to the left */
    border: 1px solid #333; /* Add border to individual items */
    border-radius: 8px; /* Add rounded corners to individual items */
    background-color: #1c1c1c; /* Add background to individual items */
    display: flex; /* Use flexbox for icon and text alignment */
    align-items: center; /* Vertically align icon and text */
    justify-content: space-between; /* Space out text and icon */
    gap: 10px; /* Gap between icon and text */
    color: #e6e6c2; /* Ensure text color is correct */
  }

  .nav-group a i {
      margin-left: 10px; /* Space between icon and text, move icon to right */
  }

  .nav-group a:hover {
      background-color: #2a2a2a; /* Hover effect */
  }

  .nav-right {
    display: none;
  }

  /* Hamburger Animation */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Add Contact button to mobile menu */
  .nav-group::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgba(230, 230, 194, 0.1);
    margin: 20px 0;
    display: none; /* Hide the divider */
  }

  .nav-group .mobile-contact {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border: 1px solid #e6e6c2;
    border-radius: 50px;
    margin-top: 20px;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f0f0f; /* Dark background to match theme */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's on top */
}

.loader-content {
  text-align: center;
  position: relative; /* Enable absolute positioning for children */
}

.preloader-text {
  font-size: 2rem; /* Increased size */
  font-family: Hanken Grotesk;
  color: #e6e6c2; /* Match text color to theme */
  opacity: 0; /* Initially hidden */
  margin: 0; /* Remove margin to ensure they stack */
  position: absolute; /* Position on top of each other */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for element size */
}

/* Contact Form Messages and Loading States */
.message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.message.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.message.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.message i {
  font-size: 1.1rem;
}

/* Contact Form Responsive Styles */
@media screen and (max-width: 768px) {
  .message {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .message i {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .message {
    padding: 10px 14px;
    font-size: 0.85rem;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .message i {
    font-size: 0.9rem;
  }
}


/* Magnetic Button Effects */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

.magnetic-btn .magnetic-content {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
  display: inherit;
  align-items: inherit;
  gap: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #1a1a1a; /* dark background */
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #00f7e3; /* your primary accent color */
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #38857f;
}

/* Education Section Styles */
.education-section {
  background-color: #0e0e0e;
  padding: 5rem 2rem 2rem;
  color: #fefce8;
  text-align: center;
}

.education-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 2.5rem;
}

.education-card {
  background: #18181b;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
  padding: 2rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.education-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.edu-degree {
  font-size: 1.2rem;
  font-weight: 500;
  color: #00f7e3;
  margin-bottom: 0.5rem;
}

.edu-school {
  font-size: 1.05rem;
  color: #fefce8;
  margin-bottom: 0.3rem;
}

.edu-year {
  font-size: 0.98rem;
  color: #bdbdbd;
  margin-bottom: 0.7rem;
}

.edu-desc {
  font-size: 0.97rem;
  color: #d4d4d4;
  text-align: center;
}

@media (max-width: 768px) {
  .education-section {
    padding: 3rem 1rem 1rem;
  }
  .education-cards {
    gap: 1.5rem;
  }
  .education-card {
    padding: 1.2rem 0.7rem 1rem;
  }
}
