:root {
    --bg-dark: #0a192f;
    --bg-dark-light: #112240;
    --accent-cyan: #64ffda;
    --text-white: #e6f1ff;
    --text-slate: #8892b0;
    --text-slate-light: #a8b2d1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-slate);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn-secondary {
    color: var(--text-white);
}

.btn-outline {
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.highlight {
    color: var(--accent-cyan);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo .first-name {
    color: var(--text-white);
}

.logo .last-name {
    color: var(--accent-cyan);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-slate-light);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/hero_bg.png') no-repeat center center/cover;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.4), var(--bg-dark)),
        radial-gradient(circle, rgba(10, 25, 47, 0.2) 0%, var(--bg-dark) 80%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: #ffffff;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.5;
}

.hero-actions .btn {
    margin: 10px;
}

/* Section Common */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.section-title span {
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    margin-right: 10px;
}

.section-title h2 {
    font-size: 2rem;
    white-space: nowrap;
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background: var(--glass-border);
    margin-left: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    margin-top: 30px;
}

.tech-list li::before {
    content: "▹";
    color: var(--accent-cyan);
    margin-right: 10px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--bg-dark-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

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

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.expertise-card {
    background: var(--bg-dark-light);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.expertise-card i {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.expertise-card h3 {
    margin-bottom: 15px;
}

/* Research Section */
.research {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    background: var(--bg-dark);
}

.research-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('assets/research_bg.png') no-repeat center center/cover;
    opacity: 0.3;
    mask-image: linear-gradient(to left, black, transparent);
    -webkit-mask-image: linear-gradient(to left, black, transparent);
}

.research-content {
    max-width: 600px;
    padding: 50px;
    position: relative;
    z-index: 2;
}

.research-features {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.feature span {
    font-size: 0.8rem;
    color: var(--text-slate-light);
}

/* Ukraine Section */
.ukraine-banner {
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.ukraine-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.flag {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.flag .blue {
    background-color: #0057b7;
    height: 50%;
}

.flag .yellow {
    background-color: #ffd700;
    height: 50%;
}

.ukraine-content .text h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.ukraine-content .text p {
    margin-bottom: 25px;
    max-width: 600px;
    color: var(--text-slate-light);
}

.ukraine-actions {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .ukraine-content {
        flex-direction: column;
        text-align: center;
    }

    .ukraine-actions {
        justify-content: center;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-dark-light);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

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

.project-header i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
}

.project-header .links a {
    color: var(--text-slate-light);
    margin-left: 15px;
    transition: var(--transition);
}

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

.project-card h3 {
    margin-bottom: 15px;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    list-style: none;
    gap: 15px;
}

.project-tech li {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--text-slate);
}

/* Contact Section */
.contact-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.social-links {
    margin: 30px 0;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-slate-light);
    margin: 0 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-slate);
    font-size: 0.8rem;
}

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

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
        /* Mobile nav would go here */
    }

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

    .research-background {
        width: 100%;
        opacity: 0.15;
    }
}