/* GLOBAL STYLES */
:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --primary: #a855f7; /* Neon Purple */
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --border: #27272a;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 10%;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo { font-weight: bold; font-size: 1.2rem; }
.logo span { color: var(--primary); }

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }

/* HERO */
.hero {
    text-align: center;
    padding: 100px 10%;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #1e1b4b;
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 20px;
}

h1 { font-size: 3rem; margin: 10px 0; }
h1 span { color: var(--primary); }
h2 { color: var(--text-dim); font-weight: 400; margin-bottom: 20px; }

.hero-btns { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: none;
}

.btn-outline {
    border: 1px solid var(--border);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
}

/* SECTIONS COMMON */
section { padding: 80px 10%; }
h3 { font-size: 2rem; margin-bottom: 40px; text-align: center; }

/* ABOUT */
.section-content { display: flex; align-items: center; gap: 50px; }
/* .pixel-art { font-size: 5rem; text-shadow: 0 0 20px var(--primary); } */
.pixel-art {
    font-size: 5rem;
    text-shadow: 0 0 20px var(--primary);
    animation: float 3s ease-in-out infinite; /* Adds a professional floating effect */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.skill-box { background: var(--card-bg); padding: 25px; border-radius: 15px; border: 1px solid var(--border); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.tags span { background: #27272a; padding: 5px 12px; border-radius: 6px; font-size: 0.75rem; color: var(--text-dim); }

/* TIMELINE */
.timeline-item { display: flex; gap: 30px; margin-bottom: 30px; border-left: 2px solid var(--primary); padding-left: 20px; }
.date { font-weight: bold; color: var(--primary); }

/* PROJECTS */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--card-bg); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.card-img { height: 200px; }
.card-body { padding: 25px; }
.card-btn { width: 100%; padding: 10px; background: #222; border: 1px solid var(--border); color: white; border-radius: 10px; margin-top: 15px; cursor: pointer; }

/*CONTACT*/
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px;  }
form { display: flex; flex-direction: column; gap: 15px; }
input, textarea { background: var(--card-bg); border: 1px solid var(--border); padding: 15px; color: white; border-radius: 10px; }

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .section-content, .contact-container { flex-direction: column; grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    nav { flex-direction: column; gap: 15px; }
}
.socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.socials a {
    color: var(--primary); /* This makes them purple instead of blue */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.socials a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
.btn-primary:hover {
    background: #9333ea; /* A slightly darker purple */
    transform: translateY(-2px); /* Makes it pop up slightly */
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}
/* Modal Background (Hidden by default) */
/* Modal Background */
.modal {
  display: none; 
  position: fixed;
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85); 
  backdrop-filter: blur(5px);
  
  /* ADD THIS: Enables scrolling on the background overlay */
  overflow-y: auto; 
}

/* The actual box */
.modal-content {
  background-color: #121212;
  /* CHANGE THIS: Use a margin that allows space at the bottom */
  margin: 50px auto; 
  padding: 40px;
  border: 1px solid #8b5cf6;
  width: 90%; /* Better for mobile */
  max-width: 650px; /* Limits width on desktop */
  border-radius: 20px;
  color: #ffffff;
  position: relative;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  
  /* ADD THIS: Ensures the box itself doesn't disappear */
  display: block; 
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #8b5cf6;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.modal-body h3 {
  color: #8b5cf6;
  margin: 25px 0 10px 0;
}

/* Final Refined Style for the Modal List */
#modalDetails {
    list-style-type: disc !important; /* Force bullets to show */
    margin-top: 15px;
    padding-left: 25px; /* Extra padding to ensure bullets aren't cut off */
    color: var(--text-dim);
    text-align: left; /* Ensures text stays left-aligned in the modal */
}

#modalDetails li {
    display: list-item !important; /* Forces standard list behavior */
    margin-bottom: 12px; /* Slightly more breathing room */
    line-height: 1.5;
    padding-left: 5px; /* Tiny gap between bullet and text */
}

/* Enhances the bullet point appearance */
#modalDetails li::marker {
    color: var(--primary);
    font-size: 1.1rem;
}