/* Modern Portfolio Styles - Cyberpunk/Terminal Theme */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-primary: #00ff9d; /* Neon Green */
    --accent-secondary: #ff0055; /* Neon Red/Pink */
    --accent-tertiary: #00d8ff; /* Cyan */
    --grid-color: rgba(0, 255, 157, 0.05);
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(0, 255, 157, 0.2);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: crosshair; /* Cool cursor */
}

/* CRT Scanline Effect */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Background Grid Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    transform-origin: top center;
    opacity: 0.5;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 255, 157, 0.1);
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.6);
    text-shadow: none;
}

/* Utility Classes */
.text-accent { color: var(--accent-primary); text-shadow: 0 0 10px var(--accent-primary); }
.text-secondary { color: var(--accent-secondary); text-shadow: 0 0 10px var(--accent-secondary); }
.text-tertiary { color: var(--accent-tertiary); text-shadow: 0 0 10px var(--accent-tertiary); }

/* Sections */
section {
    padding: 8rem 0;
    position: relative;
}

/* Header */
.site-header {
    padding: 2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-link::before {
    content: '[';
    margin-right: 5px;
    opacity: 0;
    color: var(--accent-primary);
    transition: opacity 0.3s;
}

.nav-link::after {
    content: ']';
    margin-left: 5px;
    opacity: 0;
    color: var(--accent-primary);
    transition: opacity 0.3s;
}

.nav-link:hover::before,
.nav-link:hover::after {
    opacity: 1;
}

.nav-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-top: 100px;
    overflow: hidden;
}

.hero-title {
    font-size: 7rem;
    line-height: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title-line {
    display: block;
    transition: transform 0.2s ease-out;
}

.hero-tagline {
    font-size: 1.5rem;
    max-width: 700px;
    margin-bottom: 4rem;
    color: #888;
    border-left: 2px solid var(--accent-primary);
    padding-left: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    position: relative;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.project-media {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--card-border);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%) contrast(1.2);
}

.project-card:hover .project-media img {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 157, 0.1));
    pointer-events: none;
}

.project-content {
    padding: 2rem;
    position: relative;
}

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

.project-category {
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.project-status {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 3em;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Card Decorations (Corner bits) */
.card-decoration {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.top-left { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.top-right { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.bottom-right { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.project-card:hover .card-decoration {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Skills Section - Terminal Card */
.skills-section {
    margin-top: 4rem;
}

.skills-title {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-terminal-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.skills-terminal-card::before {
    content: "SYSTEM_SPECS //";
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--bg-color);
    padding: 0 10px;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: bold;
}

.skill-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-row:last-child {
    border-bottom: none;
}

.skill-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-row:hover .skill-header {
    background: rgba(0, 255, 157, 0.05);
}

.skill-index {
    color: #555;
    margin-right: 1.5rem;
    font-size: 0.9rem;
}

.skill-category-name {
    margin: 0;
    font-size: 1.1rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.skill-row:hover .skill-category-name {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.skill-decoration-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1.5rem;
    position: relative;
}

.skill-row:hover .skill-decoration-line {
    background: var(--accent-primary);
    box-shadow: 0 0 5px var(--accent-primary);
}

.skill-toggle {
    color: var(--accent-primary);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.skill-row:hover .skill-toggle {
    transform: rotate(90deg);
}

.skill-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.skill-row:hover .skill-content {
    max-height: 300px;
    opacity: 1;
}

.skill-tags-wrapper {
    padding: 0 1rem 1.5rem 3.5rem; /* Indent to align with text */
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: #aaa;
    transition: all 0.2s ease;
}

.skill-pill:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.contact-card-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--accent-primary);
    padding: 4rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.1);
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--accent-primary);
    opacity: 0.3;
    z-index: -1;
}

.contact-email {
    font-size: 1.5rem;
    margin: 2rem 0;
    color: #fff;
}

.contact-btn {
    margin-top: 1rem;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-list {
        display: none; /* Need to implement mobile menu later */
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .contact-email {
        font-size: 1.2rem;
    }
    
    .skill-tags-wrapper {
        padding-left: 1rem;
    }
}
