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

:root {
    --primary-color: #1E40AF;
    --secondary-color: #0891B2;
    --accent-color: #0D9488;
    --success-color: #059669;
    --warning-color: #D97706;
    --text-color: #334155;
    --text-light: #64748B;
    --white: #ffffff;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --shadow-light: rgba(30, 64, 175, 0.08);
    --shadow-medium: rgba(30, 64, 175, 0.12);
    --shadow-heavy: rgba(30, 64, 175, 0.16);
    --gradient-primary: linear-gradient(135deg, #1E40AF, #0891B2);
    --gradient-secondary: linear-gradient(135deg, #0891B2, #0D9488);
    --gradient-accent: linear-gradient(135deg, #0D9488, #059669);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
}

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

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
}

.grid-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.well-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 20px;
    height: 20px;
}

.well {
    background: var(--white);
    border-radius: 50%;
    animation: wellPulse 2s ease-in-out infinite;
}

.well:nth-child(1) { animation-delay: 0s; }
.well:nth-child(2) { animation-delay: 0.2s; }
.well:nth-child(3) { animation-delay: 0.4s; }
.well:nth-child(4) { animation-delay: 0.6s; }

@keyframes wellPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--light-bg);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(8, 145, 178, 0.05) 0%, transparent 50%);
}

.hero-content {
    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: 1;
}

.hero-text {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.7s both;
}

.plate-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.plate-container {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.plate-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-medium);
}

.plate-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.well-plate {
    margin: 0 auto;
    border-radius: 8px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.well-plate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.well-plate-96 {
    width: 120px;
    height: 80px;
    background-image: 
        radial-gradient(circle at center, var(--primary-color) 1px, transparent 1px);
    background-size: 10px 6.67px;
    background-position: 5px 3.33px;
    animation: plateGlow 3s ease-in-out infinite;
}

.well-plate-384 {
    width: 120px;
    height: 80px;
    background-image: 
        radial-gradient(circle at center, var(--secondary-color) 0.5px, transparent 0.5px);
    background-size: 5px 3.33px;
    background-position: 2.5px 1.67px;
    animation: plateGlow 3s ease-in-out infinite 1.5s;
}

@keyframes plateGlow {
    0%, 100% { 
        box-shadow: 0 0 20px var(--shadow-light);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px var(--shadow-medium);
        transform: scale(1.02);
    }
}

/* Blog Section */
.blog-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.blog-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-light);
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    border: 1px solid var(--border-color);
}

.article-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: slideInFromTop 1s ease-out 0.3s both;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: slideInFromTop 1s ease-out 0.5s both;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: slideInFromBottom 1s ease-out 0.7s both;
    flex-wrap: wrap;
}

.article-content {
    padding: 3rem;
    line-height: 1.8;
    animation: fadeInContent 1.2s ease-out 0.5s both;
}

.intro-paragraph {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 12px 12px 0;
    position: relative;
    animation: slideInFromLeft 1s ease-out 0.7s both;
}

.intro-paragraph::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
}

.section-heading {
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    animation: slideInFromRight 0.8s ease-out both;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    animation: expandUnderline 1s ease-out 0.3s both;
}

@keyframes expandUnderline {
    from { width: 0; }
    to { width: 60px; }
}

.article-content p {
    text-align: justify;
    margin-bottom: 1.8rem;
    animation: fadeInUp 0.8s ease-out both;
}

.article-content a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-1px);
}

.article-content a::after {
    content: '→';
    font-size: 0.8em;
    margin-left: 0.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--primary-color);
}

.article-content a:hover::after {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out both;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon .well-grid {
    width: 16px;
    height: 16px;
}

.footer-icon .well {
    background: var(--white);
}

.footer-title,
.footer-heading {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 600;
}

.footer-title::after,
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    animation: expandFooterLine 1s ease-out 0.5s both;
}

@keyframes expandFooterLine {
    from { width: 0; }
    to { width: 40px; }
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.footer-link::before {
    content: '▸';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.footer-link:hover {
    color: var(--white);
    padding-left: 1.5rem;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.btn-footer {
    background: var(--white);
    color: var(--primary-color);
    margin-top: 1rem;
    font-weight: 600;
}

.btn-footer:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 2rem 0;
    animation: fadeIn 1s ease-out 1s both;
}

.footer-bottom {
    text-align: center;
    position: relative;
    z-index: 1;
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .plate-showcase {
        flex-direction: row;
        gap: 1rem;
    }
    
    .plate-container {
        padding: 1rem;
    }
    
    .well-plate-96,
    .well-plate-384 {
        width: 80px;
        height: 60px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 2rem;
    }
    
    .intro-paragraph {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .plate-showcase {
        flex-direction: column;
        gap: 1rem;
    }
    
    .well-plate-96,
    .well-plate-384 {
        width: 100px;
        height: 70px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .grid-background,
    .hero-visual {
        display: none;
    }
    
    .blog-article {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .article-header {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    * {
        animation: none !important;
    }
}

