*{
  font-family: 'Roboto Mono', monospace;
}

body{
  padding: 0;
  margin: 0;
  background: linear-gradient(145deg, #0F172A, #1E293B, #1E3A8A);
  background-repeat: no-repeat;
  background-attachment: fixed;   /* optional: keeps it fixed on scroll */
  background-size: cover; 
  font-family: 'Roboto Mono', monospace;
  letter-spacing: -0.5px;
}

/* Start of header style */
header {
  margin: 3rem 0rem 0rem 0rem;
}

header.container {
  position: relative;
  overflow: visible !important; /* Ensures the menu can hang below the header */
}

/* Ensure the row doesn't clip the menu either */
header .row {
  overflow: visible !important;
  margin: 0rem 5%;
}

.logo-terminal {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Courier New', monospace; /* Terminal font for logo */
  font-size: 2rem;
  font-weight: bolder;
  color: #E5E7EB
}

.logo-terminal h1 {
  font-size: 2rem; /* Matches the parent size */
  margin: 0;
  font-weight: bolder;
}

.cursor {
  color: #007bff;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

nav{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

nav ul{
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: large;
  justify-content: center;
  margin: 0;
}

header li a{
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  color: #E5E7EB;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header li a:hover{
  /* 1. Use a semi-transparent white (for a light glass look) */
  background: rgba(0, 123, 255, 0.2); /* Light blue tint */
  
  /* 2. Add the blur to the background behind the link */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  /* 3. Standard styling */
  padding: 0.5rem 1rem;
  border-radius: 8px; /* Rounded corners make the glass look better */
  
  /* 4. Optional: A thin border and smooth transition */
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #fff; /* Ensures text stays visible */
}

@media (min-width: 1320px) {
  .logo-terminal {
    font-size: 2.5rem;
    font-weight: bolder;
    color: #E5E7EB
  }

  .logo-terminal h1 {
    font-size: 2.5rem; /* Matches the parent size */
  }

  nav ul{
    font-size: larger;
  }
}

@media (max-width: 992px) {
  header nav ul#nav-list {
    display: none !important;
    position: absolute;
    top: 100%; /* Positions the menu right at the bottom of the header */
    left: 0;
    width: 100%;
    background: #111827;
    padding: 2rem;
    z-index: 9999;

    /* ADDED THESE TWO LINES TO STACK ITEMS */
    flex-direction: column;
    align-items: center;

    /* Tighten the gap for vertical stacking */
    gap: 1.5rem !important;

    /* Optional: Add a subtle shadow so it stands out from the content below */
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
  }

  header nav ul#nav-list.active {
    display: flex !important;
  }

  /* Burger icon styles */
  .burger-line {
    width: 25px;
    height: 2px;
    background: #E5E7EB;
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  #burger.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #burger.active .line2 {
    opacity: 0;
  }

  #burger.active .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* End of header style */

/* Start of main style */
main{
  margin: 0; 
}

main .intro{
  color: white;
  margin: 4rem 5% 5rem 5%;
}

.intro h1{
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.intro h2{
  font-size: 2rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro p{
  font-size: 1rem;
  margin: 3rem 0rem 3rem 0rem;
  line-height: 2rem;
  text-align: justify;
}

.buttons a{
  color: black;
  font-size: 1rem;
  background: white;
  border-radius: 1rem;
  text-decoration: none;
  box-shadow: 5px 5px 5px #007bff;
  padding: 1rem 1.5rem;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.buttons a:hover{
  background: linear-gradient(90deg, #007bff, #00d4ff);
  color: white;
  box-shadow: 5px 5px 5px #007bff;
}

@media (min-width: 1600px) {

  main .intro{
    margin: 6rem 5%;
  }

  .buttons a {
    padding: 1rem 2rem;
  }

  .intro h1 {
    font-size: 4.5rem;
  }

  .intro h2 {
    font-size: 2.5rem;
  }

  .intro p {
    font-size: 1.5rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1320px) {
  .buttons a {
    padding: 0.8rem 1.5rem; /* Slightly smaller padding */
  }

  .intro h1 {
    font-size: 3.5rem; /* Scaled down from 4.5rem to fit 125% scale */
  }

  .intro h2 {
    font-size: 2rem;
  }

  .intro p {
    font-size: 1.25rem;
    line-height: 2rem;
  }
}

@media (max-width: 992px){
  .buttons{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    text-align: center;
  }

  .intro h1, h2 {
    text-align: center;
  }
}

@media (max-width: 720px){
  .intro h1{
    font-size: 2.5rem;
  }

  .intro h2{
    font-size: 1.5rem;
    line-height: 2.5rem;
  }

  .intro p{
    margin: 3rem 0rem 2rem 0rem;
  }

  .buttons a{
    font-size: 1rem;
  }

  .buttons{
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .buttons a{
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    margin: 1.5rem 0rem 0rem 0rem !important;
  }
}

@media (max-width: 454px){
  .intro h1{
    font-size: 2rem;
  }

  .intro h2{
    font-size: 1.5rem;
    margin: 1rem 0rem 0rem 0rem;
  }
}

.portrait{
  width: auto; 
  overflow: hidden;
}

.portrait img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Tech Stack style */

.tech-bg{
  background: url('../images/tech-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover; 
}

/* The Badge: Small text above the main title */
.modern-badge {
  display: inline-block;
  background: rgba(0, 123, 255, 0.1); /* Light blue tint */
  color: #007bff; /* Your brand blue */
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* The Main Title */
.gradient-title-stack {
  font-size: 3.5rem; 
  font-weight: 800;
  color: #212529; /* Dark charcoal */
  margin-bottom: 3rem;
  letter-spacing: -1px;
}

/* The Gradient Effect on the word "Stack" */
.gradient-title-stack span {
  background: linear-gradient(90deg, #007bff, #00d4ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .gradient-title-stack {
    font-size: 2.5rem;
  }
}

/* The container that hides the overflow */
.carousel {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

/* The wrapper that actually moves */
.group {
  display: flex;
  animation: slideRight 20s linear infinite;
  margin-bottom: 2rem;
}

.group img {
  width: 230px;
  height: 230px; 
  object-fit: contain;  /* Crucial: This prevents stretching by scaling the image to fit inside the 150x150 box */
  flex-shrink: 0; /* Prevents the flex container from squishing them */
  margin: 2.5rem;
}

@media (max-width: 720px){
  .group img {
    width: 150px;
    height: 150px; 
    margin: 1.5rem;
  }
}

@keyframes slideRight {
  0% { translate: -100%; }
  100% { translate: 0%; }
}


/* Projects section style */ 

/* The Main Title */

/* The Badge: Optimized for dark mode with a subtle glow */
.modern-badge-dark {
  display: inline-block;
  background: rgba(0, 123, 255, 0.15); 
  color: #3fa2ff; /* Slightly lighter blue for better contrast */
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

/* The Main Title: White text for the first word */
.gradient-title-dark {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff; /* Pure white */
  margin: 0;
  letter-spacing: -1px;
}

/* The Gradient: Brighter colors for dark mode */
.gradient-title-dark span {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  /* Subtle glow effect */
  filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.3));
}

/* Responsive */
@media (max-width: 768px) {
  .gradient-title-dark {
    font-size: 2.6rem;
  }
}

.card-link .card{
  background: rgba(0, 123, 255, 0.15);
  color: white;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.card-group {
  margin-bottom: 3rem;
} 

.card-item img {
  height: 250px;
  object-fit: cover; /* Ensures the image fills the area without distortion */
}

.card-item .card-title{
  font-weight: 800;
  text-align: center;
  margin: 0.5em 0em;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-item .card-text{
  text-align: justify;
  margin-top: 1.5em;
  padding: 0rem 1rem;
}

.card-item .span-group{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0rem 0rem 0em;
  padding: 1rem 0rem;
  background: rgba(0, 17, 36, 0.15);
}

.card-item span{
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 0.5rem;
  margin: 0.2rem;
}

/* Specific backgrounds */
.html  { background-color: #E34F26; }
.css   { background-color: #1572B6; }
.bootstrap { background-color: #8e01a0; }
.js    { background-color: #B9A206; } 
.php   { background-color: #777BB4; }
.mysql { background-color: #4479A1; }
.figma { background-color: #a259ff; }
.photoshop { background-color: #31A8FF }
.laravel { background-color: #E62020 }

.card-link a{
  text-decoration: none;
  color: inherit;
}

.card-item{
  position: relative;
  overflow: hidden; /* Keeps the overlay inside the card corners */
  transition: all 0.3s ease;
}

.status-badge {
  position: absolute;
  top: 10px;          /* Distance from the top */
  left: 10px;         /* Distance from the left */
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 10;        /* Ensures it sits on top of the image */
}

.completed {
  background-color: rgba(40, 167, 69, 0.9); /* Green with high opacity */
  color: white;
}

.in-progress {
  background-color: rgba(255, 193, 7, 0.9); /* Yellow with high opacity */
  color: black;
}

.card-img-overlay {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  color: white;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Create the "hidden" overlay */
.card-item::after {
  background-color: rgba(0, 0, 0, 0.1); /* Black with 50% transparency */
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Show on hover */
.card-item:hover .card-img-overlay {
  opacity: 1;
}

/* Show the overlay and apply your existing effects on hover */
.card-link a:hover .card-item {
  box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}

.card-link a:hover .card-item::after {
  opacity: 1; /* Fade in the dark cover */
}

.gradient-title-exp {
  font-size: 3.5rem;
  font-weight: 800;
  color: #212529;
}

.gradient-title-exp span {
  background: linear-gradient(90deg, #007bff, #00d4ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .gradient-title-exp {
    font-size: 3rem;
  }
}

.roadmap-container {
  padding: 80px 0;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('../images/work-experience.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Scroll Wrapper - Visible Scrollbar */
.timeline-wrapper {
  overflow-x: auto;
  padding: 40px 0;
  scroll-snap-type: x mandatory;
  /* Visual Scrollbar styling */
  scrollbar-width: auto; 
  scrollbar-color: #007bff #e0e0e0;
}

/* Chrome, Edge, and Safari scrollbar */
.timeline-wrapper::-webkit-scrollbar {
  height: 10px; /* Thicker for visibility */
  display: block; 
}

.timeline-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
  margin: 0 100px; /* Insets the scrollbar line slightly */
}

.timeline-wrapper::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

/* Horizontal Track */
.timeline-horizontal {
  display: flex;
  position: relative;
  min-width: max-content;
  /* Desktop: Use reasonable padding. Mobile: Updated via Media Query */
  padding: 0 100px; 
  /* This centers items on desktop if there aren't many */
  justify-content: center; 
}

/* The Fixed Line */
.main-line {
  position: absolute;
  top: 10px; 
  left: 0;
  right: 0;
  height: 4px;
  background: #007bff;
  z-index: 1;
}

/* Card Container */
.timeline-card {
  width: 500px;
  margin: 0 30px; /* Even spacing between cards */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  scroll-snap-align: center;
}

/* Dot Container */
.dot-container {
  height: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 4px solid #007bff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px white;
}

/* Content Appearance */
.timeline-content {
  width: 100%;
  padding: 30px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.timeline-content .date {
  color: #007bff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-content h3 {
  font-weight: 800;
  font-size: 1.3rem;
  margin: 10px 0 5px 0;
}

.timeline-content h4 {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  border-top: 1px solid #535353;
  padding-top: 15px;
}

/* MOBILE VIEW OVERRIDES */
@media (max-width: 768px) {
  .timeline-horizontal {
    /* Large padding allows the first/last card to reach screen center */
    padding: 0 40px; 
    justify-content: flex-start; /* Prevents center-popping on small screens */
  }

  .timeline-card {
    width: 350px;
    margin: 0 15px;
  }
  
  .timeline-wrapper {
      /* Keep scrollbar visible but slim on mobile */
      scrollbar-width: thin;
  }
}

/* Contacts design */
.contact-container {
  padding: 60px;
  margin: 60px;
}

.contact-container .cont-text{
  margin-left: 60px;
  margin-right: 20px;
}

.contact-container .cont-text h1{
  font-size: 4rem;
  font-weight: 600;
}

.contact-container .cont-text hr{
  width: 100px;
  height: 15px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  border: none;
  border-radius: 10px;
  opacity: 1;
  margin-bottom: 80px;
}

.contact-container .cont-text p{
  font-size: 1.2em;
  line-height: 2.3em;
  text-align: justify;
}

.contact-container .cont-text .suggestion{
  margin-top: 50px;
}

@media (max-width: 1320px) {
  .contact-container {
    padding: 20px;
  }

  .contact-container .cont-text h1{
    font-size: 3.5rem;
  }

  .contact-container .cont-text p{
    font-size: 1.1em;
  }
}

@media (max-width: 1140px) {
  .contact-container .cont-text h1{
    font-size: 3.3rem;
  }

  .contact-container .cont-text p{
    font-size: 1em;
  }
}

/* Contact Form Styling */
.cont-form {
  margin-left: 1rem;
  border-left: dashed white 3px;
}

.cont-form form{
  padding-left: 2rem;
}

.cont-form .group-input {
  margin-bottom: 1.5rem;
}

.cont-form .form-label {
  font-size: 1.2rem;
}

.cont-form input {
  padding: 0.8rem;
}

label.required-label::after {
  content: "*";   /* Injects the star */
  color: red;      /* Makes it red */
  font-weight: bold;
}

.cont-form button {
  background: linear-gradient(90deg, #007bff, #00d4ff);
  color: white;
  font-weight: 800;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.cont-form button:hover {
  background: white;
  color: black;
}

.cont-form textarea {
  overflow: hidden;   /* Hide scrollbars */
  resize: none;       /* Disable manual dragging */
  transition: height 0.1s ease; /* Optional: smooth the growth */
}

@media (max-width: 992px) {
  .contact-container {
    padding: 10px;
    margin: 60px;
  }

  .contact-container .cont-text{
    margin: 1rem 0rem;
    padding: 0rem 2rem;
  }

  .contact-container .cont-text h1{
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
  }

  .contact-container .cont-text hr{
    margin-top: 20px;
    margin-bottom: 60px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 60px;
  }

  .contact-container .cont-text p{
    font-size: 1.2em;
    line-height: 2.3em;
  }

  .contact-container .cont-text .cell{
    margin-top: 60px;
  }

  .cont-form {
    margin-left: 0rem;
    border: none;
  }

  .cont-form form {
    margin-top: 2rem;
    padding: 2rem; /* Shorthand for top/bottom/left/right */
    padding-right: 2rem; 
    
    /* 1. Semi-transparent background (White with 10% opacity) */
    background-color: rgba(255, 255, 255, 0.03); 
    
    /* 2. The Blur effect */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); /* Support for Safari */
    
    /* 3. Subtle border to define the edges (The "Shine") */
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* 4. Rounded corners (essential for the glass look) */
    border-radius: 15px;
    
    /* 5. A soft shadow to give it depth */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  }

  .cont-form .group-input {
    margin-bottom: 1.5rem;
  }

  .cont-form .form-label {
    font-size: 1.2rem;
  }

  .cont-form input {
    padding: 0.8rem;
  }
}

@media (max-width: 576px) {
  .contact-container .cont-text h1{
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
  }

  .contact-container .cont-text p{
    font-size: 1em;
    line-height: 2.3em;
  }

  .contact-container .cont-text hr{
    width: 80px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 60px;
  }
}

/* Scroll effect for navigation to go to different sections of the page */

#tech-stack {
  scroll-margin-top: 5vh; 
  scroll-behavior: smooth;
}

#about-me {
  scroll-margin-top: 5vh; 
  scroll-behavior: smooth;
}

#projects, #contact {
  scroll-behavior: smooth;
}

.arrow {
  position: fixed;    /* Stays in the same spot even when you scroll */
  bottom: 40px;       /* Distance from the bottom of the screen */
  right: 40px;        /* Distance from the right of the screen */
  z-index: 9999;      /* Ensures it sits 'on top' of all other layers */
  
  /* Optional: Styling to make it look like a button */
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  /* 1. Use RGBA to make the color transparent (0.7 = 70% opacity) */
  background-color: rgba(31, 41, 55, 0.7); 
  
  /* 2. The magic: blurs whatever is BEHIND the element */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Support for Safari */
  
  /* 3. A thin, semi-transparent border to catch the light */
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* 4. Optional: A subtle shadow to give it depth */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  color: white;
  padding: 20px 10px;
  border-radius: 50%;
  text-decoration: none;

  /* JS hidden default */
  opacity: 1;           /* Hidden by default */
  visibility: hidden;    /* Prevents clicking it while hidden */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s, linear 0.3s;
}

/* This class will be added by JavaScript */
.arrow.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}

.arrow:hover {
  background-color: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
  color: black;
}

.arrow i{
  font-size: 1.5rem;
  padding: 0.5rem 1.3rem;
}

/* End of main style */

