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

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-alt: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.theme-toggle:hover {
    background: var(--bg-alt);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-color) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
}

.hero-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
}

.service-card:nth-child(1) .service-image {
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=600&h=400&fit=crop');
}

.service-card:nth-child(2) .service-image {
    background-image: url('https://images.unsplash.com/photo-1533750349088-cd871a92f312?w=600&h=400&fit=crop');
}

.service-card:nth-child(3) .service-image {
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=600&h=400&fit=crop');
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
}

.service-link:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.testimonial-rating {
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
}

.testimonial-card:nth-child(1) .author-avatar {
    background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100&h=100&fit=crop');
}

.testimonial-card:nth-child(2) .author-avatar {
    background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop');
}

.testimonial-card:nth-child(3) .author-avatar {
    background-image: url('https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=100&h=100&fit=crop');
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Page Header */
.page-header {
    padding: 60px 0 40px;
    background: var(--bg-alt);
    text-align: center;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Portfolio */
.portfolio-filters {
    padding: 40px 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(1) .portfolio-image {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=600&h=400&fit=crop');
}

.portfolio-item:nth-child(2) .portfolio-image {
    background-image: url('https://images.unsplash.com/photo-1561070791-2526d30994b5?w=600&h=400&fit=crop');
}

.portfolio-item:nth-child(3) .portfolio-image {
    background-image: url('https://images.unsplash.com/photo-1551650975-87deedd944c3?w=600&h=400&fit=crop');
}

.portfolio-item:nth-child(4) .portfolio-image {
    background-image: url('https://images.unsplash.com/photo-1522542550221-31fd19575a2d?w=600&h=400&fit=crop');
}

.portfolio-item:nth-child(5) .portfolio-image {
    background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=600&h=400&fit=crop');
}

.portfolio-item:nth-child(6) .portfolio-image {
    background-image: url('https://images.unsplash.com/photo-1553877522-43269d4ea984?w=600&h=400&fit=crop');
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
}

.blog-card:nth-child(1) .blog-image {
    background-image: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=600&h=400&fit=crop');
}

.blog-card:nth-child(2) .blog-image {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=600&h=400&fit=crop');
}

.blog-card:nth-child(3) .blog-image {
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=600&h=400&fit=crop');
}

.blog-card:nth-child(4) .blog-image {
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=600&h=400&fit=crop');
}

.blog-card:nth-child(5) .blog-image {
    background-image: url('https://images.unsplash.com/photo-1432888622747-4eb9a8f2c293?w=600&h=400&fit=crop');
}

.blog-card:nth-child(6) .blog-image {
    background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=600&h=400&fit=crop');
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.blog-category {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-date {
    color: var(--text-light);
}

.blog-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Post */
.blog-post {
    padding-bottom: 80px;
}

.post-header {
    padding: 40px 0;
    background: var(--bg-alt);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    font-size: 14px;
}

.post-category {
    color: var(--primary-color);
    font-weight: 600;
}

.post-date,
.post-read-time {
    color: var(--text-light);
}

.post-header h1 {
    font-size: 42px;
    margin-top: 15px;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=1200&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    margin-bottom: 60px;
}

.post-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.post-body {
    max-width: 700px;
}

.post-body .lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.post-body h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.post-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-share {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-alt);
    border-radius: 12px;
}

.post-share h3 {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

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

.author-box {
    padding: 25px;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 30px;
}

.author-box .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=200&h=200&fit=crop');
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
}

.author-box h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.author-box h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.author-box p {
    color: var(--text-light);
    font-size: 14px;
}

.related-posts {
    padding: 25px;
    background: var(--bg-alt);
    border-radius: 12px;
}

.related-posts h3 {
    margin-bottom: 20px;
}

.related-post {
    margin-bottom: 20px;
}

.related-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-post:nth-child(1) .related-image {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=400&h=300&fit=crop');
}

.related-post:nth-child(2) .related-image {
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=400&h=300&fit=crop');
}

.related-post h4 {
    font-size: 16px;
}

.related-post a:hover {
    color: var(--primary-color);
}

/* About Page */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

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

.mv-card {
    padding: 40px;
    background: var(--bg-color);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.mv-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mv-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    margin: 0 auto 20px;
}

.team-member:nth-child(1) .member-image {
    background-image: url('https://images.unsplash.com/photo-1560250097-0b93528c311a?w=300&h=300&fit=crop');
}

.team-member:nth-child(2) .member-image {
    background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=300&h=300&fit=crop');
}

.team-member:nth-child(3) .member-image {
    background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=300&h=300&fit=crop');
}

.team-member:nth-child(4) .member-image {
    background-image: url('https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=300&h=300&fit=crop');
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.member-bio {
    color: var(--text-light);
    font-size: 14px;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 30px;
    bottom: -40px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

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

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 32px;
}

.info-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-light);
    font-size: 14px;
}

.map-placeholder {
    margin-top: 40px;
    padding: 60px 20px;
    background: var(--bg-alt);
    border-radius: 12px;
    text-align: center;
}

.map-placeholder p:first-child {
    font-size: 48px;
    margin-bottom: 10px;
}

.map-note {
    color: var(--text-light);
    font-size: 14px;
}

/* Project Detail */
.project-hero-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1200&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 60px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.project-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.project-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.results-list {
    list-style: none;
    margin-top: 20px;
}

.results-list li {
    padding: 10px 0;
    color: var(--text-light);
    font-size: 16px;
}

.project-meta {
    padding: 30px;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 30px;
}

.project-meta h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.meta-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-item strong {
    display: block;
    margin-bottom: 5px;
}

.meta-item span {
    color: var(--text-light);
}

.project-cta {
    padding: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    text-align: center;
}

.project-cta h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-cta p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-gallery h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.gallery-item:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1551650975-87deedd944c3?w=600&h=400&fit=crop');
}

.gallery-item:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1522542550221-31fd19575a2d?w=600&h=400&fit=crop');
}

.gallery-item:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=600&h=400&fit=crop');
}

.gallery-item:nth-child(4) {
    background-image: url('https://images.unsplash.com/photo-1553877522-43269d4ea984?w=600&h=400&fit=crop');
}

/* 404 Error Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.error-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container,
    .about-content-grid,
    .contact-grid,
    .project-info-grid {
        grid-template-columns: 1fr;
    }
    
    .post-content .container {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .portfolio-items,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Color Theme Switcher */
.color-theme-switcher {
    position: relative;
    margin-right: 10px;
}

.color-theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.color-theme-btn:hover {
    background: var(--bg-alt);
}

.color-theme-btn svg {
    width: 20px;
    height: 20px;
}

.color-theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.color-theme-dropdown.active {
    display: block;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-color);
}

.color-option:hover {
    background: var(--bg-alt);
}

.color-option.active {
    background: var(--primary-color);
    color: white;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
}

/* Color Theme Variations */
[data-color-theme="blue"] {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
}

[data-color-theme="purple"] {
    --primary-color: #7c3aed;
    --secondary-color: #a855f7;
}

[data-color-theme="green"] {
    --primary-color: #10b981;
    --secondary-color: #14b8a6;
}

[data-color-theme="orange"] {
    --primary-color: #f59e0b;
    --secondary-color: #f97316;
}

[data-color-theme="red"] {
    --primary-color: #ef4444;
    --secondary-color: #f43f5e;
}

[data-color-theme="teal"] {
    --primary-color: #14b8a6;
    --secondary-color: #06b6d4;
}

/* Dark mode color adjustments for themes */
[data-theme="dark"][data-color-theme="blue"] {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
}

[data-theme="dark"][data-color-theme="purple"] {
    --primary-color: #8b5cf6;
    --secondary-color: #a78bfa;
}

[data-theme="dark"][data-color-theme="green"] {
    --primary-color: #34d399;
    --secondary-color: #2dd4bf;
}

[data-theme="dark"][data-color-theme="orange"] {
    --primary-color: #fbbf24;
    --secondary-color: #fb923c;
}

[data-theme="dark"][data-color-theme="red"] {
    --primary-color: #f87171;
    --secondary-color: #fb7185;
}

[data-theme="dark"][data-color-theme="teal"] {
    --primary-color: #2dd4bf;
    --secondary-color: #22d3ee;
}

@media (max-width: 768px) {
    .color-theme-dropdown {
        right: auto;
        left: 0;
    }
}

/* Legal Pages (Privacy & Terms) */
.legal-content {
    padding: 60px 0;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-document h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.legal-document h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.legal-document p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.legal-document ul {
    margin: 20px 0;
    padding-left: 30px;
    list-style: disc;
}

.legal-document ul li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.legal-document strong {
    color: var(--text-color);
    font-weight: 600;
}

.legal-footer {
    margin-top: 60px;
    padding: 30px;
    background: var(--bg-alt);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.legal-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .legal-document h2 {
        font-size: 24px;
    }
    
    .legal-document h3 {
        font-size: 20px;
    }
}

/* Footer Visibility - Light Theme */
.footer-bottom p {
    color: rgba(255,255,255,0.9);
}

.footer-bottom a {
    color: rgba(255,255,255,0.9);
}

.footer-bottom a:hover {
    color: rgba(255,255,255,1);
}

/* Ensure footer text is always visible */
.footer {
    position: relative;
    z-index: 1;
}

.footer * {
    position: relative;
}
