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

:root {
    --primary-color: #245230;
    --primary-hover: #1e4220;
    --secondary-color: #36854b;
    --accent-color: #9c2727;
    --bg-color: #f8f9fa;
    --text-color: #9c2727;
    --light-text: #6c757d;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cursor Effects */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(151, 188, 98, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    transition: transform 0.3s ease;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(44, 95, 45, 0.95);
}

header.scrolled .logo,
header.scrolled nav a:not(.active) {
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

nav a:hover::before {
    width: 100px;
    height: 100px;
}

nav a:hover {
    color: white;
    transform: translateY(-2px);
}

nav a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><pattern id="p" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23fff" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="%232c5f2d"/><rect width="100%" height="100%" fill="url(%23p)"/></svg>');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    animation: heroFadeIn 1s ease forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: heroFadeIn 1s ease 0.6s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 300%;
    background: var(--secondary-color);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.6s ease;
    z-index: -1;
}

.cta-button:hover::before {
    width: 300%;
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Page Hero */
.page-hero {
    margin-top: 70px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Floating Elements */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    transform: rotate(45deg);
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(-30px, -10px) rotate(270deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    display: block;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: white;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: top 0.5s ease;
    z-index: -1;
}

.feature-card:hover::before {
    top: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    background: white;
    color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.6s ease;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card p {
    transition: color 0.3s ease;
}

/* Services Grid */
.services-list {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.service-card span {
    font-weight: bold;
    color: var(--primary-color);
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
}

.service-card:hover .icon {
    color: var(--primary-color);
}

/* Testimonials Carousel */
.testimonials {
    padding: 5rem 2rem;
    background: white;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-carousel {
    overflow: hidden;
    position: relative;
    height: 300px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
}

.testimonial-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -20px;
    left: 30px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    font-size: 1.1rem;
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.5);
}

/* Contact Styles */
.contact-container {
    max-width: 1200px;
    margin: -50px auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

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

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: rotate(360deg) scale(1.1);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-color);
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(151, 188, 98, 0.1);
    transform: translateY(-2px);
}

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

.form-group.floating-label {
    position: relative;
    margin-top: 2rem;
}

.form-group.floating-label label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.map-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.address-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.address-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.address-item span {
    margin-right: 1rem;
    color: var(--secondary-color);
}

/* Booking Widget */
.booking-widget {
    max-width: 1200px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.booking-widget iframe {
    border: none;
    min-height: 800px;
}

.hours-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* Quick Actions */
.quick-actions {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-btn {
    padding: 2rem;
    background: linear-gradient(135deg, white, #f8f9fa);
    border: 2px solid transparent;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.5s ease;
    z-index: -1;
}

.action-btn:hover::before {
    left: 0;
}

.action-btn:hover {
    color: white;
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.action-text {
    font-weight: bold;
}

/* Instagram Feed */
.instagram-feed {
    padding: 4rem 2rem;
    background: var(--bg-color);
    text-align: center;
}

.instagram-feed h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.instagram-feed p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.instagram-frame {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-frame:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.instagram-frame iframe {
    width: 100%;
    height: 500px;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Animated Background Pattern */
.pattern-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
    animation: patternMove 10s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(70px, 70px); }
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #7fa650);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease;
    z-index: 1001;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message.show {
    display: block;
}

#successMessage {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) rotate(360deg);
}

/* Instagram icon styling */
.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    filter: brightness(1.1);
}

/* SVG icon styling */
.social-link svg {
    transition: all 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* PITKIEN TEKSTIEN RIVITYS - KORJAA SÄHKÖPOSTIOSOITTEET */
.contact-card a,
.footer-section a,
.address-item,
.contact-card p {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Erityisesti sähköpostiosoitteet */
a[href^="mailto:"],
a[href^="tel:"] {
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

/* Footer yhteystiedot */
.footer-section p {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Contact cards responsive */
.contact-card {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-card p,
.contact-card a {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* RESPONSIVE DESIGN - MOBILE OPTIMIZED */
@media (max-width: 768px) {
    /* Header Mobile */
    .menu-toggle {
        display: block;
    }
    
    /* PITKIEN TEKSTIEN PAKOTUS MOBIILISSA */
    .contact-card,
    .footer-section {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .contact-card a,
    .footer-section a,
    .contact-card p,
    .footer-section p {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        max-width: 100% !important;
        display: inline-block;
        line-height: 1.3;
    }
    
    /* Sähköpostiosoitteet erityiskäsittely mobiilissa */
    a[href^="mailto:"] {
        font-size: 0.9rem !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }
    
    /* Menu-toggle väri scrolled tilassa */
    header.scrolled .menu-toggle span {
        background: white;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white !important;
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    /* KRIITTINEN KORJAUS: Mobiilivalikon tekstivärit */
    nav a,
    header.scrolled nav a:not(.active) {
        color: var(--text-color) !important;
        background: none !important;
        transform: none !important;
    }

    nav a.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
        color: white !important;
    }

    nav a:hover {
        background: var(--secondary-color) !important;
        color: white !important;
        transform: none !important;
    }

    /* Hero responsive */
    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        line-height: 1.2;
        word-break: break-word;
    }

    .page-hero h1 {
        font-size: clamp(1.3rem, 4vw, 2rem);
        line-height: 1.2;
    }

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

    /* CTA Container mobiilissa - lisää tilaa */
    .cta-container {
        margin-bottom: 5rem !important; /* Enemmän tilaa mobiilissa */
        flex-direction: column;
        align-items: center;
    }

    /* Scroll indicator mobiilissa alemmas */
    .scroll-indicator {
        bottom: 20px !important;
    }

    /* iOS Safari fixes */
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* Container fixes */
    .hero-content,
    .contact-container,
    .contact-main,
    .features-container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    /* Grid fixes */
    .contact-main,
    .service-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid,
    .services-grid,
    .contact-cards,
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Form fixes */
    .form-group input,
    .form-group textarea,
    .form-group select {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
    }

    /* Header kompakti */
    .header-content {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Cursor piilotus */
    .cursor,
    .cursor-follower {
        display: none !important;
    }

    /* Testimonial carousel fix */
    .testimonial-carousel {
        height: auto;
        min-height: 300px;
    }

    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

/* Erittäin pienet näytöt */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .page-hero h1 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Suuremmat painikkeet touch-laitteille */
    .cta-button,
    .submit-btn,
    .carousel-btn,
    .action-btn {
        min-height: 44px;
        padding: 1rem 2rem;
    }
    
    /* Poista hover-efektit touch-laitteilla */
    .feature-card:hover,
    .contact-card:hover,
    .service-card:hover {
        transform: none;
    }

    /* Touch-friendly navigation */
    nav a {
        padding: 1rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #245230;
    --primary-hover: #1e4220;
    --secondary-color: #36854b;
    --accent-color: #9c2727;
    --bg-color: #f8f9fa;
    --text-color: #9c2727;
    --light-text: #6c757d;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cursor Effects */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(151, 188, 98, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    transition: transform 0.3s ease;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(44, 95, 45, 0.95);
}

header.scrolled .logo,
header.scrolled nav a:not(.active) {
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

nav a:hover::before {
    width: 100px;
    height: 100px;
}

nav a:hover {
    color: white;
    transform: translateY(-2px);
}

nav a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><pattern id="p" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23fff" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="%232c5f2d"/><rect width="100%" height="100%" fill="url(%23p)"/></svg>');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    animation: heroFadeIn 1s ease forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: heroFadeIn 1s ease 0.6s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 300%;
    background: var(--secondary-color);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.6s ease;
    z-index: -1;
}

.cta-button:hover::before {
    width: 300%;
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Page Hero */
.page-hero {
    margin-top: 70px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Floating Elements */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    transform: rotate(45deg);
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(-30px, -10px) rotate(270deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    display: block;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: white;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: top 0.5s ease;
    z-index: -1;
}

.feature-card:hover::before {
    top: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    background: white;
    color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.6s ease;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card p {
    transition: color 0.3s ease;
}

/* Services Grid */
.services-list {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.service-card span {
    font-weight: bold;
    color: var(--primary-color);
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
}

.service-card:hover .icon {
    color: var(--primary-color);
}

/* Testimonials Carousel */
.testimonials {
    padding: 5rem 2rem;
    background: white;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-carousel {
    overflow: hidden;
    position: relative;
    height: 300px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
}

.testimonial-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -20px;
    left: 30px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    font-size: 1.1rem;
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.5);
}

/* Contact Styles */
.contact-container {
    max-width: 1200px;
    margin: -50px auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

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

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: rotate(360deg) scale(1.1);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-color);
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(151, 188, 98, 0.1);
    transform: translateY(-2px);
}

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

.form-group.floating-label {
    position: relative;
    margin-top: 2rem;
}

.form-group.floating-label label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.map-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.address-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.address-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.address-item span {
    margin-right: 1rem;
    color: var(--secondary-color);
}

/* Booking Widget */
.booking-widget {
    max-width: 1200px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.booking-widget iframe {
    border: none;
    min-height: 800px;
}

.hours-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* Quick Actions */
.quick-actions {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-btn {
    padding: 2rem;
    background: linear-gradient(135deg, white, #f8f9fa);
    border: 2px solid transparent;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.5s ease;
    z-index: -1;
}

.action-btn:hover::before {
    left: 0;
}

.action-btn:hover {
    color: white;
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.action-text {
    font-weight: bold;
}

/* Instagram Feed */
.instagram-feed {
    padding: 4rem 2rem;
    background: var(--bg-color);
    text-align: center;
}

.instagram-feed h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.instagram-feed p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.instagram-frame {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-frame:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.instagram-frame iframe {
    width: 100%;
    height: 500px;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Animated Background Pattern */
.pattern-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
    animation: patternMove 10s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(70px, 70px); }
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #7fa650);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease;
    z-index: 1001;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message.show {
    display: block;
}

#successMessage {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) rotate(360deg);
}

/* Instagram icon styling */
.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    filter: brightness(1.1);
}

/* SVG icon styling */
.social-link svg {
    transition: all 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* PITKIEN TEKSTIEN RIVITYS - KORJAA SÄHKÖPOSTIOSOITTEET */
.contact-card a,
.footer-section a,
.address-item,
.contact-card p {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Erityisesti sähköpostiosoitteet */
a[href^="mailto:"],
a[href^="tel:"] {
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

/* Footer yhteystiedot */
.footer-section p {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Contact cards responsive */
.contact-card {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-card p,
.contact-card a {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* RESPONSIVE DESIGN - MOBILE OPTIMIZED */
@media (max-width: 768px) {
    /* Header Mobile */
    .menu-toggle {
        display: block;
    }
    
    /* PITKIEN TEKSTIEN PAKOTUS MOBIILISSA */
    .contact-card,
    .footer-section {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .contact-card a,
    .footer-section a,
    .contact-card p,
    .footer-section p {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        max-width: 100% !important;
        display: inline-block;
        line-height: 1.3;
    }
    
    /* Sähköpostiosoitteet erityiskäsittely mobiilissa */
    a[href^="mailto:"] {
        font-size: 0.9rem !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }
    
    /* Menu-toggle väri scrolled tilassa */
    header.scrolled .menu-toggle span {
        background: white;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white !important;
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    /* KRIITTINEN KORJAUS: Mobiilivalikon tekstivärit */
    nav a,
    header.scrolled nav a:not(.active) {
        color: var(--text-color) !important;
        background: none !important;
        transform: none !important;
    }

    nav a.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
        color: white !important;
    }

    nav a:hover {
        background: var(--secondary-color) !important;
        color: white !important;
        transform: none !important;
    }

    /* Hero responsive */
    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        line-height: 1.2;
        word-break: break-word;
    }

    .page-hero h1 {
        font-size: clamp(1.3rem, 4vw, 2rem);
        line-height: 1.2;
    }

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

    /* CTA Container mobiilissa - lisää tilaa */
    .cta-container {
        margin-bottom: 5rem !important; /* Enemmän tilaa mobiilissa */
        flex-direction: column;
        align-items: center;
    }

    /* Scroll indicator mobiilissa alemmas */
    .scroll-indicator {
        bottom: 20px !important;
    }

    /* iOS Safari fixes */
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* Container fixes */
    .hero-content,
    .contact-container,
    .contact-main,
    .features-container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    /* Grid fixes */
    .contact-main,
    .service-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid,
    .services-grid,
    .contact-cards,
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Form fixes */
    .form-group input,
    .form-group textarea,
    .form-group select {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
    }

    /* Header kompakti */
    .header-content {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Cursor piilotus */
    .cursor,
    .cursor-follower {
        display: none !important;
    }

    /* Testimonial carousel fix */
    .testimonial-carousel {
        height: auto;
        min-height: 300px;
    }

    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

/* Erittäin pienet näytöt */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .page-hero h1 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Suuremmat painikkeet touch-laitteille */
    .cta-button,
    .submit-btn,
    .carousel-btn,
    .action-btn {
        min-height: 44px;
        padding: 1rem 2rem;
    }
    
    /* Poista hover-efektit touch-laitteilla */
    .feature-card:hover,
    .contact-card:hover,
    .service-card:hover {
        transform: none;
    }

    /* Touch-friendly navigation */
    nav a {
        padding: 1rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
/* copy- & disingrights @ Pirkanmaan Tietokoneklinikka/ Kai Räihä 2025 */