/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5f3f;
    --secondary-color: #3c8f5c;
    --accent-color: #b8860b;
    --gold-accent: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --text-gray: #777777;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #2d4a3a;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Work Sans', 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px var(--shadow-light);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1002;
    border-bottom: 3px solid var(--gold-accent);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: var(--gold-accent);
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    outline: none;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide:nth-child(1) {
    background-image: url('img/header1.jpg');
}

.slide:nth-child(2) {
    background-image: url('img/header2.jpg');
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--bg-white);
    z-index: 3;
    width: 90%;
    max-width: 1000px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 3px;
    color: var(--bg-white);
}

.slide-content p {
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e4d2b 0%, #2d5f3f 50%, #3c8f5c 100%);
    color: var(--bg-white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.3rem;
    margin-bottom: 2rem;
    color: var(--bg-white);
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-weight: 300;
}

.hero-highlight {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--gold-accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px var(--shadow-light);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-accent), var(--accent-color));
    color: var(--bg-white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e5be3e, #c99a0f);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(45, 95, 63, 0.3);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-top-color: var(--gold-accent);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.9;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* About Us / Unternehmen Section */
.about-us {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-us h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: left;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.services-list {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.services-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.services-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.services-list li:before {
    content: '•';
    color: var(--gold-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.closing-text {
    margin-top: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.team-greeting {
    margin-top: 2rem;
    color: var(--primary-color);
    line-height: 1.8;
}

.team-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 3rem 0 2rem;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
}

/* Flip Card */
.flip-card {
    background-color: transparent;
    width: 280px;
    height: 320px;
    perspective: 1000px;
    margin: 0 auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-light);
    background-color: var(--bg-white);
    overflow: hidden;
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.flip-card-front img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.flip-card-front h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
}

.info-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.info-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.flip-card.flipped .info-btn {
    display: none;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.flip-card-back h4 {
    color: white;
    font-size: 1.15rem;
    margin: 0 0 0.8rem 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

.flip-card-back p {
    color: white;
    margin: 0.5rem 0;
    line-height: 1.4;
    text-align: left;
    font-size: 0.8rem;
    width: 100%;
}

.flip-card-back p strong {
    color: var(--gold-accent);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

/* Dream House Section */
.dream-house {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #3d6650 100%);
    color: var(--bg-white);
    text-align: center;
    position: relative;
}

.dream-house::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-accent), var(--accent-color), var(--gold-accent));
}

.dream-house h2 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.dream-house p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* References Section */
.references {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reference-item {
    background-color: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 12px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.reference-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.reference-images {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.reference-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reference-item:hover .reference-images img {
    transform: scale(1.05);
}

.reference-item h4 {
    padding: 1rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.reference-desc {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 400px;
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: 0 2px 8px var(--shadow-light);
    border-left: 4px solid var(--gold-accent);
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.info-block p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
}

.info-block a {
    color: var(--primary-color);
}

.office-hours {
    width: 100%;
    border-collapse: collapse;
}

.office-hours td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.office-hours td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.office-hours td:last-child {
    text-align: right;
    color: var(--text-light);
}

.office-hours tr:last-child td {
    border-bottom: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.98);
    color: var(--bg-white);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    border-top: 3px solid var(--gold-accent);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-content a {
    color: var(--gold-accent);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--secondary-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: var(--bg-white);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 4px solid var(--gold-accent);
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--bg-white);
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-text {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .hamburger {
        display: flex;
    }

    .header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: var(--bg-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1001;
        padding-top: 80px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a {
        display: block;
        padding: 1.2rem 2rem;
        border-bottom: none;
        font-size: 1rem;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: var(--bg-light);
        border-bottom: none;
        border-left: 4px solid var(--gold-accent);
    }

    .banner-slider {
        height: 500px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .services-grid,
    .references-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-nav a {
        display: block;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services,
    .references,
    .contact-section {
        padding: 3rem 0;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Add scroll offset for fixed header */
section {
    scroll-margin-top: 120px;
}

/* Content Section for text pages */
.content-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.page-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.content-block {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
}

.content-block h2 {
    color: var(--primary-color);
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.content-block h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-block h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.content-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-block ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-block li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.content-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-block a:hover {
    color: var(--secondary-color);
}

.legal-text {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.service-card,
.reference-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: modalFadeIn 0.3s ease-out;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-dark);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
}

.modal-content h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px 40px;
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(85vh - 110px);
}

.modal-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.modal-body h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
    }

    .modal-content h2 {
        padding: 20px 70px 20px 25px;
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 25px;
        max-height: calc(90vh - 80px);
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 26px;
    }
}