* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Navigation UI */
.nav-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.nav-dot.active {
    background: #4a9eff;
    box-shadow: 0 0 15px #4a9eff;
    transform: scale(1.3);
    border-color: rgba(74, 158, 255, 0.5);
}
.nav-tooltip {
    visibility: hidden;
    /* width: 80px; */
    background-color: black;
    color: #fff;
    text-align: right;
    padding: 2px 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 150%;
    transform: translateY(-60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-dot:hover .nav-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Section Layout */
.section-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    /* We will handle transitions via JS/GSAP for complex timing */
    transform-origin: center center;
    visibility: hidden;
}

.section-wrapper.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    /* Glassmorphism background for better readability over particles */
    /* background: rgba(0, 0, 0, 0.2);
        border-radius: 20px;
        backdrop-filter: blur(2px); */
}

/* Scrollbar Styling */
.section-content::-webkit-scrollbar {
    width: 8px;
}
.section-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.section-content::-webkit-scrollbar-thumb {
    background: #4a9eff;
    border-radius: 4px;
}

/* Typography & Components */
h1, h2, h3 { color: #4a9eff; }

/* Landing */
#landing-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
}

@font-face {
    font-family: safiar;
    src: url(assets/safiar-signature.ttf);
}

.signature {
    font-family: safiar;
    font-weight: 300;
    color: white;
    opacity: 0.8;
    font-size: clamp(6rem, 16vw, 12rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 3rem;
    opacity: 0.8;
}
.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 30px;
    transition: 0.3s;
    background: rgba(74, 158, 255, 0.1);
}
.contact-links a:hover {
    background: rgba(74, 158, 255, 0.3);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}

/* Projects */
#projects-title {
  text-align: center;
}
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
    align-items: center;
    justify-content: center;
}
.project {
    width: 80%;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.project.right {
  flex-direction: row-reverse;
}
.project:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #4a9eff;
}
.project-thumbnail {
    width: 150px;
    height: 100px;
    margin-top: auto;
    margin-bottom: auto;
    background: linear-gradient(45deg, #2a2a72, #009ffd);
    border-radius: 8px;
    flex-shrink: 0;
}
.project-info {
  margin: 2rem;
}
.project h2 {
  margin-bottom: 0.5rem;
}

/* Work Experience */
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(74, 158, 255, 0.3);
    transform: translateX(-50%);
}
.work-card {
    width: 45%;
    margin: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: row;
}
.work-card:nth-child(odd) {
    margin-left: auto;
}
.work-card h4 {
    margin-bottom: 5px;
    color: #fff;
}
.work-card img {
  width: 100px;
  margin: auto 1.5rem auto 0.5rem;
}
.work-card .role {
    color: #4a9eff;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}
.work-card .date {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 10px;
    display: block;
}

.work-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05) translateZ(20px);
  box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

/* Education */
.edu-img {
  height: 200px;
  margin: auto;
}

.edu-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.edu-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    border-top: 2px solid #4a9eff;
}

/* Contact */
.form-box {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #4a9eff; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 5px;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4a9eff;
}
button.form-submit-btn {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 30px;
    transition: 0.3s;
    background: rgba(74, 158, 255, 0.1);
}
button.form-submit-btn:hover { background: #3a8eef; box-shadow: 0 0 15px rgba(74, 158, 255, 0.4); }

@media (max-width: 768px) {
    .project { flex-direction: column; }
    .project-thumbnail { width: 100%; height: 150px; }
    .timeline::before { left: 20px; }
    .work-card { width: 85%; margin-left: 50px !important; }
    #landing-content h1 { font-size: 3rem; }
}