/* LocalCraft Web Design System & Styling - Premium Black & Red Theme */

:root {
    --primary: #09090b;      /* Rich off-black background */
    --primary-light: #18181b; /* Zinc dark gray for sections/cards */
    --primary-mint: #ffe4e6;  /* Soft rose/pink background for light badges */
    --badge-bg: rgba(225, 29, 72, 0.15); /* Semi-transparent red for dark badges */
    --badge-color: #fb7185;
    --red-accent: #e11d48;   /* Crimson/Rose Red */
    --red-bright: #f43f5e;   /* Bright Red for hover states */
    --text-main: #f4f4f5;    /* Off-white for readability */
    --text-muted: #a1a1aa;   /* Muted gray for body text */
    --border-color: rgba(255, 255, 255, 0.08); /* Sophisticated dark border */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --red-glow: 0 0 20px rgba(225, 29, 72, 0.3);
    --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 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Helper Buttons & UI Components */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 60px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--red-bright);
    transform: translateY(-2px);
    box-shadow: var(--red-glow);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: #27272a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--red-accent);
    color: var(--red-accent);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--red-accent);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: var(--red-glow);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.badge {
    display: inline-block;
    background-color: var(--badge-bg);
    color: var(--badge-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.highlight {
    color: var(--red-accent);
    text-shadow: 0 0 10px rgba(225, 29, 72, 0.2);
    position: relative;
    display: inline-block;
}

/* Glassmorphism Card style */
.glass-card {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

#main-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(9, 9, 11, 0.98);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

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

#nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

#nav-menu a {
    font-weight: 600;
    color: var(--text-muted);
}

#nav-menu a:hover {
    color: var(--red-bright);
}

#mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

#mobile-nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
#hero {
    padding-top: 180px;
    padding-bottom: 120px;
    background: radial-gradient(circle at 50% -20%, rgba(225, 29, 72, 0.15) 0%, rgba(9, 9, 11, 1) 70%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Browser Mockup (Hungarian) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.browser-mockup {
    width: 100%;
    max-width: 480px;
    background: rgba(24, 24, 27, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--red-glow), 0 30px 60px rgba(0, 0, 0, 0.7);
    transform: rotateY(-12deg) rotateX(6deg) translateZ(10px);
    transition: var(--transition);
}

.browser-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
    box-shadow: 0 0 35px rgba(225, 29, 72, 0.5), 0 40px 80px rgba(0, 0, 0, 0.9);
}

.browser-header {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dot.red { background-color: var(--red-accent); }
.browser-dot.yellow { background-color: #eab308; }
.browser-dot.green { background-color: #22c55e; }

.browser-address {
    background-color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.2rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-grow: 1;
    text-align: center;
}

.browser-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background-color: var(--primary);
    color: var(--text-main);
}

.mock-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
}

.mock-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
}

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

.mock-links {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.mock-hero {
    background-color: var(--primary-light);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mock-badge {
    align-self: flex-start;
    font-size: 0.55rem;
    background-color: rgba(225, 29, 72, 0.15);
    color: var(--badge-color);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(225, 29, 72, 0.2);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.mock-hero h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.mock-hero p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mock-stat-item {
    background-color: var(--primary-light);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
}

.stat-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #22c55e;
    color: #22c55e;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem auto;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.stat-circle.glow-red {
    border-color: var(--red-accent);
    color: var(--red-accent);
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.2);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Services Section */
#szolgaltatasok {
    padding: 100px 0;
    background-color: var(--primary-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--primary);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--red-accent);
    border-color: rgba(225, 29, 72, 0.3);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-svg {
    width: 40px;
    height: 40px;
    stroke: var(--red-accent);
    transition: var(--transition);
}

.service-card:hover .icon-svg {
    stroke: var(--red-bright);
    transform: scale(1.1) rotate(2deg);
}

/* Contact detail SVG size adjustment */
.detail-item .icon-svg {
    width: 24px;
    height: 24px;
    stroke: var(--red-accent);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfolio Section */
#portfolio {
    padding: 100px 0;
    background-color: var(--primary);
}

.comparison-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-header {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #121214;
}

.view-panel {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.view-panel h4 {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-muted);
}

.old-view {
    border-right: 1px solid var(--border-color);
}

.mock-website-preview {
    border-radius: 8px;
    padding: 1.5rem;
    height: 250px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Style for Simulated Old Website */
.old-preview-bg {
    background-color: #ffffcc;
    color: #111827;
    font-family: "Times New Roman", Times, serif;
    border: 3px double #999;
}

.old-header {
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.old-content {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Style for Simulated New Redesign Website */
.new-preview-bg {
    background-color: #09090b;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.new-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.new-logo {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 0.95rem;
    color: #ffffff;
}

.new-links {
    font-size: 0.65rem;
    opacity: 0.8;
}

.new-hero {
    margin-top: 1rem;
}

.new-hero h5 {
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.new-hero p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.new-btn {
    display: inline-block;
    background-color: var(--red-accent);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Process Section */
#folyamat {
    padding: 100px 0;
    background-color: var(--primary-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-item {
    background-color: var(--primary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    z-index: 1;
    transition: var(--transition);
}

.step-item:hover {
    border-color: rgba(225, 29, 72, 0.2);
    transform: translateY(-2px);
}

.step-num {
    width: 50px;
    height: 50px;
    background-color: var(--red-accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--primary-light);
    box-shadow: var(--shadow-md);
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
#kapcsolat {
    padding: 100px 0;
    background-color: var(--primary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.detail-item .icon {
    font-size: 1.5rem;
    color: var(--red-accent);
}

.contact-form-container {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--primary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red-accent);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

/* Footer */
footer {
    background-color: var(--primary-light);
    color: var(--text-muted);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    #mobile-nav-toggle {
        display: flex;
    }
    
    #nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--primary-light);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        border-top: 1px solid var(--border-color);
    }
    
    #nav-menu.open {
        display: block;
    }
    
    #nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .comparison-views {
        grid-template-columns: 1fr;
    }
    
    .old-view {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero-content h1 {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* -------------------------------------------------- */
/* Laboratórium / Laboratory Page Specific Styles */
/* -------------------------------------------------- */

#lab-hero {
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, rgba(225, 29, 72, 0.12) 0%, rgba(9, 9, 11, 1) 60%);
}

#lab-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

#lab-hero .lead-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.lab-card {
    position: relative;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lab-card:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 29, 72, 0.2);
    box-shadow: var(--red-glow), var(--shadow-lg);
}

.lab-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.status-active {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pending {
    background-color: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.lab-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lab-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.lab-stats-micro {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lab-stat-badge {
    font-size: 0.7rem;
    background-color: var(--primary-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

#lab-status {
    padding: 80px 0;
}

.status-panel {
    padding: 3rem;
    border-top: 3px solid var(--red-accent) !important;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.status-header h3 {
    font-size: 1.8rem;
}

.pulse-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.status-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--red-bright);
    font-family: 'Playfair Display', serif;
}

.status-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-link {
    color: var(--red-accent) !important;
    border-bottom: 2px solid var(--red-accent);
    padding-bottom: 4px;
}
