/* Loader Styles */
#loader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #0B1629;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Container */
.hex-logo {
  position: absolute;
  top: 1rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating Hexagon */
.hexagon-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #64ffda;
  stroke-width: 4;
  animation: spin 4s linear infinite;
  transform-origin: center;
  transition: filter 0.3s ease;
}

/* Glowing Effect on Hover */
.hex-logo:hover .hexagon-spinner {
  filter: drop-shadow(0 0 6px #64ffda);
}

/* Center Letter */
.hex-letter {
  position: absolute;
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #64ffda;
  z-index: 2;
  pointer-events: none;
}

/* Rotation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #333;
    border-top: 6px solid #0B1629;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0f2c;
    color: #64ffda;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}
.about-button {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 2px solid #64ffda;         /* Sky blue border */
    color: #64ffda;                    /* Sky blue text */
    background-color: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;                /* Slightly rounded rectangle */
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.about-button:hover {
    background-color: #00bfff;         /* Sky blue fill on hover */
    color: #ffffff;                    /* White text on hover */
}

.pdf-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #64ffda;
    color: #0a192f;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.pdf-button:hover {
    background-color: #52e0c4;
}

/* Home Section */
#home {
    height: 100vh; /* Full-screen height for the landing section */
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 0 auto; /* ✅ This centers it horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center; /* ✅ Vertically center it */
    align-items: flex-start; /* Left align text */
}



#home h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.2rem; /* smaller margin */
}

#home h4 {
    font-size: 1.2rem;
    color: #a8b2d1;
    margin-bottom: 0.8rem; /* reduced space */
}

#home p {
    font-size: 1rem;
    color: #8892b0;
    max-width: 600px;
    margin-bottom: 0.8rem;
}

#home .button {
    margin-top: 0.5rem;
}

p a {
  color: #64ffda; /* Replace with your preferred color */
  text-decoration: none; /* Optional: remove underline */
  font-weight: 500;       /* Optional: make it a bit bold */
  transition: color 0.3s ease;
}
/* Header and Navigation */
header {
    background-color: #0a192f;
    padding: 0.5rem 0;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: top 0.3s ease;
    box-shadow: none; /* 🔥 Remove the line */
}


nav {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding: 20px 2rem 0; /* ⬇ Added 10px space from top */
}

nav a {
    font-family: 'Fira Code', monospace; /* ⌨️ Typewriter-style font */
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    background-color: transparent;
    color: #64ffda;
    text-shadow: 0 0 5px #64ffda, 0 0 10px #64ffda;
    animation: neonPulse 1.5s infinite alternate;
    transition: all 0.3s ease;
}

@keyframes neonPulse {
  0% {
    text-shadow: 0 0 4px #64ffda, 0 0 8px #64ffda;
  }
  100% {
    text-shadow: 0 0 10px #64ffda, 0 0 20px #64ffda;
  }
}

/* Sections */
section {
     padding: 60px 20px;
  width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    /* Removed border-bottom */
}

h1,
h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

p {
    font-size: 1.1rem;
    color: #cccccc;
}

footer {
    background-color: #0B1629; /* Same as contact section */
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    bottom: 0;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.social-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-sidebar li {
    margin: 10px 0;
}

.social-sidebar a {
    color: #b0b0b0;
    font-size: 20px;
    transition: color 0.3s;
}

.social-sidebar a:hover {
    color: #ffffff;
}

.social-sidebar .line {
    width: 1px;
    height: 80px;
    background-color: #b0b0b0;
    margin-top: 10px;
}

/* About Section Styles */
#about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: #0B1629;
    color: #e0e0e0;
}

.about-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
}

.about-text h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.about-text h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #64ffda;
}

.about-text p {
    font-size: 1rem; /* smaller font */
    line-height: 1.5;
    margin-bottom: 20px;
}


.services {
    margin-top: 20px;
}

.services h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.services ul {
    padding-left: 20px;
    list-style-type: disc;
}

.services ul li {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-image {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Section Title */
.projects-title-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.projects-title {
  font-size: 2rem; /* Match 'About Me' style */
  font-weight: 600;
  color: #ccd6f6;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.projects-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background-color: #233554;
  margin: 0 auto;
  margin-top: 8px;
}


.section-number {
    color: #64ffda;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.section-heading {
    color: #ccd6f6;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Left-Aligned About Us Title */
.section-title-left {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-title-left .section-number {
    color: #64ffda;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem; /* slightly smaller */
}

.section-title-left .section-heading {
    color: #ccd6f6;
    font-size: 1.3rem; /* smaller font */
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    margin-right: 1rem;
    position: relative;
}

.section-title-left .section-heading::after {
    content: '';
    display: inline-block;
    height: 1px;
    background-color: #233554;
    width: 300px;
    margin-left: 20px;
    vertical-align: middle;
}

/* About Container Layout */
.about-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Triangle Bullet List with Columns */
.tech-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    list-style: none;
    /* ✅ This removes the default bullet */
    padding-left: 0;
    margin-top: 10px;
}

.tech-list li {
    list-style-type: none;
    /* ✅ Fallback */
    position: relative;
    margin-bottom: 10px;
    padding-left: 15px;
    color: #a8b2d1;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

.tech-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #64ffda;
    font-size: 1rem;
    line-height: 1;
}

/* Contact Section */

#contact {
    min-height: 100vh; /* Make it full screen */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #0B1629;
    color: #a8b2d1;
}


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

.section-label {
    font-size: 1rem;
    color: #64ffda;
    font-family: 'Fira Code', monospace;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 2.8rem;
    color: #ccd6f6;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #8892b0;
    margin-bottom: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-button {
    display: inline-block;
    color: #64ffda;
    border: 1px solid #64ffda;
    padding: 16px 32px;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: #ffffff;
}

.email-container {
    position: fixed;
    bottom: 0;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.email-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #a8b2d1;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 20px;
}

.email-link:hover {
    color: #64ffda;
}

.email-line {
    width: 1px;
    height: 90px;
    background-color: #a8b2d1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a192f;
    color: #64ffda;
    margin: 0;
    padding: 0;
}

.projects-section {
    padding: 4rem 1rem;
}

.projects-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #64ffda;
    margin-bottom: 2rem;
}

.archive-link {
    color: #64ffda;
    text-decoration: underline;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #112240;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* ✅ Subtle shadow below each card */
}


.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px #7ab5bd, 0 0 30px rgba(100, 255, 218, 0.5); /* ✅ Glowing shadow */
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.project-card:hover .project-title {
    color: #64ffda;
}

.project-description {
    font-size: 0.9rem;
    color: #8892b0;
    margin: 0.5rem 0 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    font-size: 0.75rem;
    color: #8892b0;
}

.show-more-wrapper {
    margin-top: 2rem;
}

.show-more-button {
    background-color: transparent;
    color: #64ffda;
    border: 1px solid #64ffda;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.show-more-button:hover {
    background-color: #64ffda;
    color: #0a192f;
}


/* Responsive Styles */

@media (max-width: 1024px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
  }

  .about-text, .about-image {
    max-width: 100%;
    padding-right: 0;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #home h1 {
    font-size: 2.5rem;
  }

  #home h4 {
    font-size: 1rem;
  }

  #home p {
    font-size: 0.9rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .social-sidebar {
    display: none;
  }

  .email-container {
    display: none;
  }

  .about-text h1, .about-text h3, .about-text h4 {
    text-align: center;
  }

  .section-title-left {
    flex-direction: column;
    align-items: center;
  }

  .section-title-left .section-heading::after {
    display: none;
  }
}

@media (max-width: 480px) {
  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .about-button, .pdf-button, .contact-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

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

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

  .contact-description {
    font-size: 1rem;
  }

  .tech-list {
    columns: 1;
  }

  .hex-logo {
    top: 0.5rem;
    left: 1rem;
    width: 50px;
    height: 50px;
  }
}
