/* styles.css */
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

.g-recaptcha iframe {
    border: none;
    -webkit-filter: drop-shadow(0 0 5px var(--shadow));
    filter: drop-shadow(0 0 5px var(--shadow));
}

/* Root variables for themes */
:root {
    --background: #000000; /* Gradient shows through */
    --pane-bg: #1A1A1A; /* Solid pane color for middle sections */
    --text-color: #FFFFFF;
    --accent-color: #00C4FF; /* Cyan from gradient */
    --accent-hover: #00A3D6;
    --secondary-color: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.5);
    --header-color: rgba(26, 26, 26, 0);
}

[data-theme="light"] {
    --background: #000000;
    --pane-bg: #F5F5F5; /* Light pane color */
    --text-color: #000000;
    --accent-color: #00C4FF;
    --accent-hover: #00A3D6;
    --secondary-color: #000000;
    --shadow: rgba(0, 0, 0, 0.5);
    --header-color: rgba(245, 245, 245, 0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

body {
    background: var(--background);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 60px;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    background: rgba(26, 26, 26, 0);
    --header-color: var(--header-color)
}
[data-theme="dark"] header {
    background: rgba(26, 26, 26, 0);
}
[data-theme="light"] header {
    background: rgba(245, 245, 245, 0);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    transition: opacity 0.3s ease;
    -webkit-filter: drop-shadow(0 0 5px var(--shadow));
    filter: drop-shadow(0 0 5px var(--shadow));
}

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

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.30);
}

.hamburger {
    display: none;
    font-size: 32px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
}

.hamburger .hamburger-icon {
    font-size:32px;
    vertical-align: middle;
}

#settings-toggle {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-family: 'Material Icons';
    line-height: 1;
    vertical-align: middle;
}

#settings-toggle:hover {
    color: var(--accent-color);
}

.settings-section h3 {
    margin-bottom: 20px;
}

.modal-close {
    -webkit-filter: drop-shadow(0 0 5px var(--shadow));
    filter: drop-shadow(0 0 5px var(--shadow));
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--pane-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: lowercase;
    margin-bottom: 20px;
}

.settings-tiles {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.settings-tile {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    width: 100px;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settings-tile:hover {
    background: rgba(0, 196, 255, 0.1);
    transform: translateY(-3px);
}

.settings-tile.active {
    border-color: var(--accent-color);
}

.tile-icon {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.tile-label {
    font-size: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
}

.modal-close {
    background: var(--accent-color);
    color: #FFFFFF;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 40px;
}

.modal-close:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* Hero (Gradient Background with Logo and Header) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 60px;
    position: relative;
    background: transparent; /* Gradient shows through */
    scroll-margin-top: 120px; /* Offset for fixed header */
}

.hero-content {
    max-width: 1200px;
    opacity: 1;
    transform: translateY(80px);
    animation: slideIn 1.2s ease-out forwards;
}

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    max-height: 300px;
    width: auto;
    margin-bottom: 30px;
    -webkit-filter: drop-shadow(0 0 5px var(--shadow));
    filter: drop-shadow(0 0 5px var(--shadow));
    animation: bounce 1s ease-out forwards;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    20% { transform: translateY(-30px); }
    40% { transform: translateY(0); }
    60% { transform: translateY(-15px); }
    80% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

.hero-content h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--text-color);
    text-transform: lowercase;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 0 2px 10px var(--shadow);
    letter-spacing: -3px;
}

.hero-content p {
    font-size: 1.8rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Middle Sections (Solid Panes) */
.section {
    padding: 120px 60px;
    position: relative;
    background: var(--pane-bg); /* Solid background */
    scroll-margin-top: 120px; /* Offset for fixed header */
}

.section-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-content h2 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-color);
    text-transform: lowercase;
    margin-bottom: 40px;
    opacity: 1;
    transform: translateY(80px);
}

.section-content p {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 1200px;
    margin: 0 auto 0;
    opacity: 1;
    transform: translateY(80px);
}

/* Benefits and Services */
.benefits-grid,
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.benefit-item,
.service-item {
    flex: 1 1 350px;
    max-width: 350px;
    opacity: 1;
    transform: translateY(100px);
    margin-bottom: 30px;
    display: flex; /* Use flexbox to control spacing */
    flex-direction: column;
    gap: 5px; /* Control spacing between children */
    align-items: center; /* Center content */
}

.material-icons.benefit-icon,
.material-icons.service-icon {
    font-size: 100pt;
    color: var(--accent-color);
    margin: 0; /* Ensure no margins */
    padding: 0;
    line-height: 1;
    display: block;
}

.benefit-item h3,
.service-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: lowercase;
    margin: 0; /* Remove all margins */
    padding: 0;
    line-height: 1;
}

.benefit-item p,
.service-item p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    position: relative;
    top: -50px;
}

.benefit-item p.reference {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    font-style: italic;
    opacity: 0.8;
    position: relative;
    top: -30px
}

.benefit-item p.reference a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.benefit-item p.reference a:hover {
    color: var(--accent-hover);
}

.service-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
}

.about-image {
    margin-top: 80px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Contact (Gradient Background) */
#contact {
    background: transparent; /* Gradient shows through */
}

.contact-form {
    max-width: 1000px;
    margin: 0 auto 0;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 35px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 18px;
    background: rgba(25, 25, 25, 0.5);
    background-color: rgba(25, 25, 25, 0.5);
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    -webkit-filter: drop-shadow(0 0 5px var(--shadow));
    filter: drop-shadow(0 0 5px var(--shadow));
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(var(--text-color), 1);
    text-transform: lowercase;
}

[data-theme="light"] .form-group input[type="text"],
[data-theme="light"] .form-group input[type="email"],
[data-theme="light"] .form-group input[type="tel"],
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.form-group .g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.copyright p {
    text-align: center;
}

.privacy-header {
    background: rgba(245, 245, 245, 0.8); /* Light theme frosted base */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
}
.privacy-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-color);
    text-transform: lowercase;
    opacity: 1;
}

.privacy-intro {
    margin-top: 40px;
    margin-bottom: 40px;
}

.privacy-body {
    text-align: left;
}
.privacy-body h3,h4 {
    margin-top: 20px;
    margin-bottom: 20px;
}
.privacy-body p {
    padding-left: 20px;
}
.privacy-body ul {
    padding-left: 40px;
}

.cta {
    display: inline-block;
    padding: 18px 50px;
    background: var(--accent-color);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: lowercase;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    -webkit-filter: drop-shadow(0 0 5px var(--shadow));
    filter: drop-shadow(0 0 5px var(--shadow));
}

.cta:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
}

#submit-btn.cta {
    width: 100%;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#submit-btn.success {
    color: #FFFFFF;
}

#submit-btn.error {
    color: #FF5555;
}

#form-message {
    display: none;
}

.error-message {
    display: none;
    color: #FF5555;
    font-size: 1.1rem;
    margin-top: 8px;
}

.error-message.active {
    display: block;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--pane-bg); /* Solid footer */
}

.footer-logo {
    max-height: 25px; /* Reduced from 50px to 25px (50% of original size) */
    width: auto;
    opacity: 1;
}

footer .copyright {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
}

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

footer .copyright a:hover {
    color: var(--accent-hover);
}

@media only screen and (orientation: landscape) and (min-width: 800px) and (max-width: 1024px) {
    .hero {
        margin-top: 80px;
    }

    .hero-logo {
        max-height: 175px;
        width: auto;
        padding-bottom: 0;
        margin-bottom: 50px;
    }
}

@media only screen and (orientation: landscape) and (max-width: 800px) {
    .hero {
        margin-top: 60px;
    }

    .hero-logo {
        max-height: 175px;
        width: auto;
        padding-bottom: 0;
        margin-bottom: 25px;
    }
}

@media only screen and (orientation: landscape) and (min-width: 800px) and (max-width: 900px) {
    .hero {
        margin-top: 60px;
    }

    .hero-logo {
        max-height: 175px;
        width: auto;
        padding-bottom: 0;
        margin-bottom: 25px;
    }
}

/* Responsive Design */
@media only screen and (max-width: 900px) {
    header {
        padding: 10px;
    }

    .logo {
        height: 35px;
        vertical-align: middle;
        padding: 0;
    }

    .hamburger {
        display: contents;
        vertical-align: middle;
        padding: 0;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        background: var(--pane-bg);
        padding: 30px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 20px 0;
    }

    .hero {
        padding: 0 30px;
    }

    .hero-logo {
        max-height: 200px;
        width: auto;
    }

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

    .hero-content p {
        font-size: 1.4rem;
    }

    .section {
        padding: 80px 30px;
    }

    .section-content h2 {
        font-size: 3rem;
    }

    .section-content p {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .benefits-grid,
    .services-grid {
        gap: 40px;
    }

    .benefit-item,
    .service-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .material-icons.benefit-icon,
    .material-icons.service-icon {
        font-size: 72pt;
    }

    .benefit-item h3,
    .service-item h3 {
        margin: 0;
        line-height: 1;
    }

    .benefit-item p.reference {
        margin: 0;
        position: relative;
        top: -70px;
    }

    .service-image {
        height: 240px;
    }

    .contact-form {
        padding: 40px 0;
        margin: 60px auto 0;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 15px;
        font-size: 1rem;
    }

    .cta {
        padding: 15px 40px;
        font-size: 1.2rem;
    }

    footer {
        padding: 25px;
    }

    .copyright p {
        text-align: center;
        font-size: 12px;
    }

    .footer-logo {
        max-height: 24px; /* Consistent with desktop size reduction */
        width: auto;
        padding-bottom: 5px;
    }

    .privacy-content h2 {
        font-size: 3rem;
        font-weight: 800;
        color: var(--text-color);
        text-transform: lowercase;
        opacity: 1;
    }
}