body {
            margin: 0;
            font-family: monospace;
            background-color: #111;
            color: white;
            position: relative;
        }

    header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px; /* Reserve vertical space for header */
    position: relative; /* Needed for absolute child positioning */
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.border-stripe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 500px;
    max-width: 90%;
    padding: 20px 0;
    background: linear-gradient(to bottom, #a855f7, #6b21a8);
    border-radius: 10px;
    z-index: 1000; /* Add this */
}

/* Tablet adjustments */
@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px 0;
        
    }

    .border-stripe {
        padding: 15px;
        border-radius: 8px;
    }

    .typing {
        font-size: 1.6rem !important;
        border-right-width: 2px;
        white-space: normal; /* Allow wrapping if needed */
    }

    .typing2 {
        font-size: 1.2rem !important;
        border-right-width: 2px;
        white-space: normal;
    }

    .social-links {
        gap: 15px;
        flex-wrap: wrap; /* Allows icons to break into multiple rows */
    }

    .social-link {
        font-size: 1.1rem;
        width: 35px;
        height: 35px;
    }

    header {
        margin-bottom: 15px; /* Slightly bigger gap on small screens */
    }
}

/* Small phone adjustments */
@media (max-width: 480px) {

  html, body {
        overflow-x: hidden;
        width: 100vw;
    }

    .typing {
        font-size: 1.4rem !important;
    }

    .typing2 {
        font-size: 1rem !important;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }

    header {
        margin-bottom: 15px; /* Ensure gap below header on mobile */
        padding-bottom: 100px;
    }

    .websites-container,
    .preview-container {
        width: 90vw;
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding: 0;
    }

    

    .card,
    .preview-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
}

.typing {
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid white;
    font-size: 2rem;
    animation: typing 3s steps(23, end) forwards,
               blink 0.6s step-end infinite 3s;
    margin-bottom: 5px;
}

.typing2 {
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid white;
    font-size: 1.4rem;
    animation: typing2 2.5s steps(25, end) forwards,
               blink 0.6s step-end infinite 5.5s;
    margin-bottom: 10px;
}


        @keyframes typing {
            from { width: 0; }
            to { width: 23ch; }
        }

        @keyframes typing2 {
            from { width: 0; }
            to { width: 24ch; } /* Adjust to match text length */
        }

        @keyframes blink {
            from, to { border-color: transparent; }
            50% { border-color: white; }
        }

        

        
.social-links {
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.social-link {
    color: white;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    animation: iconAppear 0.4s ease forwards;
    cursor: pointer;          /* Add this */
    pointer-events: auto;     /* Make sure clicks are possible */
}
/* Animate each icon one after another */
.social-link:nth-child(1) { animation-delay: 3.2s; }
.social-link:nth-child(2) { animation-delay: 3.6s; }
.social-link:nth-child(3) { animation-delay: 4s; }
.social-link:nth-child(4) { animation-delay: 4.4s; }
.social-link:nth-child(4) { animation-delay: 4.4s; }
.social-link:nth-child(5) { animation-delay: 4.8s; }


@keyframes iconAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-link:hover {
    background: linear-gradient(135deg, #a855f7, #6b21a8);
    transform: translateY(-3px);
}

/* Websites container */
.websites-container {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: flex-start; /* align tops */
  gap: 2rem; /* spacing between cards */
  flex-wrap: wrap; /* stack only on small screens */
}

/* Card */
.card {
  position: relative;
  width: 400px;
  height: 400px;
  background: linear-gradient(315deg, #a855f7, #6b21a8);
  border-radius: 12px;
  padding: 4px; /* This creates space for the border */
  box-sizing: border-box; /* Ensures padding is included in width/height */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  overflow: hidden; /* Contains the image */
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  background-color: black;
}

.card:hover img {
  transform: scale(1.05); /* More subtle zoom instead of moving up */
  opacity: 0.9;
}

.card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
  transition: transform 0.5s ease;
  z-index: 10;
}

.card:hover .content {
  transform: translateY(0);
}

/* Title styling */
.content .title {
  color: #fff;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.05em;
  text-align: center;
}

.content .title span {
  font-weight: 300;
  font-size: 0.75em;
}

/* Center the header */
.text-center {
  text-align: center;
}

.text-3xl {
  font-size: 1.875rem; /* 30px */
  line-height: 2.25rem; /* 36px */
}

.font-bold {
  font-weight: 700;
}

.text-white {
  color: white;
}

.mb-8 {
  margin-bottom: 2rem; /* 32px */
}


/* Buttons */
.content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
  transition: transform 0.5s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

/* Button styling - from Uiverse.io */
.button {
  position: relative;
  width: 100px;
  height: 38px;
  background-color: #000;
  display: flex;
  align-items: center;
  color: white;
  flex-direction: column;
  justify-content: center;
  border: none;
  padding: 10px;
  
  border-radius: 8px;
  cursor: pointer;
  font-family: monospace;
  font-size: 0.8rem;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -2px;
  top: -2px;
  margin: auto;
  width: calc(100% + 4px); /* matches button width + border */
  height: calc(100% + 4px);
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.button:hover::after {
  filter: blur(30px);
}

.button:hover::before {
  transform: rotate(-180deg);
}

.button:active::before {
  scale: 0.7;
}

/* Make anchor tags look like buttons */
.buttons a.button {
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: Add hover effect to Preview button */
.buttons button.button {
  transition: all 0.3s ease;
}
.buttons button.button:hover {
  background-color: #333;
}


/* card preview */
.preview-container {
  display: none;
  margin: 2rem auto;
  max-width: 1200px;
}

.preview-card {
  position: relative;
  width: 400px;
  height: 750px;
  background: linear-gradient(315deg, #a855f7, #6b21a8);
  border-radius: 12px;
  padding: 4px;
  margin: 0 auto;
  box-sizing: border-box;
}

.preview-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  overflow: hidden;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: white;
  isolation: isolate;;
}

/* Add this to prevent style leakage */
iframe {
  color-scheme: light;
  background: white !important;
}

.close-preview {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.close-preview:hover {
  background: rgba(255, 255, 255, 0.2);
}


.info-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(0, 0, 0, 0.8);
  padding: 0 15px;
  border-radius: 0 0 8px 8px;
  margin-top: 0;
  border-top: 1px solid #ccc;
}

.info-content.open {
  max-height: 300px;
  padding: 10px 15px;
}

.info-content ul {
  margin: 0;
  padding-left: 20px;
  color: white;
  font-size: 0.85rem;
}



/* 

      Technologies and tools used

*/
.technologies {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  color: white;
  font-family: monospace;
  position: relative;
  margin-top: 40px;;
}

.technologies h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.8rem;
  justify-items: center;
  align-items: center;
}

.tech-card {
  background: rgba(255 255 255 / 0.1);
  border-radius: 12px;
  padding: 1rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 8px rgb(255 255 255 / 0.1);

  /* fix size for all cards */
  width: 140px;
  height: 160px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  /* vertically center content */
  text-align: center;
}

.tech-card:hover {
  background: linear-gradient(135deg, #a855f7, #6b21a8);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgb(168 85 247 / 0.6);
}

.tech-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  flex-shrink: 0; /* prevent shrinking */
}

.tech-name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

/*

  Education section

*/

.education {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 80px; /* Padding so it doesn't touch bottom of page */
}

.education h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    
}

.education-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Makes them stack on small screens */
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    flex: 1 1 300px;
    text-align: left;
    line-height: 1.6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.education-card h3 {
    margin-bottom: 5px;
    color: white;
}

.education-card p {
    margin: 8px 0;
    color: #ddd;
}

.education-card:hover {
    transform: translateY(-5px);
}


/* 

  Contact section

*/

.contact {
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
  justify-content: center; /* center vertically if height set */
  min-height: 300px; /* optional, makes section taller */
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
}

.contact-card {
  max-width: 400px;
  margin: 0 auto;
  text-align: center; /* center content inside */
  color: #fff;
  background-color: #1e1e2f;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-card a {
  color: #a855f7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #d8b4fe;
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.contact h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    
}

 /* 
 
  Footer 

 */


.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* 

  GitHub Contributions Section

*/

.github-container {
    text-align: center;
    max-width: 90%;  /* keeps it smaller on large screens */
    margin: 0 auto;  /* centers horizontally */
}

.github-container h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    
}

/* Month labels row above the grid */
.months-row {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 5px;
    font-size: 0.75rem;
    color: #aaa;
}

.month-label {
    width: 12px;
    text-align: center;
}

.month-spacer {
    width: 12px;
}

/* Main contributions grid */
.grid {
    display: flex;
    gap: 3px;
    justify-content: center; /* center horizontally */
    flex-wrap: wrap; /* makes it responsive for mobile */
    margin-top: 1rem;
}

.week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.day {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: #888; /* grey instead of white */
    transition: transform 0.1s ease;
}

.day:hover {
    transform: scale(1.2); /* small hover zoom */
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .day {
        width: 8px;
        height: 8px;
    }

    .month-label, .month-spacer {
        width: 8px;
    }
}

