/* Custom Font - Note This */
@font-face {
    font-family: 'Note This';
    src: url('/static/fonts/Note_this.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --fox-orange: #FF6B35;
    --fox-orange-dark: #E55A2A;
    --fox-orange-light: #FF8C5A;
    --fox-brown: #8B4513;
    --fox-cream: #F5DEB3;
    --fox-gray: #2C2C2C;
    --fox-light-gray: #4A4A4A;
    --white: #FFFFFF;
    --black: #000000;
}

/* Dark Theme (Default) */
:root {
    --bg-primary-start: #0a0805;
    --bg-primary-end: #100d09;
    --bg-header: rgba(10, 8, 5, 0.92);
    --bg-card: rgba(22, 18, 12, 0.88);
    --bg-footer: rgba(10, 8, 5, 0.95);
    --text-primary: #f0ebe3;
    --text-secondary: #c0b09a;
    --border-color: rgba(229, 90, 42, 0.2);
    --header-border: rgba(229, 90, 42, 0.15);
    --accent-primary: #FF6B35;
    --accent-secondary: #E55A2A;
    --overlay-1: rgba(255, 107, 53, 0.1);
    --overlay-2: rgba(255, 107, 53, 0.1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary-start: #f9f6f1;
    --bg-primary-end: #f2ece3;
    --bg-header: rgba(249, 246, 241, 0.95);
    --bg-card: #ffffff;
    --bg-footer: rgba(249, 246, 241, 0.95);
    --text-primary: #1a1510;
    --text-secondary: #5a5040;
    --border-color: #d4c9b8;
    --header-border: #d4c9b8;
    --accent-primary: #E55A2A;
    --accent-secondary: #f07040;
    --overlay-1: rgba(229, 90, 42, 0.08);
    --overlay-2: rgba(229, 90, 42, 0.08);
}

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

body {
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(160deg, var(--bg-primary-start) 0%, var(--bg-primary-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, var(--overlay-1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--overlay-2) 0%, transparent 20%);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 500;
    align-items: center;
    margin-top: 0.3rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.hero h1 {
    font-family: 'Note This', 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-primary);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(230, 90, 42, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 90, 42, 0.3);
}

/* Services Gallery */
.gallery-section {
    padding: 2rem 0 5rem 0;
}

.section-title {
    text-align: center;
    font-family: 'Note This', 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-primary);
}

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--accent-primary);
}

[data-theme="light"] .service-card:hover {
    border-color: #d9cfc0;
}

[data-theme="dark"] .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.card-thumbnail {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .card-thumbnail {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(230, 90, 42, 0.2);
}

.service-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.service-title {
    font-family: 'Note This', 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.service-tag {
    display: inline-block;
    background: rgba(230, 90, 42, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.learn-more:hover {
    gap: 0.8rem;
}

/* About Section */
.about-section {
    padding: 1rem 0;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-primary);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 2rem;
    }

    .logo span {
        font-size: 1.3rem;
    }

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-header);
        flex-direction: column;
        padding: 0.5rem;
        border-top: 1px solid var(--header-border);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .nav-links .theme-toggle {
        padding: 0.7rem;
        text-align: center;
        font-size: 0.95rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .footer .logo {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .card-header-row {
        flex-direction: column-reverse;
        align-items: center;
    }

    .card-thumbnail {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .blog-content h1 {
        font-size: 1.8rem;
    }

    .blog-content h2 {
        font-size: 1.4rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .blog-content img {
        margin: 1.5rem auto !important;
    }
}

@media (max-width: 400px) {
    .logo span {
        display: none;
    }
}

/* Animation for text elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Blog Post Content Styles */
.blog-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.blog-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.blog-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 2rem 0 1rem 0;
    color: var(--accent-secondary);
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.blog-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-content ul, .blog-content ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content code {
    background: rgba(230, 90, 42, 0.1);
    color: var(--accent-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.blog-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
}

.blog-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.blog-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

.blog-content a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.blog-content a:hover {
    border-bottom-color: var(--accent-primary);
}

.blog-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 2rem auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-color) !important;
}

article img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 2rem auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-color) !important;
}

/* Blog Index Styles */
.blog-index {
    padding: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(230, 90, 42, 0.15);
    border-color: var(--accent-primary);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.post-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h2 a:hover {
    color: var(--accent-primary);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

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

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-post {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-post:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    font-family: 'Note This', 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* Share Buttons */
.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.share-section h4 {
    font-family: 'Note This', 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-button.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.share-button.linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
    color: white;
}

.share-button.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

.share-button.copy:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-button {
        justify-content: center;
    }
}
