

html {
  scroll-behavior: smooth;
}
  
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  text-align: center;
  padding: 20px;
}

#home h1 {
  background: linear-gradient(90deg, #3b82f6, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#home p {
  font-size: 18px;
  opacity: 0.8;
}

#contact {
  background: #020617;
  padding: 60px 20px;
  min-height: auto;
  padding-bottom: 100px;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e3a8a;
  color: white;
  padding: 15px 10%;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* LINKS */
.nav-links {
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  background: #1e3c72;
  flex-direction: column;
  align-items: center;
  display: none;
}

.nav-links.active {
  display: flex;
}

/* MENU ICON */
.menu-toggle {
  display: none;
  font-size: 25px;
  cursor: pointer;
}

/* SECTIONS */
.section {
  padding: 100px 10%;
  text-align: center;
}

@media (max-width: 768px){

  .menu-toggle{
    display: block;
  }

  .nav-links{
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);

    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 👈 important */

    padding-top: 40px;
    gap: 20px;

    overflow-y: auto; /* 👈 THIS FIXES IT */
    transition: 0.4s ease;
  }

  .nav-links.active{
    right: 0;
  }
}

button {
  background-color: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 30px;
  font-weight: bold;
}

button:hover {
  box-shadow: 0 0 15px #3b82f6;
}

body {
  background: #0f172a;
  color: white;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,198,255,0.4);
  border-color: #00c6ff;
}

section {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: 100hv;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-links a.active {
  color: #60a5fa;
  font-weight: bold;
}

.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: #60a5fa;
  text-shadow: 0 0 10px #60a5fa;
}

section h2 {
  margin-bottom: 15px;
}

section p {
  max-width: 500px;
  text-align: center;
}

#typing {
  color: #00c6ff;
  border-right: 3px solid #00c6ff;
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% { border-color: transparent; }
  50% { border-color: #00c6ff; }
  100% { border-color: transparent; }
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  opacity: 0.8;
}

.project-links {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.project-links a {
  text-decoration: none;
  background: #3b82f6;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
}

.project-links a:hover {
  background: #1e40af;
}

.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 100px 10%;
  gap: 40px;
}

/* TEXT SIDE */
.home-text {
  max-width: 500px;
}

/* IMAGE SIDE */
.home-img img {
  width: 300px;
  border-radius: 50%;
  border: 4px solid #3b82f6;
}

/* MOBILE */
@media (max-width: 768px) {
  .home {
    flex-direction: column;
    text-align: center;
  }

  .home-img img {
    width: 200px;
  }
}

.home-img img {
  box-shadow: 0 0 25px #3b82f6;
}

/* LIGHT MODE */
.light-mode {
  background: #f9fafb;
  color: #111;
}

.light-mode .navbar {
  background: #e5e7eb;
}

.light-mode .nav-links a {
  color: #111;
}

.light-mode .project-card {
  background: #ffffff;
  color: #111;
}

#skills {
  padding: 80px 20px;
  text-align: center;
}

.skills-container {
  max-width: 500px;
  margin: auto;
}

.skill {
  margin: 20px 0;
  text-align: left;
}

.progress {
  background: #1e293b;
  border-radius: 20px;
  overflow: hidden;
  height: 10px;
}

.progress-bar {
  height: 10px;
  border-radius: 20px;
}

/* Skill levels */
.html { width: 90%; background: #e34c26; }
.css { width: 85%; background: #264de4; }
.js { width: 75%; background: #f7df1e; }

.progress-bar {
  animation: load 2s ease forwards;
}

@keyframes load {
  from { width: 0; }
}

.navbar.scrolled {
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-links a:hover {
  color: #60a5fa;
}

.project-card, .navbar {
  backdrop-filter: blur(10px);
  background: rgba(30, 41, 59, 0.7);
}

* {
  transition: all 0.3s ease;
}

.socials {
  margin-top: 20px;
}

.socials a {
  margin: 0 10px;
  color: #60a5fa;
  text-decoration: none;
  font-weight: bold;
}

.socials a:hover {
  text-decoration: underline;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
}

h2::after {
  content: "";
  width: 50px;
  height: 3px;
  background: #3b82f6;
  display: block;
  margin: 10px auto;
}

.cv-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #22c55e;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cv-btn:hover {
  background: #16a34a;
}

form {
  max-width: 400px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
  outline: none;
}

textarea {
  height: 120px;
}

form button {
  background: #3b82f6;
  color: white;
}

.navbar {
  backdrop-filter: blur(10px);
}

.hidden {
  opacity: 0;
  transform: scale(0.95);
}

.show {
  opacity: 1;
  transform: scale(1);
}

a:hover {
  opacity: 0.8;
}

html {
  scroll-behavior: smooth;
}

button:hover {
  transform: translateY(-2px);
}