/* ============================================
   PORTFOLIO STYLES
   Author: Abdullah Aal Amin
   Description: Full Stack Laravel Developer Portfolio
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Background Colors */
  --bg: #080a0b;
  --sur: #101315;
  --sur2: #181c1f;
  
  /* Border Colors */
  --b: rgba(255, 255, 255, 0.07);
  --bh: rgba(255, 255, 255, 0.14);
  
  /* Text Colors */
  --tx: #eceae3;
  --mu: #7a7874;
  --di: #3e3d3b;
  
  /* Accent Colors */
  --ac: #c8f56a;
  --a10: rgba(200, 245, 106, 0.10);
  --a20: rgba(200, 245, 106, 0.20);
  
  /* Additional Colors */
  --bl: #5ba3f5;
  --tl: #4ad9b0;
  --pk: #f06292;
  --am: #f5c842;
  
  /* Fonts */
  --fd: 'DM Serif Display', serif;
  --fb: 'Plus Jakarta Sans', sans-serif;
  --fm: 'DM Mono', monospace;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 245, 106, 0.3);
  border-radius: 2px;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
#cur {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--ac);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

#cur-r {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(200, 245, 106, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

a:hover ~ #cur,
button:hover ~ #cur {
  width: 22px;
  height: 22px;
}

/* ============================================
   CANVAS BACKGROUND
   ============================================ */
#bgc {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.wrap {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: all 0.4s;
}

nav.sc {
  background: rgba(8, 10, 11, 0.82);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--b);
}

nav .in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nlogo {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--ac);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nlogo::after {
  content: '_';
  animation: blink 1.1s step-end infinite;
}

.nlinks {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nlinks a {
  color: var(--mu);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}

.nlinks a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ac);
  transition: width 0.3s;
}

.nlinks a:hover {
  color: var(--tx);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid var(--b);
  padding-left: 20px;
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mu);
  transition: all 0.2s;
  cursor: none;
}

.share-icon:hover {
  color: var(--ac);
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.h-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(200, 245, 106, 0.035) 0%, transparent 60%);
  pointer-events: none;
  animation: pglow 5s ease-in-out infinite;
}

.h-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--ac);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: sil 0.7s 0.2s ease forwards;
}

.edot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac);
  animation: dp 2s ease-in-out infinite;
  flex-shrink: 0;
}

h1 {
  font-family: var(--fd);
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  opacity: 0;
  animation: sil 0.8s 0.35s ease forwards;
}

h1 em {
  font-style: italic;
  color: var(--ac);
  position: relative;
}

h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ac), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: udraw 1s 1.3s ease forwards;
}

.tw-wrap {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--ac);
  min-height: 24px;
  margin-bottom: 10px;
  opacity: 0;
  animation: fi 0.5s 0.55s forwards;
}

.hero-desc {
  color: var(--mu);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 460px;
  opacity: 0;
  animation: sil 0.7s 0.65s ease forwards;
}

.hctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: sil 0.7s 0.8s ease forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: none;
  border: none;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-p {
  background: var(--ac);
  color: #080a0b;
  position: relative;
  overflow: hidden;
}

.btn-p::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-p:hover::before {
  opacity: 1;
}

.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(200, 245, 106, 0.3);
}

.btn-g {
  background: transparent;
  color: var(--tx);
  border: 1px solid var(--bh);
}

.btn-g:hover {
  border-color: var(--ac);
  color: var(--ac);
  box-shadow: 0 0 20px rgba(200, 245, 106, 0.1);
}

/* Hero Card */
.hcard {
  background: var(--sur);
  border: 1px solid var(--b);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: sir 0.9s 0.5s ease forwards;
  transition: transform 0.15s ease-out;
}

.hcard-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(200, 245, 106, 0.09) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.hcard:hover .hcard-glow {
  opacity: 1;
}

.sgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.snum {
  font-family: var(--fd);
  font-size: 42px;
  color: var(--tx);
  line-height: 1;
  margin-bottom: 4px;
}

.snum span {
  color: var(--ac);
}

.slbl {
  font-size: 11px;
  color: var(--mu);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  font-family: var(--fm);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--sur2);
  color: var(--mu);
  border: 1px solid var(--b);
  transition: all 0.2s;
  cursor: none;
}

.badge:hover {
  border-color: var(--bh);
  color: var(--tx);
}

.badge.ac {
  color: var(--ac);
  border-color: var(--a20);
  background: var(--a10);
}

.badge.bl {
  color: var(--bl);
  border-color: rgba(91, 163, 245, 0.2);
  background: rgba(91, 163, 245, 0.08);
}

.badge.tl {
  color: var(--tl);
  border-color: rgba(74, 217, 176, 0.2);
  background: rgba(74, 217, 176, 0.08);
}

/* Scroll Indicator */
.scroll-ind {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fi 1s 1.6s forwards;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--ac), transparent);
  transform-origin: top;
  animation: sdrop 2.2s ease-in-out infinite;
}

.scroll-txt {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--di);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 110px 0;
}

.slabel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--di);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.slabel::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--b), transparent);
}

h2 {
  font-family: var(--fd);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.sdesc {
  color: var(--mu);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 64px;
  line-height: 1.75;
}

/* ============================================
   EXPERIENCE SECTION (TIMELINE)
   ============================================ */
.tline {
  position: relative;
}

.tline-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--ac), rgba(200, 245, 106, 0.1));
  height: 0;
  transition: height 1.2s ease;
}

.tlitem {
  padding: 0 0 56px 44px;
  position: relative;
}

.tldot {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--di);
  transition: all 0.4s;
  z-index: 2;
}

.tlitem:hover .tldot {
  border-color: var(--ac);
  background: var(--ac);
  box-shadow: 0 0 18px rgba(200, 245, 106, 0.5);
}

.tldate {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--di);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tlrole {
  font-size: 18px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 4px;
}

.tlco {
  font-size: 14px;
  color: var(--ac);
  margin-bottom: 16px;
  font-family: var(--fm);
}

.tldesc {
  color: var(--mu);
  font-size: 14px;
  line-height: 1.75;
}

.tldesc ul {
  list-style: none;
}

.tldesc li {
  padding: 4px 0 4px 18px;
  position: relative;
}

.tldesc li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--ac);
  font-size: 10px;
  top: 7px;
}

.tltags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 20px;
}

.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.pcard {
  background: var(--sur);
  border: 1px solid var(--b);
  border-radius: 14px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: border-color 0.3s;
}

.pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(200, 245, 106, 0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.pcard:hover::before {
  opacity: 1;
}

.pcard:hover {
  border-color: var(--bh);
}

.pcard.feat {
  border-color: rgba(200, 245, 106, 0.15);
}

.flbl {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--ac);
  color: #080a0b;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 14px 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.picon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: var(--sur2);
  border: 1px solid var(--b);
}

.ptitle {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.pdesc {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.65;
  margin-bottom: 20px;
}

.ptags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.sklayout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.skgroup {
  margin-bottom: 32px;
}

.sktitle {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--di);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--b);
}

.sklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skchip {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--sur);
  border: 1px solid var(--b);
  color: var(--tx);
  transition: all 0.25s;
  cursor: none;
  position: relative;
  overflow: hidden;
}

.skchip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ac);
  transform: translateY(101%);
  transition: transform 0.25s ease;
  z-index: 0;
}

.skchip span {
  position: relative;
  z-index: 1;
  transition: color 0.25s;
}

.skchip:hover::before {
  transform: translateY(0);
}

.skchip:hover span {
  color: #080a0b;
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */
.agrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.acard {
  background: var(--sur);
  border: 1px solid var(--b);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s;
  cursor: none;
  position: relative;
  overflow: hidden;
}

.acard::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ac), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.acard:hover {
  border-color: var(--bh);
  transform: translateY(-3px);
}

.acard:hover::after {
  transform: scaleX(1);
}

.aicon {
  font-size: 28px;
  margin-bottom: 12px;
}

.atitle {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.asub {
  font-size: 12px;
  color: var(--mu);
  line-height: 1.5;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.cwrap {
  background: var(--sur);
  border: 1px solid var(--b);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
  overflow: hidden;
}

.cblob {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 245, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: pglow 6s ease-in-out infinite;
}

.ctitle {
  font-family: var(--fd);
  font-size: 40px;
  margin-bottom: 18px;
  line-height: 1.15;
}

.cdesc {
  color: var(--mu);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.clinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clink {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mu);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s;
  padding: 8px 0;
  border-bottom: 1px solid var(--b);
}

.clink:hover {
  color: var(--ac);
  border-bottom-color: var(--a20);
  padding-left: 6px;
}

.clico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sur2);
  border: 1px solid var(--b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.25s;
}

.clink:hover .clico {
  background: var(--a10);
  border-color: var(--a20);
}

.cform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cform input,
.cform textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--sur2);
  border: 1px solid var(--b);
  border-radius: 10px;
  color: var(--tx);
  font-family: var(--fb);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: none;
}

.cform input:focus,
.cform textarea:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(200, 245, 106, 0.08);
}

.cform input::placeholder,
.cform textarea::placeholder {
  color: var(--di);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--di);
  font-family: var(--fm);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rv.on {
  opacity: 1;
  transform: none;
}

/* ============================================
   FLOATING ORBS
   ============================================ */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: forb var(--d, 9s) ease-in-out infinite;
}

/* ============================================
   KEYFRAMES ANIMATIONS
   ============================================ */
@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes dp {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(200, 245, 106, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(200, 245, 106, 0);
  }
}

@keyframes pglow {
  0%, 100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes udraw {
  to {
    transform: scaleX(1);
  }
}

@keyframes sil {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sir {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fi {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sdrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes forb {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(var(--x1, 20px), var(--y1, -20px));
  }
  66% {
    transform: translate(var(--x2, -15px), var(--y2, 15px));
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .h-grid,
  .sklayout,
  .cwrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cwrap {
    padding: 32px 24px;
    gap: 32px;
  }

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

  .nlinks {
    display: none;
  }

  .social-share {
    border-left: none;
    padding-left: 0;
  }

  .container {
    padding: 0 20px;
  }

  footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    padding: 24px 0;
    text-align: center;
  }

  .fsep {
    display: none;
  }

  #cur,
  #cur-r {
    display: none;
  }

  body {
    cursor: auto;
  }

  .btn,
  .badge,
  .skchip,
  .pcard,
  .acard,
  .clink {
    cursor: auto;
  }
}
