/* ================= THEME VARIABLES ================= */
:root {
    --bg: #020617;
    --text: #e5e7eb;
    --accent: #38bdf8;
    --glass: rgba(255,255,255,0.08); 
}

:root {
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 40px;
}

html {
  scroll-behavior: smooth;
}

/* Spacing system */
:root {
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 40px;
}


.light {
    --bg: #f8fafc;
    --text: #020617;
    --accent: #0284c7;
    --glass: rgba(0,0,0,0.06);
}

/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: 0.5s;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= Green LINKS HOVER ONLY ================= */

/* CONTACT LINKS HOVER ONLY */
#contact a {
  color: #e4e7ef;           /* default color for contact links */
  text-decoration: none;    /* remove underline */
  transition: color 0.3s;   /* smooth transition */
}

#contact a:hover {
  color: #4ade80;           /* light green on hover */
}

/* Progects links Hover */
#projects a {
  color: #e4e7ef;           /* default color for project links */
  text-decoration: none;    /* remove underline */
  transition: color 0.3s;   /* smooth transition */
}

#projects a:hover {
  color: #4ade80;           /* light green on hover */
}

/* ================= BACKGROUND BLOBS ================= */
.blob {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent 60%);
    filter: blur(120px);
    z-index: -1;
    animation: float 18s infinite alternate;
}

.blob.one { top: -100px; left: -100px; }
.blob.two { bottom: -100px; right: -100px; animation-delay: 4s; }

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(80px); }
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(0,0,0,0.45);
    z-index: 1000;
}

.light header {
    background: rgba(255,255,255,0.7);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

/* BUTTON */
.btn {
  display: inline-block;
  margin: 10px;
  padding: 14px 36px;
  background: var(--accent);
  color: #020617;
  border-radius: 30px;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56,189,248,0.4);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 22px;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: -6px;
    left: 0;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ================= TOGGLE ================= */
.toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    cursor: pointer;
}

/* ================= HAMBURGER ================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 4px 0;
}

/* ================= SECTIONS ================= */
section {
    padding: 50px 10%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 20px;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    gap: 40px;
  }
}


.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
}

.hero span {
    color: var(--accent);
}

.hero p {
    margin-top: 15px;
    font-size: 18px;
    opacity: 0.85;
}

.btn {
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56,189,248,0.4);
}


/* ================= CARDS ================= */
.card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 28px;
    margin: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

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

.card ul {
  margin-top: 10px;
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 8px;
}

.project-links {
  margin-top: 20px;
}


/* ================= SKILLS ================= */
.skill {
    margin-bottom: 8px;
}

.bar {
    height: 8px;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.bar div {
    height: 100%;
    background: var(--accent);
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 25px;
    opacity: 0.8;
    backdrop-filter: blur(7px);
    background: rgba(0,0,0,0.45);
    z-index: 1000;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        width: 220px;
        padding: 20px;
        border-radius: 16px;
        transition: 0.4s;
    }

    nav.active {
        right: 10%;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 42px;
    }
}
/*==  ================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
