﻿:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

p {
    text-align: justify;
}

h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
}

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

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: justify;
}

.section-title {
    text-align: justify;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Navigáció */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

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

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.nav-btn {
    background-color: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
}

.nav-btn:hover {
    background-color: var(--accent-hover);
}

/* Hero Section */
/* Hero Base for transitions */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 150px 0 100px 0;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    transition: filter 0.8s ease, opacity 0.8s ease;
}

/* Sections Base for transitions */
main > section {
    transition: filter 0.8s ease, opacity 0.8s ease, box-shadow 0.8s ease, transform 0.8s ease;
}

/* Navigációs Fókusz - Blur & Pulse Effekt */
.blur-bg {
    filter: blur(8px) grayscale(50%) !important;
    opacity: 0.4 !important;
}

main.focus-mode > section {
    filter: blur(8px) grayscale(50%) !important;
    opacity: 0.4 !important;
    pointer-events: none;
}

main.focus-mode > section.highlighted {
    filter: blur(0) grayscale(0) !important;
    opacity: 1 !important;
    pointer-events: auto;
    animation: pulselight 2.5s ease-in-out;
    position: relative;
    z-index: 10;
    transform: scale(1.01);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: white;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text .tagline {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: white;
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.hero-image {
    flex: 0.8;
    text-align: right;
}

.profile-pic {
    width: 320px;
    height: 320px;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 8px solid rgba(255,255,255,0.1);
    transform: rotate(3deg);
    transition: transform 0.3s;
}

.profile-pic:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Services */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    text-align: left;
}

/* About */
.about-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1.5;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tech-stack span {
    background: var(--bg-light);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: var(--primary);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-item p {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 5px;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.project-content {
    padding: 30px;
}

.project-badge {
    display: inline-block;
    background: #e0f2fe;
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-content p {
    text-align: left;
}

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

/* Publications */
.pub-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

.pub-list {
    list-style: none;
}

.pub-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list strong {
    color: var(--primary);
}

.mt-4 { margin-top: 20px; }

/* Contact */
.contact-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    padding: 120px 0 80px 0;
}

.contact-section h2 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
}

.contact-desc {
    color: #cbd5e1;
    margin: 15px 0 50px 0;
    font-size: 1.1rem;
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 30px;
    align-items: stretch;
}

.contact-form {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 32px;
    backdrop-filter: blur(8px);
    text-align: left;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.form-heading {
    margin-bottom: 20px;
}

.form-heading h3 {
    color: white;
    margin-bottom: 8px;
}

.form-heading p {
    color: #dbeafe;
    text-align: left;
}

.contact-form label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form textarea,
.contact-form input,
.contact-form select {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    padding: 14px 16px;
    font: inherit;
    margin-bottom: 18px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    padding-right: 48px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.contact-form select option {
    color: var(--primary);
}

.contact-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus {
    outline: 2px solid rgba(125, 211, 252, 0.6);
    outline-offset: 2px;
}

.contact-submit {
    width: 100%;
    text-align: center;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 30px 20px;
    border-radius: 12px;
    min-width: 250px;
    max-width: 100%;
    backdrop-filter: blur(5px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

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

.contact-card h4 {
    color: white;
    margin-bottom: 10px;
}

.contact-card span {
    color: #cbd5e1;
    font-weight: 500;
    word-wrap: break-word;
    display: inline-block;
    width: 100%;
}

/* Footer */
footer {
    background: #0b1120;
    color: var(--text-muted);
    padding: 60px 0 30px 0;
}

.footer-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-column p {
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column strong {
    color: var(--accent);
    font-weight: 600;
}

.footer-column .sub-text {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: none;
}

.footer-content {
    text-align: center !important;
}

.footer-content p {
    text-align: center;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 900px) {
    .hero-inner, .about-flex {
        flex-direction: column;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .hero-image { text-align: left; margin-top: 40px; }
    .hero-actions { justify-content: flex-start; }
    .nav-links { display: none; }
    
    .hero-text h1 { font-size: 2.2rem; }
    .hero { padding: 120px 0 80px 0; }
    .section { padding: 60px 0; }
    .contact-section { padding: 80px 0 60px 0; }
    .section-title h2 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text .tagline { font-size: 1rem; }
    .profile-pic { width: 250px; height: 250px; }
    .hero-actions { flex-direction: column; }
    .btn { text-align: center; }
    .stat-number { font-size: 2.2rem; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-details-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 20px; }
    .hero { padding: 100px 0 50px 0; }
}

/* Navigációs Fókusz - Blur & Pulse Effekt */
.blur-bg {
    filter: blur(8px) grayscale(50%) !important;
    opacity: 0.4 !important;
}

main.focus-mode > section {
    filter: blur(8px) grayscale(50%) !important;
    opacity: 0.4 !important;
    pointer-events: none;
}

main.focus-mode > section.highlighted {
    filter: blur(0) grayscale(0) !important;
    opacity: 1 !important;
    pointer-events: auto;
    animation: pulselight 2.5s ease-in-out;
    position: relative;
    z-index: 10;
    transform: scale(1.01);
}

main.focus-mode > section.highlighted:not(.contact-section) {
    background: var(--bg-main);
    border-radius: 12px;
}

main.focus-mode > section.highlighted.bg-light {
    background: var(--bg-light);
}

@keyframes pulselight {
    0% { box-shadow: 0 0 0 rgba(2, 132, 199, 0); transform: scale(1); }
    15% { box-shadow: 0 0 60px rgba(2, 132, 199, 0.4); transform: scale(1.01); }
    85% { box-shadow: 0 0 60px rgba(2, 132, 199, 0.4); transform: scale(1.01); }
    100% { box-shadow: 0 0 0 rgba(2, 132, 199, 0); transform: scale(1); }
}
