:root {
    --primary: #1abc9c;
    --secondary: #16a085;
    --accent: #a2d9ce;
    --light: #e8f6f3;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth parallax scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: var(--light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(232, 246, 243, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.3);
}

/* Hero Section - Split vertical */
.hero {
    background: linear-gradient(135deg, var(--light) 0%, var(--accent) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="%231abc9c" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="%2316a085" opacity="0.1"/><circle cx="50" cy="10" r="0.8" fill="%23a2d9ce" opacity="0.15"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.cta-button {
    background: var(--primary);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(26, 188, 156, 0.4);
    background: var(--secondary);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Metro UI Grid Layout */
.metro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.metro-tile {
    background: var(--text-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.metro-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.metro-tile.large {
    grid-column: span 2;
}

.metro-tile.tall {
    grid-row: span 2;
}

.tile-content {
    padding: 2rem;
}

.tile-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tile-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tile-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.section-bg-primary {
    background: var(--light);
}

.section-bg-white {
    background: var(--text-light);
}

.section-bg-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--light) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--text-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--text-light);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .metro-tile.large {
        grid-column: span 1;
    }
    
    .metro-grid {
        grid-template-columns: 1fr;
    }
}

/* Parallax effect */
.parallax-element {
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

/* WordPress specific styles */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-item {
    background: var(--text-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-item h3 {
    font-size: 1.5rem;
    margin: 1.5rem 1.5rem 1rem;
    line-height: 1.4;
}

.post-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item h3 a:hover {
    color: var(--primary);
}

.post-item p {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-dark);
    opacity: 0.8;
    flex: 1;
}

.post-item > a:last-of-type {
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    margin: 0 1.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.post-item > a:last-of-type:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 3rem 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    background: var(--text-light);
    color: var(--text-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: var(--primary);
    color: var(--text-light);
}

.page-numbers:hover:not(.current) {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.2);
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 7rem auto 0;
    padding: 1rem 2rem;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

.breadcrumbs span {
    color: var(--text-dark);
    opacity: 0.7;
    margin: 0 0.5rem;
}

/* Single post and page content */
.page-content {
    max-width: 800px;
    margin: 2rem auto 5rem;
    padding: 2rem;
    background: var(--text-light);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-content .content {
    color: var(--text-dark);
    line-height: 1.8;
}

.page-content .content p {
    margin-bottom: 1.5rem;
}

.page-content .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 5rem 2rem;
}

.error-page h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Homepage Styles */
.homepage {
    margin-top: 80px;
}

/* Hero Section for Homepage */
.hero-section {
    background: linear-gradient(135deg, var(--light) 0%, var(--accent) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="%231abc9c" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="%2316a085" opacity="0.1"/><circle cx="50" cy="10" r="0.8" fill="%23a2d9ce" opacity="0.15"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-section .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-section .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-section .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

.hero-section .hero-image {
    position: relative;
}

.hero-section .hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-section .hero-image:hover img {
    transform: scale(1.02);
}

/* Random Posts Section */
.random-posts {
    padding: 5rem 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-grid .post-item {
    background: var(--text-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-grid .post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.post-grid .post-featured-image {
    position: relative;
    overflow: hidden;
}

.post-grid .post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-grid .post-item:hover .post-featured-image img {
    transform: scale(1.05);
}

.post-grid .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-grid .post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
}

.post-grid .post-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-grid .post-content h3 a:hover {
    color: var(--primary);
}

.post-grid .post-content p {
    color: var(--text-dark);
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
}

/* Blog Link Section */
.blog-link-section {
    text-align: center;
    margin-top: 3rem;
}

.blog-link-button {
    background: var(--primary);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.blog-link-button:hover::before {
    left: 100%;
}

.blog-link-button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(26, 188, 156, 0.4);
}

/* Footer menu styles */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-menu a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Responsive styles for homepage */
@media (max-width: 768px) {
    .hero-section .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-section .hero-image img {
        height: 300px;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .post-grid .post-featured-image img {
        height: 180px;
    }
}

/* Additional responsive styles */
@media (max-width: 480px) {
    .breadcrumbs {
        padding: 0.75rem 1rem;
        margin-top: 5rem;
    }
    
    .page-content {
        padding: 1.5rem;
        margin: 1.5rem auto 3rem;
    }
    
    .post-item h3 {
        font-size: 1.25rem;
        margin: 1rem 1rem 0.75rem;
    }
    
    .post-item p {
        margin: 0 1rem 1rem;
    }
    
    .post-item > a:last-of-type {
        margin: 0 1rem 1rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .hero-container {
        padding: 0 1rem;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-link-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}