/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #fafaf8;
    color: #2a2a2a;
    line-height: 1.6;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.with-border {
    border-bottom: 1px solid #e0e0e0;
}

nav .nav-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a,
.back-link {
    text-decoration: none;
    color: #2a2a2a;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

nav a:hover,
.back-link:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.contact-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-icons a {
    display: flex;
    align-items: center;
}

.contact-icons svg {
    width: 16px;
    height: 16px;
    fill: #2a2a2a;
    transition: opacity 0.3s;
}

.contact-icons a:hover svg {
    opacity: 0.6;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    min-height: 80vh;
    padding: 4rem 0;
}

/* ===== HOME PAGE SPECIFIC ===== */
.bio {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
}

.tech-stack {
    margin-top: 3rem;
    position: relative;
    height: 250px;
    max-width: 600px;
}

.tech-icon {
    position: absolute;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.tech-icon:hover {
    transform: scale(1.1) !important;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) grayscale(100%) brightness(0.3);
}

/* ===== PORTFOLIO STYLES ===== */
#portfolio {
    min-height: 100vh;
    padding: 6rem 0 0 0;
}

.portfolio-carousel {
    margin-top: 0;
    position: relative;
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-image-wrapper:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.portfolio-video {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.portfolio-link:hover .portfolio-video {
    filter: grayscale(80%);
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    transition: background 0.4s ease;
}

.portfolio-link:hover .portfolio-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.portfolio-info {
    text-align: center;
    color: #fff;
}

.portfolio-info h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.portfolio-link:hover .portfolio-info h3 {
    transform: translateY(-5px);
}

.portfolio-tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.portfolio-tech {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.08em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== PROJECT PAGE HERO ===== */
.hero {
    height: 70vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    text-align: center;
    color: #ffffff;
}

.hero-title h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title .tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

/* ===== PROJECT META ===== */
.project-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.meta-item {
    flex: 1;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.5rem;
}

.meta-value {
    font-size: 1rem;
    color: #2a2a2a;
}

/* ===== PROJECT COMPONENTS ===== */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(42, 42, 42, 0.05);
    border: 1px solid rgba(42, 42, 42, 0.1);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.features {
    margin: 3rem 0;
}

.feature-item {
    margin-bottom: 2rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.version-section {
    background: rgba(42, 42, 42, 0.02);
    padding: 2rem;
    margin: 3rem 0;
    border-left: 3px solid #2a2a2a;
}

.version-section h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.version-section ul {
    margin-left: 1.5rem;
    line-height: 2;
}

.version-section li {
    margin-bottom: 0.5rem;
}

/* ===== ARTICLE STYLES ===== */
article {
    max-width: 700px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.article-meta {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.article-meta .notice {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

article h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

article h2 {
    font-size: 1.6rem;
    font-weight: 300;
    margin: 3rem 0 1.5rem;
    letter-spacing: 0.5px;
    text-transform: none;
}

article a {
    color: #2a2a2a;
    text-decoration: underline;
}

article a:hover {
    opacity: 0.6;
}

code {
    background: rgba(42, 42, 42, 0.05);
    padding: 0.2rem 0.4rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

pre {
    background: rgba(42, 42, 42, 0.03);
    border-left: 3px solid #2a2a2a;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
}

blockquote {
    border-left: 3px solid #2a2a2a;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* ===== BUTTONS & CTA ===== */
.cta {
    text-align: center;
    margin: 4rem 0 2rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid #e0e0e0;
}

.btn,
.demo-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(42, 42, 42, 0.05);
    border: 2px solid #2a2a2a;
    text-decoration: none;
    margin: 2rem 0;
    transition: all 0.3s ease;
    color: #2a2a2a;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn {
    background: #2a2a2a;
    color: #fafaf8;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    margin: 0 0.5rem;
}

.btn:hover,
.demo-link:hover {
    background: #2a2a2a;
    color: #fafaf8;
    opacity: 1;
}

.btn:hover {
    background: transparent;
    color: #2a2a2a;
}

.btn.secondary {
    background: transparent;
    color: #2a2a2a;
}

.btn.secondary:hover {
    background: #2a2a2a;
    color: #fafaf8;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #666;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    article h1 {
        font-size: 2rem;
    }

    article h2 {
        font-size: 1.3rem;
    }

    .tech-stack {
        height: 300px;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        margin-bottom: 0.5rem;
    }

    .contact-icons {
        gap: 1rem;
    }

    .hero-title h1 {
        font-size: 2.5rem;
    }

    .hero-title .tagline {
        font-size: 1.1rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1.5rem;
    }

    .content {
        padding: 3rem 1.5rem;
    }

    article {
        padding: 6rem 1.5rem 3rem;
    }

    .btn {
        display: block;
        margin: 0.5rem 0;
    }
}