/*
Theme Name: Dimensional Relativity
Description: A modern, scientific WordPress child theme of Twenty Twenty-Four designed for theoretical physics and dimensional research websites. Features cosmic gradients, mathematical elements, and responsive design optimized for academic content.
Version: 1.0
Author: Your Name
Template: twentytwentyfour
Text Domain: dimensional-relativity-child
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

.site-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #4a90e2;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a90e2;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "∞";
    margin-right: 10px;
    font-size: 2rem;
    color: #e74c3c;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: #4a90e2;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4a90e2;
    transition: width 0.3s ease;
}

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

.hero-section {
    margin-top: 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button .wp-block-button__link {
    display: inline-block;
    background: linear-gradient(45deg, #4a90e2, #e74c3c);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.cta-button .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(231, 76, 60, 0.1) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #4a90e2, #e74c3c);
    border-radius: 2px;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.section-content p {
    margin-bottom: 1.5rem;
}

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

.theory-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.card-content {
    line-height: 1.6;
}

.sidebar {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 0.5rem;
}

.site-footer {
    background: rgba(0, 0, 0, 0.9);
    color: #ccc;
    text-align: center;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.equation-display {
    background: #f8f9fa;
    border: 2px solid #4a90e2;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .content-section {
        padding: 2rem;
    }

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