/* 
  Cyber-Industrial IT Portfolio
  Theme: "System Administrator"
  Font: Syncopate / Space Grotesk / JetBrains Mono
*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Grotesk:wght@300;400;500;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --bg-void: #050505;
    --bg-panel: #0a0a0a;
    --accent-primary: #7c3aed;
    /* Electric Violet */
    --accent-secondary: #ccff00;
    /* Acid Green */
    --text-main: #e5e5e5;
    --text-muted: #888888;
    --border-color: #333333;

    --grid-line: rgba(255, 255, 255, 0.03);
    --noise-opacity: 0.07;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: crosshair;
    /* Custom Cursor */
}

body {
    background-color: var(--bg-void);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    max-width: 100vw;
}

/* --- NOISE TEXTURE --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.4"/%3E%3C/svg%3E');
    opacity: var(--noise-opacity);
}

/* --- GRID BACKGROUND --- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
    color: white;
}

h1 span.highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-primary);
    display: block;
}

h1 span.filled {
    color: var(--accent-primary);
    -webkit-text-stroke: 0;
}

h2 {
    font-size: 2rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

h2::before {
    content: '//';
    color: var(--accent-secondary);
    font-family: 'JetBrains Mono', monospace;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 65ch;
    margin-bottom: 2rem;
}

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

/* --- LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    border-left: 1px solid var(--grid-line);
    border-right: 1px solid var(--grid-line);
    background: rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

section {
    padding: 80px 0;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
}

section::after {
    /* Section marker */
    content: '+';
    position: absolute;
    bottom: -15px;
    left: -10px;
    color: var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    background: var(--bg-void);
    padding: 0 5px;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.lang-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.lang-btn:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1);
    opacity: 1;
}

.lang-btn.active {
    border-color: var(--accent-secondary);
    opacity: 1;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
}

.nav-toggle {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-toggle:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0px var(--accent-secondary);
}

.nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 2rem;
    list-style: none;
    text-align: right;
    display: none;
    width: 250px;
}

.nav-links.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.nav-links li {
    margin-bottom: 1.5rem;
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--text-main);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.nav-links a:hover::before {
    content: '>';
    position: absolute;
    left: -20px;
    color: var(--accent-secondary);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-left: 2rem;
    border-left: 4px solid var(--accent-primary);
}

.hero-role {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cta-button {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-void);
    background: var(--accent-secondary);
    padding: 1rem 3rem;
    display: inline-block;
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cta-button:hover {
    background: white;
    transform: translateY(-2px);
}

/* --- ABOUT (Terminal Style) --- */
.about-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 5rem;
    align-items: start;
}

.profile-img-container {
    position: relative;
}

.profile-img {
    width: 100%;
    filter: grayscale(100%) contrast(1.2);
    border: 1px solid var(--accent-primary);
    transition: filter 0.3s;
}

.profile-img:hover {
    filter: grayscale(0%);
}

.profile-decor {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60%;
    height: 40px;
    background: repeating-linear-gradient(45deg, var(--accent-primary), var(--accent-primary) 5px, transparent 5px, transparent 10px);
    z-index: -1;
}

.skills-list {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.02);
}

/* --- CREATIONS (Data Cards) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

/* HUD Corners */
.project-card::before,
.project-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent-primary);
    transition: all 0.3s;
}

.project-card::before {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
}

.project-card::after {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.project-card:hover::before,
.project-card:hover::after {
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: var(--accent-primary);
    border: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.folder-id {
    color: var(--accent-secondary);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 10px;
}

.project-links a:hover {
    color: var(--accent-secondary);
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--accent-secondary);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--accent-primary);
    color: black;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0;
    line-height: 1.6;
}

.service-card p small {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.3rem;
}

/* --- CONTACT --- */
.contact-container {
    max-width: 1200px;
    /* Increased for grid */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 3rem;
}

/* Game Styles */
.game-wrapper {
    width: 100%;
    height: 400px;
    border: 1px solid var(--accent-primary);
    position: relative;
    background: black;
    overflow: hidden;
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    user-select: none;
}

.game-overlay small {
    color: var(--accent-secondary);
}

.form-box {
    border: 1px solid var(--border-color);
    padding: 3rem;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0px, transparent 1px, transparent 20px);
}

.input-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.submit-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 1rem;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn:hover {
    background: var(--accent-primary);
    color: black;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* --- FOOTER --- */
footer {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- ANIMATIONS --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 15px;
    height: 3rem;
    background: var(--accent-secondary);
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- PARALLAX & SECTION REVEAL --- */
.section-hidden {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Background */
.bg-grid {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Stack game on mobile */
    .game-wrapper {
        height: 300px;
    }

    .container {
        padding: 0 20px;
        border: none;
    }

    .hero-content {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }

    .hero-content {
        border-top: 4px solid var(--accent-primary);
        padding-top: 2rem;
    }

    /* Stack grids on mobile */
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}