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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666666;
}

a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #357abd;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.section-title.centered {
    text-align: center;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-content span {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.cookie-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.cookie-btn:hover {
    background: #357abd;
}

.cookie-notice.hidden {
    display: none;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #666666;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4a90e2;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-description {
    color: #666666;
    line-height: 1.7;
}

/* Blog Section */
.blog {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.blog-excerpt {
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    color: #999999;
    font-size: 0.9rem;
}

.blog-link {
    font-weight: 500;
    color: #4a90e2;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.contact-details p,
.contact-details a {
    color: #666666;
    margin: 0;
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-2px);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-tagline {
    color: #cccccc;
    margin: 0;
}

.footer-links,
.legal-links {
    list-style: none;
}

.footer-links li,
.legal-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.legal-links a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.legal-links a:hover {
    color: #4a90e2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333333;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Header mobile menu */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

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

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero section */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Services section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Blog section */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Cookie notice */
    .cookie-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-btn {
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .service-card,
    .blog-content {
        padding: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        margin: 0 auto;
        max-width: 100%;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Legal Pages Styles */
.privacy-policy,
.terms-of-service {
    padding: 120px 0 80px;
    background: #ffffff;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-content .last-updated {
    text-align: center;
    color: #666666;
    font-style: italic;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4a90e2;
}

.policy-section h3 {
    font-size: 1.25rem;
    color: #333333;
    margin: 1.5rem 0 1rem 0;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555555;
}

.policy-section ul {
    margin: 1rem 0 1rem 2rem;
    color: #555555;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #4a90e2;
}

.contact-details p {
    margin-bottom: 1rem;
    color: #333333;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.back-to-home {
    text-align: center;
    margin: 4rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Legal pages responsive */
@media (max-width: 768px) {
    .privacy-policy,
    .terms-of-service {
        padding: 100px 0 60px;
    }

    .legal-content {
        padding: 0 15px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .policy-section h2 {
        font-size: 1.3rem;
    }

    .policy-section h3 {
        font-size: 1.1rem;
    }

    .contact-details {
        padding: 1.5rem;
    }

    .policy-section ul {
        margin-left: 1.5rem;
    }
}

/* Enhanced header scroll effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .header,
    .cookie-notice,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
    }

    .privacy-policy,
    .terms-of-service {
        padding: 20px 0;
    }

    .back-to-home {
        display: none;
    }

    .policy-section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }

    .policy-section h2 {
        break-after: avoid;
    }
}