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

body {
    background-color: #0a0a23;
    color: #ffffff;
    overflow-x: hidden;
}

/* Prevent content from being hidden behind the fixed navbar */
#content,
.about,
.projects,
.contact,
.introduction,
.contact-me {
    padding-top: 90px;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0c29;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader .dot {
    width: 15px;
    height: 15px;
    margin: 5px;
    background-color: #6c63ff;
    border-radius: 50%;
    opacity: 0;
    animation: blink 1.4s infinite;
}

#loader .dot:nth-child(2) { animation-delay: 0.2s; }
#loader .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* NAVBAR STYLES */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 50px;
    background: rgba(10, 10, 35, 0.95);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    transition: max-height 0.3s;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(124,0,255,0.3);
    margin: 0 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(124,0,255,0.7);
}

/* Hamburger menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 20px;
    z-index: 1001;
}

.nav-toggle .bar {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .navbar {
        padding: 15px 18px;
    }
    .logo h2 { font-size: 22px; }
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #15152a;
        flex-direction: column;
        align-items: flex-start;
        width: 200px;
        max-height: 0;
        overflow: hidden;
        gap: 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.18);
        transition: max-height 0.3s;
    }
    .nav-links.active {
        max-height: 350px;
        padding: 10px 0;
        z-index: 1000;
    }
    .nav-links a {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 0;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Fix for headings hidden behind navbar on mobile */
    #content,
    .about,
    .projects,
    .contact,
    .introduction,
    .contact-me {
        padding-top: 70px;
    }
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
    position: relative;
    margin-top: 80px;
}
.hero-left img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #7f00ff;
    box-shadow: 0 0 20px #7f00ff;
}
.hero-right {
    margin-left: 2rem;
    margin-top: 2rem;
}
.highlight { color: #e100ff; }
h1 { font-size: 3rem; }
h2 { margin-top: 1rem; font-size: 2rem; height: 50px; }
.btn {
    display: inline-block;
    margin-top: 9rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #7f00ff, #e100ff);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}
.btn:hover { transform: scale(1.1); }
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.arrow {
    border: solid #ffffff;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 10px;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0);}
    40% { transform: translateX(-50%) rotate(45deg) translateY(10px);}
    60% { transform: translateX(-50%) rotate(45deg) translateY(5px);}
}
#scroll-arrow {
    transition: opacity 0.3s;
}


/* INTRODUCTION SECTION */
.introduction {
    padding: 4rem 2rem;
    background-color: #1a1a33;
    text-align: center;
    border-top: 2px solid #7f00ff;
    border-bottom: 2px solid #7f00ff;
}
.introduction .container { max-width: 900px; margin: 0 auto; }
.introduction h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #e100ff;
    text-shadow: 2px 2px 5px #000;
    font-weight: bold;
}
.introduction p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #f0f0f0;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* ABOUT SECTION */
.about {
    padding: 5rem 2rem;
    background-color: #111;
    text-align: center;
}
.about h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e100ff;
}
.about p {
    max-width: 800px;
    margin: 1rem auto 3rem auto;
    font-size: 1.2rem;
    line-height: 1.6;
}
.skills { max-width: 800px; margin: 0 auto; }
.skill { margin-bottom: 2rem; }
.skill h3 { text-align: left; margin-bottom: 0.5rem; }
.progress {
    background-color: #333;
    border-radius: 20px;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(45deg, #7f00ff, #e100ff);
    height: 25px;
    line-height: 25px;
    color: white;
    text-align: right;
    padding-right: 10px;
    border-radius: 20px;
}

/* PROJECTS SECTION */
.projects {
    padding: 5rem 2rem;
    background-color: #000;
    text-align: center;
}
.projects h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #e100ff;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.project-card {
    background-color: #111;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(128, 0, 255, 0.5);
    transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-10px); }
.project-card h2 { font-size: 1.8rem; margin-bottom: 1rem; color: #7f00ff; }
.project-card p { font-size: 1rem; line-height: 1.5; margin-bottom: 1.5rem; }
.project-card .btn {
    display: inline-block;
    background: linear-gradient(45deg, #7f00ff, #e100ff);
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.project-card .btn:hover { background: linear-gradient(45deg, #e100ff, #7f00ff); }

/* CONTACT SECTION */
.contact {
    padding: 5rem 2rem;
    background-color: #111;
    text-align: center;
}
.contact h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e100ff;
}
.contact p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background-color: #222;
    color: white;
    font-size: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}
.contact-form .btn {
    background: linear-gradient(45deg, #7f00ff, #e100ff);
    color: white;
    padding: 1rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form .btn:hover { background: linear-gradient(45deg, #e100ff, #7f00ff); }

/* FOOTER SECTION */
.footer {
    padding: 2rem 1rem;
    background: linear-gradient(45deg, #7f00ff, #000);
    text-align: center;
}
.footer p { font-size: 1rem; color: white; }

/* CONTACT ME SECTION ON INDEX PAGE */
.contact-me {
    padding: 4rem 2rem;
    background-color: #111;
    color: #f0f0f0;
    text-align: center;
}
.contact-me .container { max-width: 700px; margin: 0 auto; }
.contact-me h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #e100ff;
    text-shadow: 2px 2px 5px #000;
}
.contact-me p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.contact-me .contact-table {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    border: 2px solid #7f00ff;
    border-radius: 15px;
    padding: 1.5rem;
    font-family: 'Consolas', monospace;
}
.contact-me .contact-row {
    padding: 1rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}
.contact-me .contact-row:last-child { border-bottom: none; }
.contact-me .label {
    font-weight: bold;
    color: #ddd;
    font-size: 1.3rem;
    margin-right: 1rem;
    flex-shrink: 0;
    width: 100px;
}
.contact-me .value {
    color: #f0f0f0;
    font-size: 1.3rem;
    font-weight: bold;
}
.contact-me .value a {
    color: #6c63ff;
    text-decoration: none;
    transition: color 0.3s;
}
.contact-me .value a:hover {
    color: #e100ff;
    text-decoration: underline;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1rem;
        height: auto;
        margin-top: 70px;
    }
    .hero-left { margin-bottom: 2rem; }
    .hero-left img { width: 180px; height: 180px; }
    .hero-right { margin-left: 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; height: auto; }
    .introduction { padding: 3rem 1rem; }
    .introduction h2 { font-size: 1.8rem; margin-bottom: 1rem; }
    .introduction p { font-size: 1rem; margin-bottom: 0.8rem; }
    .about { padding: 3rem 1rem; }
    .about h1 { font-size: 2rem; }
    .about p { font-size: 1.1rem; }
    .projects { padding: 3rem 1rem; }
    .projects h1 { font-size: 2rem; margin-bottom: 2rem; }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
    .project-card { padding: 1.2rem; border-radius: 12px; }
    .project-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .project-card p { font-size: 0.9rem; margin-bottom: 1rem; }
    .contact { padding: 3rem 1rem; }
    .contact h1 { font-size: 2rem; }
    .contact p { font-size: 1.1rem; margin-bottom: 2rem; }
    .contact-form { gap: 0.8rem; }
    .contact-form input,
    .contact-form textarea { padding: 0.8rem; font-size: 0.9rem; border-radius: 8px; }
    .contact-form .btn { padding: 0.8rem 1.5rem; font-size: 1rem; border-radius: 25px; }
    .footer { padding: 1.5rem 1rem; }
    .footer p { font-size: 0.9rem; }
    .contact-me { padding: 3rem 1rem; }
    .contact-me h2 { font-size: 2rem; margin-bottom: 1rem; }
    .contact-me p { font-size: 1rem; margin-bottom: 1.5rem; }
    .contact-me .contact-table { gap: 0.5rem; padding: 1rem; border-radius: 10px; }
    .contact-me .label { font-size: 1rem; width: auto; margin-right: 0.5rem; }
    .contact-me .value { font-size: 1rem; }
}

/* Tablet screens (min-width: 901px and max-width: 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {
    .hero { padding: 5rem 2rem; height: 80vh; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .navbar { padding: 20px 30px; }
    .logo h2 { font-size: 26px; }
    .nav-links { gap: 2rem; }
    .nav-links a { font-size: 1.1rem; }
    .introduction h2 { font-size: 2.2rem; }
    .about h1 { font-size: 2.4rem; }
    .projects h1 { font-size: 2.4rem; }
    .project-card h2 { font-size: 1.7rem; }
    .contact h1 { font-size: 2.4rem; }
    .contact p { font-size: 1.15rem; }
    .contact-me h2 { font-size: 2.4rem; }
    .contact-me p { font-size: 1.15rem; }
}

/* Larger screens (min-width: 1201px) */
@media (min-width: 1201px) {
    .hero { padding: 8rem 4rem; height: 90vh; max-width: 1400px; margin: 0 auto; }
    .hero-right { margin-left: 4rem; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .navbar { padding: 20px 50px; }
    .logo h2 { font-size: 28px; }
    .nav-links { gap: 30px; }
    .nav-links a { font-size: 1.2rem; }
    .introduction { padding: 5rem 2rem; }
    .introduction .container { max-width: 900px; }
    .introduction h2 { font-size: 2.5rem; }
    .introduction p { font-size: 1.3rem; }
    .about h1 { font-size: 2.5rem; }
    .about p { font-size: 1.2rem; }
    .projects h1 { font-size: 2.5rem; }
    .project-card h2 { font-size: 1.8rem; }
    .project-card p { font-size: 1rem; }
    .contact h1 { font-size: 2.5rem; }
    .contact p { font-size: 1.2rem; }
    .contact-me h2 { font-size: 2.8rem; }
    .contact-me p { font-size: 1.2rem; }
}

.floating-symbols {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  user-select: none;
}

.floating-symbols .symbol {
  position: absolute;
  font-size: 2rem;
  color: #7f00ff;
  opacity: 0.20;
  font-family: 'Consolas', monospace;
  font-weight: bold;
  user-select: none;
  transition: opacity 0.5s;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(127, 0, 255, 0.6);
  animation-fill-mode: forwards;
}

/* Jump keyframes for bounce effect */
@keyframes jump {
  0%   { transform: translateY(0) rotate(var(--rotate)); }
  20%  { transform: translateY(-30px) rotate(var(--rotate)); }
  40%  { transform: translateY(0) rotate(var(--rotate)); }
  60%  { transform: translateY(-20px) rotate(var(--rotate)); }
  80%  { transform: translateY(0) rotate(var(--rotate)); }
  100% { transform: translateY(0) rotate(var(--rotate)); }
}

/* Positions, rotations, and jump animations with delays */
.sym-brace      { left: 8%;  top: 18%;  --rotate: -20deg; animation: jump 2s ease forwards; }
.sym-0x00       { left: 21%; top: 30%;  --rotate: -10deg; animation: jump 2s ease 1.1s forwards; }
.sym-rsi        { left: 36%; top: 42%;  --rotate: -18deg; animation: jump 2s ease 1.2s forwards; }
.sym-rdi        { left: 55%; top: 53%;  --rotate: -8deg;  animation: jump 2s ease 1.3s forwards; }
.sym-rax        { left: 69%; top: 62%;  --rotate: -15deg; animation: jump 2s ease 1.4s forwards; }
.sym-rip        { left: 83%; top: 78%;  --rotate: -12deg; animation: jump 2s ease 1.5s forwards; }
.sym-mov        { left: 15%; top: 70%;  --rotate: -14deg; animation: jump 2s ease 1.6s forwards; }
.sym-jmp        { left: 40%; top: 25%;  --rotate: -7deg;  animation: jump 2s ease 1.7s forwards; }
.sym-push       { left: 60%; top: 35%;  --rotate: -11deg; animation: jump 2s ease 1.8s forwards; }
.sym-pop        { left: 75%; top: 45%;  --rotate: -9deg;  animation: jump 2s ease 1.9s forwards; }
.sym-call       { left: 30%; top: 75%;  --rotate: -13deg; animation: jump 2s ease 1.0s forwards; }
.sym-deadbeef   { left: 50%; top: 80%;  --rotate: -10deg; animation: jump 2s ease 1.1s forwards; }
.sym-ip         { left: 85%; top: 55%;  --rotate: -16deg; animation: jump 2s ease 1.2s forwards; }
.sym-lock       { left: 20%; top: 50%;  font-size: 2.2rem; opacity: 0.06; --rotate: -15deg; animation: jump 2s ease 1.3s forwards; }
.sym-shield     { left: 70%; top: 20%;  font-size: 2.2rem; opacity: 0.06; --rotate: -18deg; animation: jump 2s ease 1.4s forwards; }


@media (max-width: 600px) {
  /* Hide all other symbols except these 4 */
  .sym-0x00,
  .sym-brace,
  .sym-rsi,
  .sym-rip {
    display: inline !important;
  }
  .sym-rdi,
  .sym-rax,
  .sym-mov,
  .sym-jmp,
  .sym-push,
  .sym-pop,
  .sym-call,
  .sym-deadbeef,
  .sym-ip,
  .sym-lock,
  .sym-shield {
    display: none !important;
  }
  /* Optionally adjust size and position for mobile */
  .floating-symbols .symbol {
    font-size: 1.2rem !important;
    opacity: 0.06 !important;
    animation: none !important;
  }
  .sym-brace { left: 12%; top: 18%; }
  .sym-0x00  { left: 40%; top: 35%; }
  .sym-rsi   { left: 70%; top: 60%; }
  .sym-rip   { left: 50%; top: 75%; }
}
