:root {
    --bg-color: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #27272a;
    --card-bg: #111111;
    --accent-gradient: linear-gradient(to right, #f97316, #ef4444);
    --accent-gradient-hover: linear-gradient(to right, #fb923c, #f87171);
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-text span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Main Container */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Standardized Buttons */
.cta-button, .github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* GitHub Icon Filter */
.github-icon {
    filter: invert(1);
    transition: filter 0.3s ease;
}

/* Main Hero GitHub Button */
.cta-button {
    font-size: 0.875rem;
    padding: 0.875rem 2.25rem;
    gap: 0.6rem;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.15);
}

.cta-button::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 7px;
    padding: 1px;
    background: var(--accent-gradient-hover);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: #ffffff;
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.45);
    transform: translateY(-1px);
}

.cta-button:hover::after {
    opacity: 1;
}

/* Smaller Project GitHub Links */
.github-link {
    font-size: 0.875rem;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
}

.github-link::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 7px;
    padding: 1px;
    background: var(--accent-gradient-hover);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.github-link:hover {
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

.github-link:hover::after {
    opacity: 1;
}

/* Sections */
section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    scroll-margin-top: 5rem;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Cards & Project Rows */
.card, .project-row {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

.card {
    padding: 2rem;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.card h3, .project-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card p, .project-info p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.card:hover, .project-row:hover {
    transform: translateY(-2px);
}

/* Clickable Interactive Boxes (Flash Animation) */
.interactive-box::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    padding: 1px;
    background: linear-gradient(90deg, #27272a, #f97316, #ef4444, #f97316, #27272a);
    background-size: 200% 100%;
    
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    
    pointer-events: none;
    opacity: 0;
}

.interactive-box:hover::after {
    animation: flashBorder 1.2s ease-out forwards;
}

@keyframes flashBorder {
    0% { opacity: 0; background-position: 0% 0; }
    15% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; background-position: 200% 0; }
}

/* Project Lists Layout */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 3rem;
    margin-top: auto;
}

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

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-column a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-column a:hover {
    color: var(--text-main);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    font-size: 0.75rem;
    color: #52525b;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    nav, main, footer { padding: 1.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .project-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .footer-content { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 2rem; }
}