/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Blog post content styling */
.blog-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.blog-content p {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

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

/* Enhanced code blocks */
.blog-content pre {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #1f2937;
    background-color: #1e293b !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.blog-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
}

.blog-content :not(pre) > code {
    background-color: #f3f4f6;
    color: #1e40af;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.blog-content a {
    color: #1e40af;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #3b82f6;
}

.blog-content blockquote {
    padding-left: 1rem;
    border-left-width: 4px;
    border-left-color: #1e40af;
    font-style: italic;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    background-color: #f9fafb;
    padding-top: 0.5rem;
    padding-right: 1rem;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Table of Contents styling */
.toc {
    font-size: 0.875rem;
}

.toc nav {
    padding-left: 0;
}

.toc ul {
    padding-left: 1rem;
    list-style-type: none;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #374151;
    text-decoration: none;
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.toc a:hover {
    color: #1e40af;
}

/* Form styling */
input[type="text"],
input[type="email"],
textarea {
    border-color: #d1d5db;
    border-width: 1px;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #1e40af;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for multiple elements */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Responsive improvements */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Hero section overlay */
.hero-overlay {
    background-color: rgba(15, 23, 42, 0.7);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition-property: color, background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    font-weight: 500;
}

.btn-primary {
    background-color: #1e40af;
    color: white;
}

.btn-primary:hover {
    background-color: #3b82f6;
}

.btn-secondary {
    background-color: white;
    color: #1e40af;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* Image effects */
.img-hover {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.img-hover:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Table styling */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.blog-content table th {
    background-color: #f3f4f6;
    text-align: left;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
}

.blog-content table td {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
}

.blog-content table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Background canvas */
#background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
} 