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

:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #1a252f;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--dark);
}

/* Navigation */
header {
    background: var(--primary);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Main content */
main {
    padding-top: 70px;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Hero */
#hero {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    min-height: 60vh;
    padding-top: 10vh;
    background: linear-gradient(135deg, var(--light) 0%, white 100%);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cross {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(74, 55, 40, 0.3));
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s;
}

.cta-btn:hover {
    background: var(--primary);
}

/* Image placeholders */
.image-placeholder {
    background: var(--light);
    border: 2px dashed var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    min-height: 300px;
    font-style: italic;
}

.image-placeholder.small {
    min-height: 80px;
    width: 80px;
    margin: 0 auto 1rem;
}

/* About */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-image {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
}

.about-image img {
    display: block;
    width: 300px;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

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

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

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--light);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    color: var(--accent);
    transition: color 0.3s, transform 0.3s;
}

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

/* Demo Sites */
.section-subtitle {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 2rem;
}

/* Color Slider */
.color-slider-container {
    text-align: center;
    margin-bottom: 2rem;
}

.color-slider-container label {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-style: italic;
}

#hue-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 400px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right,
        hsl(0, 70%, 50%),
        hsl(60, 70%, 50%),
        hsl(120, 70%, 50%),
        hsl(180, 70%, 50%),
        hsl(240, 70%, 50%),
        hsl(300, 70%, 50%),
        hsl(360, 70%, 50%)
    );
    outline: none;
    cursor: pointer;
}

#hue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
}

#hue-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
}

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

.portfolio-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item h3 {
    margin-top: 1rem;
    color: var(--primary);
}

.demo-link {
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
}

.demo-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.demo-description {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.demo-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.classic-preview {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #8B4513 100%);
    font-family: Georgia, serif;
}

.modern-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Helvetica Neue', sans-serif;
}

.community-preview {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    font-family: 'Segoe UI', sans-serif;
}

/* Rates */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 60rem;
}

.rate-card {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border: 2px solid transparent;
}

.rate-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

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

.price {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.rate-card ul {
    list-style: none;
    text-align: left;
}

.rate-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.rate-card li.included::before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
}

.rate-card li.not-included::before {
    content: "✗ ";
    color: #e74c3c;
    font-weight: bold;
}

.rate-card li.not-included {
    color: #999;
}

/* Contact */
#contact {
    text-align: center;
}

.contact-info-centered {
    text-align: center;
    margin: 0 auto;
}

.contact-info-centered p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-info-centered a {
    color: var(--accent);
    text-decoration: none;
}

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

.contact-note {
    font-size: 0.95rem;
    color: #777;
    font-style: italic;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1rem;
    }

    #hero {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .about-image img {
        width: 100%;
        max-width: 350px;
        height: 320px;
        margin: 0 auto;
    }


    .rate-card.featured {
        transform: none;
    }
}
