/* Custom CSS for Energiefusion Website */

/* Root Variables */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #81C784;
    --accent-color: #FFC107;
    --dark-color: #2E7D32;
    --light-color: #E8F5E8;
    --text-color: #333;
    --text-muted: #666;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: 76px; /* Account for fixed navbar */
}

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

.display-4 {
    font-weight: 700;
}

.display-5 {
    font-weight: 600;
}

.text-primary {
    color: var(--primary-color) !important;
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-text {
    color: var(--primary-color);
}

.logo-img {
    width: 200px;
    height: 120px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.2rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

/* Mobile responsiveness for logo */
@media (max-width: 768px) {
    .logo-img {
        width: 150px;
        height: 90px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem !important;
    }
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--light-color);
}

/* Hero Sections */
.hero-section {
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(255, 255, 255, 0.9) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section.hero-waterfall {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../nature-hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 50vh;
    color: var(--white);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="nature" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="%234CAF50" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23nature)"/></svg>');
    z-index: -1;
}

.hero-section-small {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../about-hero-bg-new.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-section-small h1 {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section-small .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Quote Cards */
.quote-card {
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-left: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quote-card .card-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-card .blockquote {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0;
}

.quote-card .blockquote-footer {
    color: var(--primary-color);
    font-weight: 600;
}

/* Video Placeholders */
.video-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.video-placeholder i {
    margin-bottom: 1rem;
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Contact Form */
.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info .contact-item i {
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.contact-info h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Pricing */
.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Accordion */
.accordion-button {
    background-color: var(--light-color);
    color: var(--text-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Social Links */
.social-links a {
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: #2c3e50 !important;
    color: var(--white);
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

footer p {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

footer hr {
    border-color: #34495e;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 0.5rem;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-warning {
    background-color: var(--accent-color) !important;
    color: var(--text-color) !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Astronomy Image Styling */
.astronomy-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.astronomy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section.hero-waterfall {
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section-small {
        padding: 6rem 0 3rem;
    }
    
    .contact-info .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info .contact-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .social-links a {
        margin-bottom: 1rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Astronomy Gallery Styles */
.astronomy-image-container {
    display: block;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.astronomy-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
}

.moon-image {
    background: #000;
}

.moon-image .astronomy-image {
    object-fit: contain;
    width: 100%;
    height: 200px;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .social-links,
    .map-container {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section-small {
        background: none !important;
        color: var(--text-color) !important;
    }
}
