/* CSS Custom Properties */
:root {
    --primary: 213 94% 68%; /* #4285F4 */
    --primary-dark: 213 100% 45%; /* #1565C0 */
    --secondary: 45 93% 58%; /* #FF9800 */
    --accent: 142 71% 45%; /* #4CAF50 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 215 25% 27%; /* #37474F */
    --text-secondary: 215 16% 47%; /* #607D8B */
    --text-light: 215 8% 65%; /* #90A4AE */
    --border: 210 11% 91%; /* #E8EBF0 */
    --shadow: 0 0% 0% 0.1;
    --gradient: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--shadow));
}

.btn-secondary {
    background: hsl(var(--surface));
    color: hsl(var(--text-primary));
    border-color: hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--background));
}

.btn-outline {
    background: transparent;
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: hsl(var(--text-primary));
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: hsl(var(--text-secondary));
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    background: hsl(var(--surface));
    box-shadow: 0 2px 10px hsla(var(--shadow));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: hsl(var(--text-primary));
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: hsl(var(--primary));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: hsl(var(--text-primary));
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 100px 0;
    background: hsl(var(--surface));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px hsla(var(--shadow));
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: hsl(var(--primary));
}

.about-card p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: hsl(var(--background));
}

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

.service-card {
    background: hsl(var(--surface));
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px hsla(var(--shadow));
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: hsl(var(--text-primary));
}

.service-card p {
    color: hsl(var(--text-secondary));
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    color: hsl(var(--text-secondary));
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--accent));
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: hsl(var(--surface));
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: hsl(var(--background));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px hsla(var(--shadow));
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    height: 200px;
    background: hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-placeholder {
    color: hsl(var(--text-light));
    font-size: 1.1rem;
    font-weight: 500;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.portfolio-item h3 {
    padding: 24px 24px 8px;
    font-size: 1.3rem;
    color: hsl(var(--text-primary));
}

.portfolio-item p {
    padding: 0 24px 24px;
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background: hsl(var(--background));
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.review-card {
    background: hsl(var(--surface));
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px hsla(var(--shadow));
    text-align: center;
}

.stars {
    color: hsl(var(--secondary));
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.review-card p {
    font-style: italic;
    color: hsl(var(--text-secondary));
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer strong {
    color: hsl(var(--text-primary));
    display: block;
    margin-bottom: 4px;
}

.reviewer span {
    color: hsl(var(--text-light));
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: var(--gradient);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsla(var(--surface) / 0.3);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: hsl(var(--surface));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item h3 {
    color: hsl(var(--primary));
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-item p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

.contact-item a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 2px solid hsl(var(--border));
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

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

/* Footer */
.footer {
    background: hsl(var(--text-primary));
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: white;
}

.footer-column p {
    line-height: 1.6;
    opacity: 0.8;
}

.footer-column ul {
    display: grid;
    gap: 10px;
}

.footer-column a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: hsla(var(--surface) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: hsl(var(--primary));
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid hsla(var(--surface) / 0.1);
    opacity: 0.8;
}

/* Cookie Management */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--text-primary));
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px hsla(var(--shadow));
}

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

.cookie-content h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-content p {
    opacity: 0.9;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsla(var(--text-primary) / 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.cookie-modal-content {
    background: hsl(var(--surface));
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal h3 {
    margin-bottom: 24px;
    color: hsl(var(--text-primary));
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid hsl(var(--border));
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-switch input {
    display: none;
}

.slider {
    width: 50px;
    height: 24px;
    background: hsl(var(--border));
    border-radius: 24px;
    position: relative;
    transition: background 0.3s ease;
}

.slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.cookie-switch input:checked + .slider {
    background: hsl(var(--primary));
}

.cookie-switch input:checked + .slider::before {
    transform: translateX(26px);
}

.cookie-switch input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category p {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    line-height: 1.4;
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        gap: 16px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about, .services, .portfolio, .reviews, .contact {
        padding: 60px 0;
    }
    
    .newsletter {
        padding: 60px 0;
    }
    
    .newsletter h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-modal-content {
        padding: 24px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .service-card,
    .review-card {
        padding: 24px;
    }
    
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-buttons .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}
