/* Base Styles and Variables */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #004e98;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --section-padding: 80px 0;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-tertiary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
    background-color: var(--border-color);
}

section {
    padding: var(--section-padding);
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    flex: 1;
}

.logo img {
    max-height: 60px;
    width: auto;
}

nav {
    flex: 2;
}

nav ul {
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after, nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 85vh;
    background-image: url('images/1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Page Banner */
.page-banner {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.page-banner h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.services {
    text-align: center;
    background-color: #f9f9f9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

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

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card h3 {
    margin-top: 20px;
    padding: 0 20px;
}

.service-card p {
    padding: 0 20px 20px;
}

/* Featured Work Section */
.featured-work {
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
}

.testimonial-card:before {
    content: """;
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    opacity: 0.1;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    font-weight: 500;
    color: var(--primary-color);
}

/* Random Fact Section */
.random-fact {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.fact-container {
    max-width: 800px;
    margin: 0 auto;
}

.fact-container h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.fact-container p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Recent Posts Section */
.recent-posts {
    text-align: center;
    padding: var(--section-padding);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card h3 {
    margin-top: 20px;
    padding: 0 20px;
    font-size: 1.3rem;
}

.post-card p {
    padding: 0 20px;
}

.read-more {
    display: inline-block;
    margin: 10px 0 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom-links a {
    color: #ddd;
    margin: 0 10px;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    padding: 15px 20px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0 20px 0 0;
    flex: 1;
}

.cookie-content a {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-banner .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Blog Page Styles */
.blog-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 50px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 30px;
}

.post-content h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
}

.category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-tag {
    padding: 8px 15px;
    background-color: #f1f1f1;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.category-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Single Blog Post */
.blog-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-header h1 {
    font-size: 2.5rem;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #777;
}

.blog-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h2 {
    margin-top: 40px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
}

.blog-content ul, .blog-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-tags {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.blog-tags span {
    font-weight: 600;
}

.blog-tags a {
    padding: 5px 15px;
    background-color: #f1f1f1;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.blog-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.blog-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.prev-post, .next-post {
    max-width: 45%;
}

.prev-post a, .next-post a {
    color: var(--dark-color);
    font-weight: 500;
}

.prev-post a:hover, .next-post a:hover {
    color: var(--primary-color);
}

.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

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

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-item h4 {
    padding: 15px 15px 5px;
    font-size: 1rem;
}

.related-item a {
    display: inline-block;
    padding: 0 15px 15px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Portfolio Page */
.portfolio-filter {
    text-align: center;
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

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

.gallery-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin: 0;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-content .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta-content .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* About Page */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.about-content h2 {
    margin-top: 0;
}

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

.philosophy-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.philosophy-item {
    padding: 30px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

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

.philosophy-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.team-section {
    background-color: #f9f9f9;
    text-align: center;
    padding: var(--section-padding);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.team-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.team-member h3 {
    margin-top: 20px;
    padding: 0 20px;
    margin-bottom: 5px;
}

.team-member p {
    padding: 0 20px;
    margin-bottom: 10px;
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 500;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px 20px;
}

.team-social a {
    color: #777;
}

.team-social a:hover {
    color: var(--primary-color);
}

.about-equipment {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.equipment-item {
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
}

.equipment-item h3 {
    margin-bottom: 15px;
}

.equipment-item ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
}

.equipment-item ul li {
    margin-bottom: 8px;
}

.testimonial-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/39.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content blockquote {
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-content cite {
    font-style: normal;
    font-weight: 500;
}

/* Contact Page */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2, .contact-form h2 {
    margin-top: 0;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.info-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.info-content p {
    margin-bottom: 5px;
}

.social-contact {
    margin-top: 40px;
}

.social-contact h3 {
    margin-bottom: 15px;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: var(--border-radius);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-group label {
    font-weight: normal;
}

.map-section {
    text-align: center;
    padding: var(--section-padding);
}

.map-container {
    max-width: 1200px;
    margin: 30px auto 0;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-btn {
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-story {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 5%;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .post {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 15px;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
}
