:root {
    --bg-primary: #121016;
    --bg-secondary: #26232d;
    --bg-secondary-transparent: rgba(38, 35, 45, 0.5);

    --text-primary: #f5f5f7;
    --text-secondary: #a09bae;

    --color-primary: #00f0ff;
    --color-secondary: #d12e80;
    --color-accent: #39ff14;
    --color-tertiary: #4a148c;

    --btn-primary-bg: var(--color-tertiary);
    --btn-primary-text: var(--color-primary);
    --btn-primary-hover: #6a1b9a;

    --btn-secondary-bg: transparent;
    --btn-secondary-border: 2px solid var(--color-primary);
    --btn-secondary-text: var(--color-primary);
    --btn-secondary-hover-bg: rgba(0, 240, 255, 0.1);

    --shadow-base: 0 4px 12px rgba(0, 0, 0, 0.6);

    --shadow-glow-cyan:
        0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-glow-pink:
        0 0 15px rgba(255, 51, 153, 0.6), 0 0 30px rgba(255, 51, 153, 0.4);

    --border-muted: #383442;
    --border-active: var(--color-primary);

    --navbar-min-height: 2rem;
}
html {
    scroll-behavior: smooth;
}
html,
body {
    padding: 0;
    margin: 0;
    height: 100%;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--border-muted, #383442) var(--bg-primary, #121016);
}

/* Chrome, Edge, Safari, Brave */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary, #121016);
}

::-webkit-scrollbar-thumb {
    background: var(--border-muted, #383442);
    border-radius: 4px;
    border: 2px solid var(--bg-primary, #121016);
    transition: background 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary, #00f0ff);
}

::-webkit-scrollbar-corner {
    background: var(--bg-primary, #121016);
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-top: 1rem;
    min-height: 5%;

    font-family: "Sedgwick Ave Display", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    z-index: 9999;
}

.navigation-container nav {
    position: fixed;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background-color: var(--bg-secondary-transparent);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.4rem;
    min-height: var(--navbar-min-height);
    width: 20%;
    transition: 0.3s ease-in-out;

    z-index: inherit;
}

.navigation-container nav:hover {
    background-color: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 1);
    transform: translateY(5px);
    scale: 1.1;
}

.navigation-button {
    overflow: hidden;
    opacity: 0.7;
    text-decoration: none;
    background-color: var(--btn-primary-bg);
    border: 2px solid transparent;
    border-radius: 20px;
    color: var(--btn-secondary-text);
    text-align: center;
    width: 25%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    transition: 0.3s ease-in-out;
}

.navigation-button:hover {
    background-color: var(--btn-secondary-border);
    border: 2px solid var(--border-active);
    border-radius: 15px;
    color: white;
    scale: 1.1;
    opacity: 1;
}

.view-my-work-button {
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--btn-secondary-text);
    text-align: center;
    width: 25%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    transition: 0.3s ease-in-out;
    padding: 0.8rem;
}

.view-my-work-button:hover {
    background-color: var(--btn-secondary-border);
    border: 2px solid var(--border-active);
    color: white;
    scale: 1.05;
}

main,
.projects {
    display: flex;
    justify-content: center;
    align-items: center;
}
main {
    min-height: calc(100vh - (var(--navbar-min-height) + 0.4rem));
}

.hero-section-container {
    overflow: hidden;
    width: 80%;
    padding: 1.5rem;
    max-width: 1300px;
    max-height: 500px;
    background-color: var(--bg-secondary-transparent);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    border: 3px solid var(--border-muted);
    border-radius: 15px;
    box-shadow: 0 0 10px wheat;
    animation: levitate 4s ease-in-out infinite;
}
.hero-text-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    font-family: "Roboto Mono", monospace;
    color: var(--text-primary);
}
.hero-text-container h4 {
    user-select: none;
    color: var(--text-secondary);
    transition: 0.2s ease-in-out;
}

.hero-text-container h1 {
    user-select: none;
}
.hero-text-container h4:hover {
    color: var(--color-secondary);
    scale: 1.005;
}

.hero-text-container hr {
    width: 100%;
    border-color: #00f0ff;
}

.highlight-text-span {
    color: var(--color-primary);
    transition: 0.2s ease-in-out;
}
.highlight-text-span:hover {
    color: var(--color-secondary);
}

.hero-section-container img {
    opacity: 0.8;
    height: auto;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: var(--shadow-glow-cyan);
    transition: 0.2s ease-in-out;
}

.hero-section-container img:hover {
    opacity: 1;
    scale: 1.01;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

#space {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-primary);
    z-index: -1;
    height: 100vh;
}

@keyframes levitate {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.about-me {
    width: 100%;
    margin: 0px;
    background-color: var(--bg-secondary);
}

.info-block {
    width: 100%;
    min-height: 40vh;
    padding: 5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    box-shadow: rgba(255, 255, 255, 0.5) 0px 0px 10px;

    background-color: var(--bg-secondary);
    font-family: "Sedgwick Ave Display", cursive;
    color: var(--text-primary);

    overflow: hidden;
    gap: 5rem;
}
.info-block h3 {
    font-family: "Roboto Mono", monospace;
    max-width: 60%;
    color: var(--text-secondary);
}

.info-block img {
    height: 50px;
}

.hover-image {
    opacity: 0.5;
    transition: 0.2s ease-in-out;
}
.hover-image:hover {
    opacity: 1;
    scale: 1.1;
}

.tech-stack-container {
    width: 100%;
    margin-top: 3rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.tech-stack-container h3 {
    font-family: "Sedgwick Ave Display", cursive;
    color: var(--text-primary);
    font-size: 2.5rem;
    margin: 0;
}

.neon-tech-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-base);
    border-radius: 12px;
    overflow: hidden;
}

.neon-tech-table th {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: "Roboto Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--border-muted);
}

.neon-tech-table td {
    font-family: "Roboto Mono", monospace;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-muted);
    vertical-align: middle;
    text-align: center;
}

.neon-tech-table tbody tr {
    transition: background-color 0.3s ease-in-out;
}

.sector-title {
    font-family: "Roboto Mono", monospace;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: bold;
    width: 35%;
}

.row-cyan:hover {
    background-color: rgba(0, 240, 255, 0.05);
}
.row-pink:hover {
    background-color: rgba(209, 46, 128, 0.05);
}
.row-green:hover {
    background-color: rgba(57, 255, 20, 0.05);
}

.neon-tech-table tbody tr:last-child td {
    border-bottom: none;
}

.projects-section {
    font-family: "Roboto Mono", monospace;
    padding: 4rem 2rem;
    background-color: var(--bg-secondary-transparent, #1e1e2e);
    color: var(--text-color, #cdd6f4);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted, #a6adc8);
    margin-bottom: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg, #181825);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #313244);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.35);
    border-color: var(--accent-color, #89b4fa);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #11111b;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--title-color, #cdd6f4);
}

.project-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background-color: rgba(137, 180, 250, 0.15);
    color: var(--accent-color, #89b4fa);
}

.project-description {
    font-size: 0.92rem;
    color: var(--text-muted, #a6adc8);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: var(--tag-bg, #313244);
    color: var(--tag-text, #cdd6f4);
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-color, #cdd6f4);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-color, #313244);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn-link:hover {
    background-color: var(--border-color, #313244);
    border-color: var(--accent-color, #89b4fa);
}

.link-icon {
    width: 16px;
    height: 16px;
}

.site-footer {
    font-family: "Roboto Mono", monospace;
    background-color: var(--footer-bg, #11111b);
    border-top: 1px solid var(--border-color, #313244);
    padding: 2rem 0;
    color: var(--text-muted, #a6adc8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted, #a6adc8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color, #89b4fa);
}

@media (max-width: 1024px) {
    .navigation-container nav {
        width: 50%;
    }

    .info-block {
        padding: 3rem;
        gap: 2rem;
    }

    .info-block h3 {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .navigation-container {
        padding: 0;
        margin: 0;
        font-size: 1rem;
    }

    .navigation-container nav {
        top: 0.75rem;
        left: 0;
        right: 0;
        margin-inline: auto;
        width: calc(100% - 1.5rem);
        max-width: 420px;
        gap: 0.25rem;
        padding: 0.3rem;
    }

    .navigation-button {
        width: auto;
        flex: 1;
        padding: 0.4rem 0.2rem;
    }

    .navigation-button:hover,
    .navigation-container nav:hover {
        scale: 1;
        transform: none;
    }

    main {
        min-height: 100vh;
        padding: 5rem 0 2rem;
    }

    .hero-section-container {
        flex-direction: column-reverse;
        width: calc(100% - 1.5rem);
        max-height: none;
        padding: 1.25rem;
        gap: 1.25rem;
        text-align: center;
    }

    .hero-text-container {
        align-items: center;
        gap: 0.75rem;
    }

    .hero-text-container h1 {
        font-size: 1.35rem;
        line-height: 1.35;
        margin: 0;
    }

    .hero-text-container h4 {
        font-size: 0.95rem;
        margin: 0;
    }

    .view-my-work-button {
        width: 100%;
        max-width: 260px;
    }

    .hero-section-container img {
        width: 100%;
        max-width: 280px;
        max-height: 260px;
        object-fit: cover;
    }

    .info-block {
        padding: 2rem 1.25rem;
        min-height: auto;
        flex-direction: column;
        gap: 1.5rem;
    }

    .info-block h1 {
        font-size: 1.8rem !important;
    }

    .info-block h3 {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tech-stack-container {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }

    .tech-stack-container h3 {
        font-size: 1.8rem;
    }

    .neon-tech-table th,
    .neon-tech-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .sector-title {
        font-size: 0.9rem;
        width: 38%;
    }

    /* Projects */
    .projects-section {
        padding: 2.5rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        margin-bottom: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project-image {
        height: 180px;
    }

    .project-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .project-links {
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 380px) {
    .hero-text-container h1 {
        font-size: 1.15rem;
    }

    .navigation-container {
        font-size: 0.9rem;
    }
}

@media (hover: none) {
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }

    .hero-section-container img:hover,
    .hover-image:hover {
        scale: 1;
    }
}
