/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0051b5; /* Main brand blue */
    --secondary-color: #28b8f7; /* Lighter blue for gradient end */
    --accent-color: #e32525; /* Golden yellow - premium certification */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --light-text: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --gradient-primary: linear-gradient(135deg, #0051b5, #28b8f7);
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    scroll-behavior: smooth;
}

header {
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

header.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo img {
    height: 50px; /* Adjust as needed */
}

nav .nav-links {
    list-style: none;
    display: flex;
}

nav .nav-links li {
    margin-left: 2rem;
}

nav .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav .nav-links a {
    position: relative;
    padding-bottom: 5px;
}

nav .nav-links a:hover {
    color: var(--primary-color);
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: width var(--transition-speed) ease;
}

nav .nav-links a:hover::after {
    width: 100%;
}

nav .language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

nav .language-switcher span {
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

nav .language-switcher span:hover {
    background-color: var(--border-color);
}

nav .language-switcher span::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
}

main {
    padding-top: 80px; /* Adjust based on header height */
}

#hero {
    background-image: url('../assets/safedown-foil-logo.jpg'); /* Placeholder, replace with a suitable hero image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Make it parallax */
    color: #fff;
    text-align: center;
    padding: 100px 0; /* Remove horizontal padding for full width */
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%; /* Ensure full width */
    left: 0;
    right: 0;
    margin: 0;
    max-width: none; /* Override max-width from section */
}

#hero::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--light-text);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
    border: none;
}

.cta-button:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button:active {
    transform: translateY(0);
}

section {
    padding: 60px 20px;
    /* max-width: 1200px; */
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.8rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-light {
    background-color: #ffffff;
}

/* About Section */
#about {
    text-align: left;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-image {
    flex: 1;
    text-align: center;
    min-width: 250px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
h1 {
    font-size: 2.5rem!important;
    margin-bottom: 1rem;
    color: white;
}

.about-subsection {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: block;
}

.about-subsection h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: block;
}

.about-subsection ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

.about-subsection ul li {
    margin-bottom: 0.5rem;
}


/* Certification Section */
.certification-visuals {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.cert-image {
    max-width: 45%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    object-fit: contain; /* Ensure PDF-like images are not cropped awkwardly */
    max-height: 400px; /* Limit height for very tall images */
}


/* Benefits Section */
.benefits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
    margin-top: 2rem;
    display: block;
}

.benefit-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 2rem;
    flex-basis: calc(50% - 2rem); /* Two cards per row, accounting for gap */
    min-width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.benefit-icon {
    max-height: 80px; /* Adjust as needed */
    max-width: 100px; /* Adjust as needed */
    margin-right: 1rem;
    border-radius: 4px;
}

.benefit-card ul {
    list-style: none;
    padding-left: 0;
}

.benefit-card ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 20px;
}

.benefit-card ul li::before {
    content: '✓'; /* Checkmark */
    color: #28a745; /* Green for checkmarks */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Section */
#contact {
    background-image: url('../assets/hungary-parallax-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-width: none;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#contact > * {
    position: relative;
    z-index: 2;
}

#contact h2 {
    color: #fff;
}

#contact-form {
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#contact-form .cta-button {
    display: block;
    width: auto;
    margin: 0 auto;
    cursor: pointer;
}

.contact-details {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}


footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav .nav-links {
        display: none; /* Simple hide for now, implement burger menu later */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}
