/* Base Styles */
:root {
    --primary-color: #2673ff;
    --primary-color-dark: #2563eb;
    --primary-color-light: #60a5fa;
    --text-color: #111827;
    --text-color-light: #6b7280;
    --bg-color: #f9fafb;
    --bg-color-alt: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --navbar-height: 70px;
}

/* Dark Mode Colors */
.dark-mode {
    --primary-color: #2673ff;
    --primary-color-dark: #2563eb;
    --primary-color-light: #60a5fa;
    --text-color: #f9fafb;
    --text-color-light: #d1d5db;
    --bg-color: #111827;
    --bg-color-alt: #1f2937;
    --card-bg: #374151;
    --border-color: #4b5563;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--card-bg);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color-dark);
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.license-text {
    color: var(--primary-color);
    font-weight: 800; /* Increased boldness */
    display: flex;
    flex-direction: column;
    margin-left: 1.5rem; /* Space between moon and text */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
    line-height: 1.3;
    order: 2; /* Positions after dark mode toggle */
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem; /* Consistent spacing */
    margin-left: auto;
}

@media (max-width: 768px) {
    .license-text {
        display: none;
    }
    .nav-controls {
        gap: 0.5rem;
    }
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 5px;
    font-size: 1.3rem;
    order: 1;
}

.dark-mode .sun-icon {
    display: inline-block;
}

.dark-mode .moon-icon {
    display: none;
}

body:not(.dark-mode) .sun-icon {
    display: none;
}

body:not(.dark-mode) .moon-icon {
    display: inline-block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
}

.desktop-nav {
    display: flex;
    gap: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    color: var(--text-color);
    font-weight: 500;
}

.nav-item:hover, .nav-item.current {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 4px 6px var(--shadow-color);
    order: 3;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.mobile-menu-content .nav-item {
    padding: 0.75rem 0;
}

/* Hero Section */
.hero {
    padding: calc(var(--navbar-height) + 3rem) 0 5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode .cta-button {
    background-color: var(--primary-color-dark);
    color: white;
}

.cta-button:hover {
    background-color: #f3f4f6;
    color: var(--primary-color-dark);
}

.dark-mode .cta-button:hover {
    background-color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.about {
    background-color: var(--card-bg);
}

.services {
    background-color: var(--bg-color-alt);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-color-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 15px var(--shadow-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--text-color-light);
}

/* Contact Page Styles */
.main-content {
    padding-top: var(--navbar-height);
}

.contact-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-form-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-form-map {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-container, .map-container {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.contact-form-container h3, .map-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
}

.dark-mode .form-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-color-light);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--primary-color-dark);
}

.map-placeholder {
    background-color: #e5e7eb;
    height: 100%;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.dark-mode .map-placeholder {
    background-color: var(--bg-color-alt);
}

.map-content {
    text-align: center;
    padding: 2rem;
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.map-button:hover {
    background-color: var(--primary-color-dark);
    color: white;
}

/* Service Area Section */
.service-area {
    padding: 3rem 0;
    background-color: var(--bg-color-alt);
}

.service-area-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-area h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}


/*Panorama Section*/
.panorama-section {
    height: 325px;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 0;
}

.panorama-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gallery Section */
.gallery {
    background-color: var(--card-bg);
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Services Page Styles */
.services-hero {
    padding: calc(var(--navbar-height) + 4rem) 0 6rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), var(--primary-color));
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.services-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.services-hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.detailed-services {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.services-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-item {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.service-item h3 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
}

.service-item p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.services-cta {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--bg-color-alt);
    border-radius: 0.75rem;
    margin-top: 2rem;
}

.services-cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* About Page Styles */
.about-hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
                url('pictures/about-hero.jpg') center/cover no-repeat;
    position: relative;
    margin-top: var(--navbar-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.about-content-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1.1rem;
    }
    
    .services-cta h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .panorama-section {
        height: 300px;
    }
}

@media (min-width: 768px) {
    .service-area-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-area-grid div {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.dark-mode .footer {
    background-color: #111827;
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-controls {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}