*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    font-family: 'Inter';
}

:root {
   --bar-width: 48px;
   --bar-height: 6px;
   --hamburger-gap: 6px; 
   --animation-timing: 0.3s ease-in-out;
   --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
   --bg: #0f1220;
   --card: #181b34;
   --accent: #7c7cff;
   --text: #f4f4f8;
   --muted: rgb(117, 107, 126);
}

header {
    height: 100vh;
    width: 100vw;
    background-color: #fafafa;
    background-size: cover;

}

.navbar {
    position: fixed;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background-color: #fafafa;
    z-index: 1000;
}

.navbar a {
  text-decoration: none;
  color: #232323;
  
  transition: color 0.3s ease;
}

.navbar a:hover {
    color: blueviolet;

}

.navbar .logo {
    font-size: 2em;
    font-weight: bold;
    
}

.navbar .nav-links ul {
    display: flex;
}

.navbar .nav-links ul li {
    margin: 0 28px;
}

.hamburger-menu {
    display: none;
    position: absolute;
    top: 38;
    right: 50;
    width: max-content;
    z-index: 2;
}

.section{
    background-color: #fafafa;
    max-width: 100%;
}

.section_container{
    min-height: 100%;
    width: 100%;
    margin: auto;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.content{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subtitle{
    letter-spacing: 2px;
    color: #c88ad7;
    font-weight: 600;
    margin-bottom: .5rem;
}

.title{
    font-size: 5rem;
    font-weight: 400;
    line-height: 6rem;
    color: #232323;
    margin-bottom: 1rem;
}

.title span{
    font-weight: 600;
    color: rgb(79, 90, 214);
}

.description{
    font-size: 1.5rem;
    line-height: 2rem;
    color: #232323;
    margin-bottom: 2rem;
}

.action_button{
    display: flex;
    overflow: hidden;
    transform: scale(1.5s);
    gap: 1rem;
}

.action_button button{
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    outline: none;
    border: none;
    transition: .3s;
    cursor: pointer;
    border-radius: 500px;
    z-index: 0;
}

.see_resume{
    position: relative;
    display: inline-block;
    margin: 0.35rem 0.4rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0077ff;
    text-decoration: none;
    border-radius: 30px;
    z-index: 1;
    background: #ffffff;
    transition:
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.see_resume::before{
    /*background-color: blueviolet;
    color: #ffffff;*/
     content: "";
    position: absolute;
    inset: 0;
    padding: 2px; /* border thickness */
    border-radius: inherit;


    background: linear-gradient(
        270deg,
        #0077ff,
        #00d4ff,
        #7f5cff
    );
    background-size: 600% 600%;
    animation: gradientMove 6s ease infinite;


    /* Mask trick to create outline */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;


    z-index: -1;
}

.see_resume:hover{
    transform: translateY(-3px);
    box-shadow: 0 4px 4px rgba(0, 119, 255, 0.35);
}

.see_resume:hover::after{
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(
        270deg,
        #0077ff,
        #00d4ff,
        #7f5cff
    );
    background-size: 600% 600%;
    animation: gradientMove 6s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.image{
    display: grid;
    place-items: center;
}

.image img{
    width: min(22rem, 90%);
    border-radius: 100%;
}

footer .container{
    background-color: #fafafa;
}

.row{
    display: flex;
    justify-content: space-between;
    padding: 40px 40px;
}

.col p{
    color: #232323;
    font-size: 1rem;
}

.row hr{
    opacity: 0.7s;
}

.row .socialIcons i{
    display: inline-block;
    color: blueviolet;
    font-size: 32px;
    margin: 0 15px;
    transition: 0.5s;
}

.row .socialIcons i:hover{
    color: #551b6d;
}

/*.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
} */

.about-text {
  flex: 1;
}
    .about {
    background-color: #fafafa;
    min-height: 100%;
    width: 100%;
    margin: auto;
    padding: 3rem;
    display: grid;
    gap: 4rem;
    padding-top: 7.5rem;
    padding-bottom: 18rem;
    grid-template-columns: repeat(2, 1fr);
    }

    .about h1 {
      font-size: 3.5rem;
      margin-bottom: 16px;
    }

    .about p {
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 16px;
      color: #444;
    }

    .about .highlight {
      font-weight: 600;
      color: var(--accent);
    }

    @media (max-width: 768px) {
      .about {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .about img {
        margin: 0 auto;
      }
    }

/* =======================
   PROJECTS SECTION
======================= */
#projects {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

#projects h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #222;
}

/* =======================
   GRID
======================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* =======================
   PROJECT CARD (Scroll Animation)
======================= */
.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);

    /* Initial hidden state */
    opacity: 0;
    transform: translateY(40px);
    transition: 
        opacity 0.8s ease,
        transform 0.8s ease,
        box-shadow 0.3s ease;
}

/* Revealed on scroll */
.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* =======================
   IMAGE
======================= */
.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

/* =======================
   TEXT
======================= */
.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* =======================
   GRADIENT OUTLINE BUTTONS
======================= */
.project-card a {
    position: relative;
    display: inline-block;
    margin: 0.35rem 0.4rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0077ff;
    text-decoration: none;
    border-radius: 30px;
    z-index: 1;
    background: #ffffff;
    transition: 
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Gradient border using pseudo-element */
.project-card a::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px; /* border thickness */
    border-radius: inherit;

    background: linear-gradient(
        270deg,
        #0077ff,
        #00d4ff,
        #7f5cff
    );
    background-size: 600% 600%;
    animation: gradientMove 6s ease infinite;

    /* Mask trick to create outline */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    z-index: -1;
}

/* Hover effect */
.project-card a:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.35);
}

/* Fill background on hover */
.project-card a:hover::after {
    opacity: 1;
}

/* Gradient fill on hover */
.project-card a::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(
        270deg,
        #0077ff,
        #00d4ff,
        #7f5cff
    );
    background-size: 600% 600%;
    animation: gradientMove 6s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

    /* Timeline */
    .timeline {
      border-left: 3px solid var(--accent);
      padding-left: 1.5rem;
      margin-top: 1.5rem;
    }

    .timeline-item {
      margin-bottom: 1.5rem;
      opacity: 0;
      transform: translateX(-10px);
      transition: all 0.6s ease;
    }

    .timeline-item.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .timeline-item span {
      color: var(--muted);
      font-size: 0.9rem;
    }

    /* Polaroid Gallery */
.polaroid-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.polaroid {
  background: #ffffff;
  color: #111;
  width: 200px;
  padding: 1rem 1rem 1.8rem;
  border-radius: 6px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  transform: rotate(0deg) scale(0.9);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.polaroid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}

.polaroid p {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  text-align: center;
  font-family: "Courier New", monospace;
}

/* Random rotation variants */
.rotate-left {
  transform: rotate(-4deg) scale(0.9);
}

.rotate-right {
  transform: rotate(5deg) scale(0.9);
}

/* Reveal animation */
.polaroid.visible {
  opacity: 1;
  transform: rotate(var(--rotation, 0deg)) scale(1);
}

/* Hover interaction */
.polaroid:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 2;
}

/* =======================
   GRADIENT ANIMATION
======================= */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 600px) {
    #projects h2 {
        font-size: 2rem;
    }

    .project-card img {
        height: 160px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0;
    }

    .navbar .logo {
        position: absolute;
        top: 32px; 
        left: 32px;
    }

    .hamburger-menu {
        --x-width: calc(var(--hamburger-height) * 1.41421356237);

        display: flex;
        flex-direction: column;
        gap: var(--hamburger-gap);
        cursor: pointer;
    }
        
    .hamburger-menu:has(input:focus-visible)::before,
    .hamburger-menu:has(input:focus-visible)::after,
    .hamburger-menu input:focus-visible {
        border: 1px solid #fafafa;
        box-shadow: 0 0 0 1px #232323;
    }

    .hamburger-menu::before,
    .hamburger-menu::after,
    .hamburger-menu input {
        content: "";
        width: var(--bar-width);
        height: var(--bar-height);
        background-color: #232323;
        border-radius: 99999px;
        transform-origin: right center;
        transition: opacity var(--animation-timing), width var(--animation-timing), rotate var(--animation-timing), translate var(--animation-timing);
    }
    .hamburger-menu input {
        appearance: none;
        padding: 0;
        margin: 0;
        outline: none;
        pointer-events: none;
    }

    .hamburger-menu:has(input:checked)::before{
        rotate: -45deg;
        width: var(--x-width);
        translate: 0 calc(var(--bar-height) / -2);
    }

    .hamburger-menu:has(input:checked)::after{
        rotate: 45deg;
        width: var(--x-width);
        translate: 0 calc(var(--bar-height) / 2);
    }

    .hamburger-menu input:checked {
        opacity: 0;
        width: 0;
    }

    .nav-links {
        top: 0;
        left: 0;
        position: absolute;
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(7px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: translate var(--animation-timing); /*all 0.5s ease*/
    }

    .hamburger-menu:has(input:checked) + .nav-links {
        translate: 0;
    }

    .nav-links.mobile-menu {
        margin-left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        display: flex;
        align-items: center;
    }

    .navbar .nav-links ul li {
        margin: 16px 0;
        font-size: 1.2em;
    }

    .section_container{
        padding: 10rem 1rem 5rem 1rem;
        text-align: center;
        grid-template-columns: repeat(1, 1fr);
    }

    .image{
        grid-area: 1/1/2/2;
    }

    .action_buttons{
        margin: auto;
    }

    footer .row{
        flex-direction: column;
        padding: 20px 30x;
        align-items: center;
        text-align: center;
    }

    .socialIcons{
        padding: 30px;
    }
}