/* style.css */
:root {
    --bg-color: #060913;
    --surface-color: #0d1224;
    --primary: #00f0ff;
    --secondary: #a200ff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --font-sans: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.04), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(162, 0, 255, 0.04), transparent 25%),
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 20px 20px;
}

.font-mono { font-family: var(--font-mono); }
.highlight { color: var(--primary); }

h1, h2, h3 {
    color: #ffffff;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
}

#hero {
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        linear-gradient(90deg, var(--bg-color) 20px, transparent 1%) center,
        linear-gradient(var(--bg-color) 20px, transparent 1%) center,
        rgba(0, 240, 255, 0.02);
    background-size: 22px 22px;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%);
}

.profile-frame {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    animation: glow-pulse 3s infinite alternate ease-in-out;
}

.profile-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-color);
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
    100% { box-shadow: 0 0 35px rgba(162, 0, 255, 0.6); }
}

#hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-muted);
}

.about-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.15rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.skill-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-color);
    padding: 1rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.1);
    color: var(--text-main);
    transition: var(--transition);
    cursor: default;
}

.skill-badge svg {
    color: var(--primary);
}

.skill-badge:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.15);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.7);
}

.project-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: #000;
    overflow: hidden;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.project-card:hover .project-img-container img {
    opacity: 1;
    transform: scale(1.05);
}

.fallback-gradient {
    position: absolute;
    inset: 0;
    display: none;
    background-size: 200% 200%;
    animation: move-gradient 4s ease infinite;
}

.show-fallback .fallback-gradient {
    display: block;
}

.ficct-gradient {
    background-image: linear-gradient(-45deg, #0f172a, #1e3a8a, #3b82f6, #00f0ff);
}

.tohka-gradient {
    background-image: linear-gradient(-45deg, #1e1b4b, #4c1d95, #7e22ce, #d946ef);
}

@keyframes move-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.project-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    color: var(--primary);
}

.btn {
    display: inline-block;
    align-self: flex-start;
    padding: 0.8rem 1.8rem;
    margin-top: 1rem;
    background: transparent;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--primary);
    border-radius: 6px;
    transition: var(--transition);
}

.btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.observe {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@media (max-width: 900px) {
    .project-card {
        grid-template-columns: 1fr;
    }
    .project-img-container {
        min-height: 250px;
    }
    .project-info {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    section {
        padding: 5rem 0;
        min-height: auto;
    }
    #hero {
        padding-top: 8rem;
    }
}
