:root {
  --primary-color: #212035;
  --secondary-color: #34324F;
  --third-color: #15151E;

  --first-color: #413E64;
  --second-color:#34324F;
  --third-color: #2b2942;
  --fourth-color:#212035;
  --fifth-color: #1b1b2a;
  --sixth-color: #15151E;
  --light-color: #4F4F87;

  --primary-text-color: #FFFFFF;
  --secondary-text-color: rgb(201, 201, 201);
  --third-text-color: #888;

  /* New */
  --highlight-color: #338CAE;

  --background-color-primary: #34324F;
  --background-color-secondary: #34324F;
  --background-color-third: #212035;

  --color-h1: #ffffff;
  --color-p: #d8d8d8;
  --color-p-soft: #b4b4b4;
  --color-bold: #fff;

  --font-header: 'Lexend', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
}

/* Headings (all h1, h2, etc.) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
}

/* Body text */
body, p, span, li, a {
    font-family: var(--font-body);
}

/* ===========================
       NAVIGATION BAR
   =========================== */

.navbar {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    left: 0;
    min-height: 65px;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
    width: 100%;
    z-index: 999;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.navbar.menu-open {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(6px);
}

/* Container */
.nav-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
}

/* Logo */
.nav-logo {
    color: white;
    cursor: pointer;
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-container a {
    padding-left: 2vh;
}

/* Links */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    position: relative;
}

.nav-links a {
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active {
    border-bottom: 2px solid white;
    font-weight: 700;
    opacity: 1 !important;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 5px;
}

.nav-dropdown > a i {
    font-size: 0.8rem;
    margin-left: 3px;
}

.dropdown-menu {
    background-color: rgba(0,0,0,0.85);
    border-radius: 6px;
    display: none;
    flex-direction: column;
    left: 50%;
    min-width: 160px;
    padding: 0.5rem 0;
    position: absolute;
    text-align: center;
    top: 100%;
    transform: translateX(-50%);
    z-index: 996;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    color: #fff;
    display: block;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #ff8a3d;
    border-radius: 4px;
}

/* Hamburger */
.nav-hamburger {
    cursor: pointer;
    display: none;
    flex-direction: column;
    height: 20px;
    justify-content: space-between;
    position: relative;
    width: 25px;
    z-index: 1001;
}

.nav-hamburger span {
    background: white;
    border-radius: 2px;
    display: block;
    height: 3px;
    transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6.5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6.5px, -5px);
}

/* ===========================
        RESPONSIVE
   =========================== */

@media (max-width: 768px) {

    .nav-hamburger {
        display: flex;
        margin-right: 20px;
    }

    .nav-links {
        align-items: center;
        background: rgba(0,0,0,0.9);
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 15px;
        height: 100vh;
        justify-content: center;
        left: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        position: fixed;
        text-align: center;
        top: 0;
        width: 100vw;
        z-index: 998;
    }

    .nav-links.show {
        display: flex !important;
        width: 100%;
    }

    .nav-links li {
        padding: 5px 0;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        font-size: 1.4rem;
        padding: 15px 0;
        text-align: center;
        width: 100%;
    }

    /* ===========================
         MOBILE DROPDOWN FIX
       =========================== */

    .nav-dropdown {
        all: unset;
        width: 100%;
    }

    .nav-dropdown > a {
        display: none !important;
    }

    .nav-dropdown .dropdown-menu {
        all: unset;
        align-items: center;
        display: flex !important;
        flex-direction: column;
        gap: 4vh;
        width: 100%;
    }

    .nav-dropdown .dropdown-menu li {
        list-style: none;
        padding: 0;
        width: 100%;
    }

    .nav-dropdown .dropdown-menu li a {
        display: block;
        font-size: 1.4rem;
        padding: 15px 0;
        text-align: center;
        width: 100%;
    }
}



/* ===========================
       HERO SECTION
   =========================== */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-p);
  padding: 0 20px;
  font-family: var(--font-body); /* Default body font */
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0, 0, 0, 0.5); /* subtle black overlay, 0.4 = 40% opacity */
    z-index: 1; /* behind text */
}

.hero-inner {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
    position: relative;
    z-index: 2;
}

/* NAME — biggest */
.hero-name {
  font-family: var(--font-header); /* Professional header font */
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-name span {
  color: var(--color-h1);
}

/* ROLE — smaller */
.hero-role {
  font-family: var(--font-body); /* Professional body font */
  font-size: 3rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 5px;
  margin-top: 5px;
}

.hero-divider {
  width: 820px; /* length of the line */
  height: 2px;  /* thickness */
  margin: 10px auto 0; /* spacing above the next content, centered */
  margin-bottom: 20px;
  
  /* Faded edges effect */
  background: linear-gradient(to right, transparent, #bababa, transparent);
  z-index: 1;
}

/* BUTTON CONTAINER */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 25px;
}

/* BASE BUTTON STYLE */
.btn {
  padding: 12px 32px;
  font-size: 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: var(--font-body);
  font-weight: 600;
  display: inline-block;
  position: relative;
}

/* PRIMARY BUTTON */
.btn.primary {
  background: var(--background-color-third);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 2px solid transparent;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* SECONDARY BUTTON */
.btn.secondary {
  color: var(--color-bold);
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.btn.secondary:hover {
  color: white;
  transform: translateY(-3px);
}

/* ANIMATION */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  color: var(--background-color-third);
  z-index: 10;
  margin-bottom: -5px;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 250px; /* increase this to exaggerate height visually */
}

/* ======================
       ABOUT SECTION
   ====================== */

.about-section {
    background: var(--background-color-third);
    padding: 120px 20px;
    color: var(--color-p);
    display: flex;
    justify-content: center;
    font-family: var(--font-body);
    padding-top: 8vh;
    padding-bottom: 8vh;
}

.about-container {
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 60px;

    /* Start hidden for animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When visible, fade in and lift up */
.about-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* IMAGE */
.about-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #5c5bff;
    box-shadow: 0 0 20px rgba(92, 91, 255, 0.4);

    /* Start hidden */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Fade in when visible */
.about-image img.visible {
    opacity: 1;
    transform: translateY(0);
}


/* TEXT */
.about-content h2 {
    font-family: var(--font-header);
    color: var(--color-h1);
    font-size: 3rem;
    margin-bottom: 20px;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;

    max-width: 700px;
    margin-bottom: 25px;
}

.about-content.visible h2,
.about-content.visible p {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 320px;
        height: 320px;
    }
}

/* ======================
       PROJECTS
====================== */

#projects {
  margin: 0 auto;
  padding: 11vh 11vh;
  background: var(--fourth-color);
  color: var(--primary-text-color);
  font-family: var(--font-body);
}

#projects h2{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 32px; /* spacing between cards */
  width: 100%;
  padding: 40px 20px;
  max-width: 1400px; /* keeps it centered on large screens */
  margin: 0 auto;
}

.project-card {
  background: var(--fifth-color);
  border: 1px solid #222;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px); /* lift effect */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34); /* soft shadow */
}

.project-media {
  width: 100%;
  height: 220px;
  min-height: 220px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.project-description {
  color: #ccc;
  font-size: 14px;
}

.project-meta {
  margin: 10px 0;
  font-size: 12px;
  color: var(--third-text-color);
  display: flex;
  gap: 10px;
}

.project-tags {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: #0d0d15;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--secondary-text-color);
}

.project-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  background: #0d0d15;
  color: var(--primary-text-color);
  opacity: .8;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity .2s;
}

.project-btn:hover {
  opacity: 1;
}

/* tablet — 2 cards per row */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile — 1 card per row */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.projects-view-all {
    text-align: center;
    margin-top: 0px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--fifth-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-all-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* ======================
       EDUCATION
   ====================== */

.education-section {
    padding: 120px 20px;
    background: var(--second-color); /* or white */
    color: var(--primary-text-color);
    display: flex;
    justify-content: center;
    font-family: var(--font-body);
    padding-bottom: 10vh;
}

.education-container {
    max-width: 1100px;
    width: 100%;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0px;
    text-align: center;
}

.education-timeline {
  padding-top: 10vh;
    display: grid;
    gap: 40px;
}

.education-item {
    background: var(--third-color, #ffffff10); /* subtle tint */
    border-radius: 14px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.education-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.education-degree {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.education-school {
    font-size: 1.2rem;
    opacity: 0.8;
}

.education-year {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 1vh;
    margin-top: 1vh;
}

.education-details {
    font-size: .8rem;
    line-height: 1.6;
}

/* ---------------------------- */
/*   SKILLS SECTION             */
/* ---------------------------- */
.skills-section {
    padding: 80px 20px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: var(--background-color-secondary);
    color: white;
    padding-bottom: 20vh;
}

.skills-section h2 {
    font-size: 2.3rem;
    font-family: var(--font-header);
    font-weight: 700;
    margin-bottom: 25px;
}

/* GRID */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    width: 75%;
    justify-self: center;
}

/* SKILL TAG */
.skills-grid p {
    padding: 10px 20px;
    background-color: var(--third-color); /* Soft, modern glass tint */
    border: 2px solid rgba(42, 41, 66, 0.8);
    border-radius: 14px;
    font-size: 1.3rem;
    backdrop-filter: blur(4px); /* Subtle premium effect */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    user-select: none;
    cursor: default;
    color: #ebebeb;
}

.skills-grid p:hover {
    transform: translateY(-.5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* ======================
       CONTACT CTA SECTION
   ====================== */
.contact-cta-section {
    background: var(--secondary-color);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    padding-top: 0px;
    background-color: var(--primary-color);
}

.contact-cta-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    width: 100%;
    margin-top: 0px;
    justify-content: center;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    background: var(--third-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 300px;
    max-width: 400px;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(18, 18, 51, 0.4);
}

.cta-btn i {
    font-size: 1.5rem;
}

@media (max-width: 650px) {
    .contact-cta-container {
        flex-direction: column;
        gap: 20px;
    }
}

.contact-cta-section {
    display: flex;
    flex-direction: column; /* stack everything vertically */
    align-items: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.contact-cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
    max-width: 900px;
}

.contact-divider {
    width: 1200px;
    height: 2px;
    margin: 40px auto 30px;
    background: linear-gradient(to right, transparent, #777, transparent);
}

.additional-contact {
    text-align: center;
    color: var(--primary-text-color);
    font-size: 24px;
}

.additional-contact p{
  margin-bottom: 4vh;
}

.social-icons a {
    color: #fff;             /* normal state */
    font-size:3rem;
    transition: 0.3s ease;
    text-decoration: none;   /* remove underline just in case */
    padding: 20px;
}

.social-icons a:hover {
    color: #5c5bff;          /* your accent color on hover */
    transform: translateY(-3px);
}

.social-icons a:visited,
.social-icons a:active {
    color: #fff;             /* force white for visited and active links */
}

#btt{
    background-color: var(--background-color-primary);
    padding: 1.5vh;
    width: 20vh;
    border-radius: 20px;
    color: var(--color-bold);
    cursor: pointer;
}

/* ---------------------------- */
/*   FOOTER SECTION             */
/* ---------------------------- */

footer {
    text-align: center;
    background-color: #15151E;
    padding: 10px;
    width: 100%;
    bottom: 0;
}

footer p {
  margin: 5px 0;
  font-size: 14px;
  color: var(--primary-text-color);
}

/* ---------------------------- */
/*   SNOWFLAKES SECTION         */
/* ---------------------------- */

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;   /* Ensures full width */
    height: 100vh;
    pointer-events: none;
    overflow: hidden; /* Important! */
    z-index: 50;
}
.snowflake {
    position: absolute;
    top: -10vh;
    color: white;
    user-select: none;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Keyframes for falling and rotating */
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
  }
}
