/* Variables & Reset */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: #333333;
    --card-bg: #0a0a0a;
    --accent-color: #ffffff;
    /* White accent for minimalist look */
    --hover-bg: #1a1a1a;
    --font-main: 'Outfit', sans-serif;
    --border-radius: 4px;
    /* Sharper corners for tech feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    /* Remove padding to let black hole blend */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    border-bottom: 1px solid var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-color);
    position: relative;
    padding: 0 20px;
}

/* Floating PDF Button */
.pdf-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
    padding: 12px 24px;
    border-radius: 0;
    /* Square/Sharp */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdf-btn:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    border-bottom: 1px solid var(--border-color);
}

.hero .name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero .title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    font-size: 1rem;
}

.contact-info a,
.contact-info p {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a:hover {
    color: var(--text-color);
    border-bottom: none;
    /* Override default link hover */
}

/* Main Layout */
.main-content {
    padding: 60px 0;
}

/* Section Styling */
.section {
    margin-bottom: 80px;
}

.section-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Grid (New) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.project-header {
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    font-size: 0.75rem;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-links {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.project-link i {
    font-size: 0.8rem;
}

/* Skills Section (Minimalist) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.skill-category h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-list li span {
    font-size: 0.95rem;
}

/* Education Section */
.education-item {
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    margin-bottom: 30px;
}

.education-item h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.education-item h5 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 400;
}

.education-item .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: var(--bg-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero .name {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* PRINT STYLES */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    #blackhole,
    .pdf-btn {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        border-bottom: 2px solid black;
    }

    .project-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* Black Hole Intro Animation */
#blackhole {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    background-color: #000000;
    /* Pure black */
    z-index: 10000;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

#blackhole.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.centerHover {
    width: 255px;
    height: 255px;
    background-color: transparent;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -128px;
    margin-left: -128px;
    z-index: 2;
    cursor: pointer;
    line-height: 255px;
    text-align: center;
    transition: all 500ms;
}

.centerHover.open {
    opacity: 0;
    pointer-events: none;
}

.centerHover:hover span {
    color: #ffffff;
    letter-spacing: 4px;
}

.centerHover:hover span:before,
.centerHover:hover span:after {
    background-color: #ffffff;
    width: 30px;
}

.centerHover span {
    color: #888;
    font-family: var(--font-main);
    font-size: 18px;
    position: relative;
    transition: all 500ms;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.centerHover span:before,
.centerHover span:after {
    content: '';
    display: inline-block;
    height: 1px;
    width: 16px;
    background-color: #888;
    transition: all 500ms;
    vertical-align: middle;
}

.centerHover span:before {
    margin-right: 12px;
}

.centerHover span:after {
    margin-left: 12px;
}

#blackhole canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: auto;
}