/* Custom CSS for Carbon County Hackathon */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    opacity: 0;
}

.nav-link:hover::after {
    opacity: 1;
}

/* Hamburger menu icon styling */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Ensure navbar text is always visible */
.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color) !important;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Add padding to account for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.8), rgba(13, 202, 240, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

/* Removed animations for better readability */


/* Card Styles */
.announcement-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.announcement-card:hover {
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 2rem;
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
}

.feature-item:hover {
    background: var(--light-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* About Section */
.about-image {
    position: relative;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
}

.floating-1 {
    top: 20%;
    left: -10%;
}

.floating-2 {
    top: 60%;
    right: -10%;
}

.floating-3 {
    bottom: 20%;
    left: 10%;
}


/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content h6 {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-info {
    padding: 2rem;
    border-radius: 15px;
}

.contact-info:hover {
    background: var(--light-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.social-links a {
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Button Styles */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    filter: brightness(1.05);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
        padding-top: 70px; /* Adjust padding for mobile navbar */
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .floating-element {
        display: none;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding-top: 60px; /* Adjust padding for smaller mobile screens */
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.border-radius-lg {
    border-radius: 15px;
}

/* Clean loading state */
.loading {
    opacity: 1;
}

/* Hover Effects */
.hover-lift {
    cursor: pointer;
}

.hover-lift:hover {
    box-shadow: var(--shadow-hover);
}

/* 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: #0a58ca;
}