:root {
  --bg-top: #1a2753;
  --bg-bottom: #000000;
  --fg: #eaeaea;
  --muted: #a1a1aa;
  --accent: #f59e0b; /* amber */
  --card: #18181b;
  --glass-card:rgba(255, 255, 255, 0.05);
}
* { box-sizing: border-box; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--fg);
  line-height: 1.6;
}

a { 
  color: var(--fg); 
  text-decoration: none;
}
a:hover {
  opacity: 0.85;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}


.container {
  max-width: 1320px;
  margin: auto;
  padding: 80px 24px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 120px;
}
.logo { font-weight: 600; letter-spacing: 0.5px; }

.navlink {
  margin-left: 24px;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  position: relative;
  transition: color 0.3s ease;
}

.navlink::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  transition-delay: 0.2s;
}

.navlink:hover {
  color: var(--accent);
}

.navlink:hover::after {
  width: 100%;
}
.navlink:focus-visible::after {
  width: 100%;
}


h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 24px 0;
}
h2 { font-size: 28px; margin-bottom: 32px; }
p { max-width: 600px; color: var(--muted); font-size: 18px; }
section { margin-bottom: 140px; }

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: center;
}

.hero-image {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 320px;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  display: block;
  background: #111;
}

/* Glass border overlay - corners only */
.glass-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  pointer-events: none; /* So you can click through it */
  
  /* Top right corner highlight */
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  
  /* Bottom left corner highlight */
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  
  /* Glass effect overlay */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.05) 100%
  );
  
  /* Subtle glow on corners */
  box-shadow: 
    inset 8px -8px 16px rgba(255, 255, 255, 0.1),
    inset -8px 8px 16px rgba(255, 255, 255, 0.1);
}


.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding-top: 0;
}

.tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--accent);
}
footer {
  border-top: 1px solid #27272a;
  padding-top: 32px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}


.glass-card {

  background: var(--glass-card);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 6px 3px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 240px; /* Fixed height for all cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
}
.glass-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.4); */
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}

.title-head {
    display: flex;
    flex-direction: row;
    gap: 5px;
}



 /* Base coin styles */
.coin {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent); /* Fallback color */
  border-radius: 50%;
  height: fit-content;
  padding: 6px;
  margin-top: 10px;
  /* backdrop-filter: blur(5px); */
  /* -webkit-backdrop-filter: blur(5px); */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 6px 3px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Email */
.contact a:nth-child(1) .coin {
  background: linear-gradient(135deg, #ea4335, #f8630093, #f8df0093);
}

/* GitHub */
.contact a:nth-child(2) .coin {
  background: linear-gradient(135deg, #0a66c2, #8b00fd46, #8040c9);
}

/* LinkedIn */
.contact a:nth-child(3) .coin {
  background: linear-gradient(135deg, #0a66c2, #000000);
}

/* Phone */
.contact a:nth-child(4) .coin {
  background: linear-gradient(135deg, #25d366, #000000);
}

/* Hover effects */
.contact a:hover .coin {
  transform: scale(1.1);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
}


.stack-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stack-intro {
  max-width: 640px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 16px;
}

.stack-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.stack-item {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stack-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.stack-item h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
}

.stack-tools {
  font-size: 14px;
  color: var(--fg);
  margin: 0 0 6px 0;
}

.stack-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}


.glass-card p {
  position: relative; /* Ensures that the ::after is positioned relative to the p element */
  color: var(--muted);
  font-size: 16px;
  transition: color 0.3s ease;
  margin-top: 8px; /* Some spacing */
  padding-bottom: 2px; /* Add space for the pseudo-element */
}

.contact .glass-card p {
  color: var(--muted);
  margin-top: 8px;
}

/* Text wrapper */
.contact .glass-card p span {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

/* Underline */
.contact .glass-card p span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  transition-delay: 0.2s;
}

/* Hover */
.contact a:hover .glass-card p span {
  color: var(--accent);
}

.contact a:hover .glass-card p span::after {
  transform: scaleX(1);
}


.hero a{
  color: var(--accent);
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: color 0.3s ease;
  margin-top: 8px; /* Add some spacing */
}

.hero a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px; /* Slightly thinner than nav */
  background: var(--accent);
  transition: width 0.3s ease;
  transition-delay: 0.2s;
}

/* Hover on the entire card triggers animation */
.hero a:hover{
  color: var(--accent);
}

.hero a:hover::after {
  width: 100%;
}


#stack {
  position: relative;
  margin-bottom: 140px;
  padding: 80px 0    ; /* Adjust padding */
  padding-bottom: 100px;
}

#stack::before {
  content: '';
  background-image:
    linear-gradient(180deg,
    rgba(15, 22, 48, 0.4),  /* var(--bg-top) */
    rgba(7, 11, 23, 0.8)      /* var(--bg-bottom) */
    ), url(./images/2150853537.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: -1;
  /* Add blur to the top edge */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 10%,
    black 20%,
    black 80%,
    rgba(0,0,0,0.3) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 10%,
    black 20%,
    black 80%,
    rgba(0,0,0,0.3) 90%,
    transparent 100%
  );
}


#stack .container {
  position: relative;
  z-index: 1;
}

.contact .glass-card{
  height: 175px;
}



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeIn 0.6s ease-out;
}

/* Stagger animations */
.hero { animation-delay: 0.1s; }
#projects { animation-delay: 0.2s; }
#stack { animation-delay: 0.3s; }
#contact { animation-delay: 0.4s; }


@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; text-align: center; margin: auto;}
  .hero h1 {
    font-size: 36px;
    text-align: center;
  }
  .hero p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0px 14px;
  }

  .logo {
    margin-top: 20px;
  }
  
  .stack-glass {
    padding: 24px!important;
  }
  
  .projects{
    /* font-size: 13px; */
    grid-template-columns: 1fr;
    /* padding: 20px; */
    padding-bottom: 20px;
    padding-right: 20px;
    padding-left: 20px;
  }
  .contact{
    font-size: 13px;
    grid-template-columns: 1fr;
    /* padding: 20px; */
    padding-bottom: 20px;
    padding-right: 20px;
    padding-left: 20px;
  }
  
  .tag {
    font-size: 11px;
  }

  .projects .glass-card {
    /* height: auto; Remove fixed height on mobile */
    min-height: 220px;
  }

  .contact .glass-card {
    /* height: auto; Remove fixed height on mobile */
    height: 160px;
  }

  .hero-image {
    width: 60%;
  }
  .hero-text h1{
    font-size: 25px;
  }
  .hero-text p, .hero-text a{
    font-size: 15px;
  }

  .projects h3 {
    font-size: 16px;
  }
  .projects p {
    font-size: 14px;
  }
  
  h2 {
    font-size: 25px;
  }

  header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
  }
  
  .navlink {
    margin: 0 8px;
  }
  
  .coin {
    padding: 6px;
    margin-top: 4px;
    margin-right: 5px;
  }
  
  footer {
    margin-bottom: 15px;
  }
  #contact, #stack, #projects, .hero {
    margin-bottom: 30px;
  }
}