/* Reset and Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    padding: 0;
}

/* Make body a snap container */
body {
    scroll-snap-type: y proximity; /* 'proximity' for softer snapping; use 'mandatory' for strict */
}

a {
    color: #a855f7;
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #a855f7;
    color: #ffffff;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background: linear-gradient(45deg, #9333ea, #a855f7); /* Purple gradient */
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); /* Subtle glow */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

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

.left-nav {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 20px;
}

.social-links {
    display: flex;
    list-style: none;
}

.social-links li {
    margin-left: 15px;
}

.social-links a {
    font-size: 1.2rem;
    color: #ffffff;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #a855f7;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    padding: 8px 16px;
    color: #a855f7;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    border: none; /* No outline by default */
}

.nav-links a:hover {
    background: linear-gradient(45deg, #9333ea, #a855f7); /* Purple gradient */
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); /* Subtle glow */
}

/* Sections */
.section-fade {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    scroll-snap-align: center; /* Snap to center of viewport */
    opacity: 0;
    transform: translateY(50px); /* Start slightly below for fade-in effect */
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 1000px;
    width: 100%;
    text-align: center; /* Center text/content horizontally */
}

h1 {
    font-size: 3rem;
    color: #ffffff;
}

h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto; /* Center paragraph */
}

.hero .btn {
    margin-top: 20px;
}

/* About */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left; /* Reset to left for content */
}

.about-text {
    flex: 2;
    margin-right: 40px;
}

.about-photo {
    flex: 1;
}

.about-photo img {
    max-width: 100%;
    border-radius: 4px;
    border: 2px solid #a855f7;
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
}

/* Experience */
.experience ul {
    list-style: none;
    text-align: left;
}

.experience li {
    margin-bottom: 40px;
}

.experience h3 {
    color: #a855f7;
}

/* Projects */
.projects .section-content {
    text-align: left;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 20px;
    justify-content: center;
}

.project-card {
    background: #18181b;
    padding: 20px;
    border-radius: 4px;
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent content overflow */
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
}

.project-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines if too many items */
    -webkit-box-orient: vertical;
}

.project-card:hover {
    transform: scale(1.05); /* Gets bigger on hover */
}

.see-more-card h3 {
    margin: 0;
}

.see-more-card span {
    font-size: 1.5rem;
}

/* Contact */
.contact .section-content {
    text-align: center;
}

.social-buttons {
    margin: 20px 0;
}

.social-buttons .btn {
    margin-right: 10px;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
}

/* Project Detail */
.project-detail {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail-content {
    display: flex;
    gap: 20px;
}

.summary {
    flex: 1;
    background: #18181b; /* Optional: subtle box for textbox look */
    padding: 20px;
    border-radius: 4px;
}

.pdf-embed {
    flex: 2; /* ~66% of the space */
}

/* Resume Section */
.resume-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.resume-content {
    margin-bottom: 20px;
}

/* More Projects */
.more-projects {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-item {
    background: #18181b;
    padding: 20px;
    border-radius: 4px;
}

.details-content {
    margin-top: 10px;
    padding: 10px;
    background: rgba(168, 85, 247, 0.1); /* Subtle background for details */
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    nav {
        flex-direction: column;
    }

    .left-nav {
        margin-bottom: 10px;
    }

    .nav-links {
        flex-direction: column;
        margin-top: 10px;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .social-links {
        margin-top: 10px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        margin-right: 0;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-fade {
        padding: 60px 20px;
        min-height: auto; /* Allow content to dictate height on mobile */
    }

    .project-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    body {
        scroll-snap-type: none; /* Disable snap on mobile if it feels clunky */
    }

    .project-detail-content {
        flex-direction: column;
    }

    .summary {
        order: 1;
    }

    .pdf-embed {
        order: 2;
    }

    .project-detail {
        padding: 60px 20px;
    }

    .resume-section,
    .more-projects {
        padding: 60px 20px;
    }
}