@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Mono:wght@400;500&display=swap');

:root {
    --bg-root: #080808;
    --bg-panel: #111111;
    --bg-panel-hover: #161616;
    --text-main: #c8c8c8;
    --text-muted: #555555;
    --text-bright: #eeeeee;
    --accent: #00e5a0;
    --accent-dim: rgba(0, 229, 160, 0.08);
    --accent-glow: rgba(0, 229, 160, 0.25);
    --border: 1px solid #1f1f1f;
    --border-accent: 1px solid rgba(0, 229, 160, 0.4);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
    scrollbar-color: #2a2a2a var(--bg-root);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #383838;
}

body {
    background-color: var(--bg-root);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: var(--border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0;
    background: transparent !important;
}

.navbar-brand {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 1rem;
    color: var(--accent) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-shadow: 0 0 20px var(--accent-glow);
    transition: text-shadow 0.3s;
}

.navbar-brand:hover {
    text-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent-glow);
    color: var(--accent) !important;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted) !important;
    padding: 8px 20px !important;
    border: none;
    position: relative;
    transition: color 0.2s;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-bright) !important;
    background: none !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: var(--border) !important;
    padding: 6px 10px !important;
    background: transparent !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2300e5a0' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.hero-section {
    padding: 140px 0 100px;
    border-bottom: var(--border);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.hero-section h1 {
    max-width: 800px;
    margin-bottom: 28px;
    line-height: 1.05;
}

.hero-section h1 span {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: 'Roboto Mono', monospace;
    max-width: 500px;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.section-number {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 2px;
    opacity: 0.7;
}

h2.section-title {
    font-size: 1.4rem;
    color: var(--text-bright);
    letter-spacing: 3px;
    border: none;
    border-bottom: none;
    padding: 0;
    margin: 0;
    display: inline;
    width: auto;
}

h2.section-title::after {
    display: none;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #1f1f1f, transparent);
}

.content-section {
    padding: 80px 0;
    border-bottom: var(--border);
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.portfolio-item {
    background-color: var(--bg-panel);
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
    position: relative;
}

.portfolio-item>a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    border: none;
}

.portfolio-item:hover {
    background-color: var(--bg-panel-hover);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    transform: scaleY(0);
    transition: transform 0.25s ease;
    transform-origin: bottom;
    z-index: 1;
}

.portfolio-item:hover::before {
    transform: scaleY(1);
}

.portfolio-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.4s ease;
}

.portfolio-item:hover .portfolio-item-image {
    filter: brightness(1);
}

.portfolio-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 28px 28px;
    gap: 16px;
}

.portfolio-item-title {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-bright);
    margin-bottom: 0;
}

.portfolio-item-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    border: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.btn,
.btn-primary {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent) !important;
    background: transparent;
    border: var(--border-accent) !important;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    border-radius: 0 !important;
    box-shadow: none;
}

.btn:hover,
.btn-primary:hover {
    background: var(--accent-dim) !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
    color: var(--accent) !important;
    transform: none;
    border-color: var(--accent) !important;
}

.portfolio-item .btn,
.portfolio-item .btn-primary {
    align-self: flex-start;
    width: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.about-panel {
    background-color: var(--bg-panel);
    border: none;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transition: background 0.2s;
}

.about-panel:hover {
    background-color: var(--bg-panel-hover);
    border: none;
    transform: none;
    box-shadow: none;
}

.about-icon {
    font-size: 1.2rem;
    color: var(--accent);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: var(--border-accent);
    text-shadow: none;
    box-shadow: 0 0 16px var(--accent-glow);
    flex-shrink: 0;
}

.about-panel h3 {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 8px;
}

.about-panel p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
    margin: 0;
}

.site-footer {
    background-color: var(--bg-panel);
    border-top: var(--border);
    padding: 32px 0;
    margin-top: auto;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
}

.detail-main {
    padding: 100px 0 80px;
}

.portfolio-detail-container {
    background-color: var(--bg-panel);
    border: var(--border);
    padding: 48px;
    max-width: 960px;
    margin: 0 auto;
}

.portfolio-detail-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 32px;
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    border-bottom: var(--border-accent);
    padding-bottom: 16px;
}

.portfolio-detail-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    margin-bottom: 36px;
    border: var(--border);
    filter: grayscale(30%) brightness(0.85);
    display: block;
}

.portfolio-detail-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-main);
    border-top: var(--border);
    padding-top: 32px;
}

.navbar-dark .navbar-nav .nav-link {
    border-bottom: none !important;
}

.bg-dark {
    background-color: transparent !important;
}

.navbar-collapse {
    background: var(--bg-root);
}

@media (max-width: 991px) {
    .navbar-collapse {
        border-top: var(--border);
        padding: 12px 0;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .nav-link {
        padding: 10px 24px !important;
    }
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .container {
        padding: 0 40px;
    }
}