/* Base variables based on requested colors: Blue, Gray, Green accent, Dark theme */
:root {
    /* Color Palette */
    --color-bg-base: #0d1117;
    /* Very dark gray/blue */
    --color-bg-secondary: #161b22;
    --color-bg-tertiary: #21262d;

    --color-text-main: #c9d1d9;
    --color-text-muted: #8b949e;
    --color-text-light: #ffffff;

    /* Brand Colors */
    --color-primary: #1f6feb;
    /* Sleek Blue */
    --color-primary-hover: #388bfd;
    --color-accent: #238636;
    /* Subtle Green */
    --color-accent-hover: #2ea043;

    --color-gray-border: #30363d;

    /* Glassmorphism */
    --glass-bg: rgba(22, 27, 34, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* offset for fixed header */
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-darker {
    background-color: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.accent-text {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(31, 111, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-gray-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-tertiary);
    border-color: var(--color-text-muted);
    color: var(--color-text-light);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

#nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-contact {
    border: 1px solid var(--color-primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--color-primary);
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using one of the provided images for the background */
    background-image: linear-gradient(to right, rgba(13, 17, 23, 0.9) 0%, rgba(13, 17, 23, 0.6) 50%, rgba(13, 17, 23, 0.3) 100%), url('Pictures/keret_nelkuli_uvegkorlat_lepcso_mellett_nappali.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05);
    animation: zoomBg 20s infinite alternate linear;
}

@keyframes zoomBg {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 1s ease forwards;
}

.hero-pretitle {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 24px;
    margin-bottom: 4px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    padding: 40px 30px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--color-primary);
    transition: height var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(31, 111, 235, 0.3);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover .service-icon {
    color: var(--color-primary);
    transform: scale(1.1);
}

.service-icon {
    font-size: 48px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--color-text-muted);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-image img {
    width: 100%;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: var(--color-primary);
    color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(31, 111, 235, 0.3);
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.stats {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: nowrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.stat-item i {
    font-size: 24px;
    color: var(--color-accent);
    /* Using the green accent here */
}

.stat-item span {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-category {
    margin-bottom: 50px;
}

.gallery-category h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-gray-border);
    padding-bottom: 10px;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-overlay i {
    font-size: 40px;
    color: var(--color-text-light);
    transform: scale(0.5);
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-cta {
    margin-top: 60px;
    padding: 40px;
    text-align: center;
}

.gallery-cta h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.gallery-cta p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(31, 111, 235, 0.1);
    color: var(--color-primary);
    font-size: 24px;
    transition: all var(--transition-normal);
    border: 1px solid rgba(31, 111, 235, 0.2);
}

.social-icon:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(31, 111, 235, 0.4);
}

/* Contact Section */
.section-contact {
    position: relative;
    background-image: url('Pictures/IMG_20230118_102148.webp');
    /* Industrial background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.85);
    /* Dark overlay */
}

.contact-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.contact-info {
    max-width: 600px;
    width: 100%;
    padding: 50px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 40px;
    color: var(--color-text-main);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-list i {
    font-size: 28px;
    color: var(--color-primary);
    background: rgba(31, 111, 235, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.contact-list strong {
    display: block;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.contact-form-container {
    padding: 50px;
}

.contact-form-container h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
    color: var(--color-text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(13, 17, 23, 0.9);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.2);
}

/* Footer */
footer {
    background-color: #010409;
    padding: 80px 0 20px;
    border-top: 1px solid var(--color-gray-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-logo p {
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.footer-links a,
.footer-legal a {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
    animation: zoomIn 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: 10px;
        bottom: -10px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-pretitle {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .hero-content {
        margin-top: 100px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: block;
    }

    #nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        border-left: 1px solid var(--color-gray-border);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    #nav-links.active {
        right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}