body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #3de1f6;
    color: #333;
    overflow-x: hidden;
}

/* Bootstrap Navbar Styling for Wonder Widget Theme */
.navbar {
    z-index: 1050 !important;
    position: relative !important;
    background: linear-gradient(135deg, #00bcd4, #3de1f6) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover {
    color: #000 !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #000 !important;
}

.navbar-nav .nav-link.active {
    color: #000 !important;
}

.navbar-collapse {
    z-index: 1051 !important;
}

.main-content {
    padding-top: 60px;
    padding-bottom: 100px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 60px 0;
    background-image: url('../images/WonderWidgetHeader.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.header h1 {
    font-size: 60px;
    margin-bottom: 10px;
    color: #000000;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    line-height: 1.1;
}

.header p {
    font-size: 22px;
    color: #e0e0e0;
    margin-bottom: 0;
}

.tagline {
    color: #000000 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.filters {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-item {
    padding: 8px 15px;
    background-color: rgba(255, 105, 180, 0.8);
    border-radius: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.see-project-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 12px 25px;
    background-color: #00bcd4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.see-project-link:hover {
    background-color: #0097a7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.08);
}

footer {
    background-color: #212529;
    color: white;
    padding: 20px;
    width: 100%;
    margin: 0;
    position: fixed;
    bottom: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* RESPONSIVE DESIGN */

/* Large screens (1200px+) */
@media screen and (min-width: 1200px) {
    .container {
        padding: 40px;
    }
    
    .header {
        padding: 80px 0;
        border-radius: 20px;
    }
    
    .header h1 {
        font-size: 70px;
    }
    
    .header p {
        font-size: 26px;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .filter-item {
        font-size: 20px;
        padding: 10px 18px;
    }
    
    .see-project-link {
        font-size: 20px;
        padding: 15px 30px;
    }
}

/* Tablets (768px to 1199px) */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    .main-content {
        padding-top: 50px;
        padding-bottom: 90px;
    }
    
    .container {
        padding: 20px;
    }
    
    .header {
        padding: 50px 20px;
        border-radius: 12px;
    }
    
    .header h1 {
        font-size: 50px;
    }
    
    .header p {
        font-size: 20px;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filters {
        bottom: 15px;
        left: 15px;
        gap: 8px;
    }
    
    .filter-item {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .see-project-link {
        bottom: 15px;
        right: 15px;
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Large phones/small tablets (481px to 767px) */
@media screen and (max-width: 767px) and (min-width: 481px) {
    .main-content {
        padding-top: 20px;
        padding-bottom: 80px;
    }
    
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 40px 15px;
        border-radius: 10px;
        margin-bottom: 20px;
        position: relative;
    }
    
    .header h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .header p {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .filters {
        position: static;
        justify-content: center;
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .filter-item {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .see-project-link {
        position: static;
        display: block;
        text-align: center;
        margin: 0 auto;
        max-width: 200px;
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .project-item {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .main-content {
        padding-top: 15px;
        padding-bottom: 70px;
    }
    
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 30px 10px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 28px;
        margin-bottom: 10px;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
    
    .header p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .filters {
        position: static;
        justify-content: center;
        margin-bottom: 12px;
        gap: 6px;
    }
    
    .filter-item {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .see-project-link {
        position: static;
        display: block;
        text-align: center;
        margin: 0 auto;
        max-width: 180px;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }
    
    .project-item {
        border-radius: 8px;
    }
    
    footer {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Extra small screens (360px and below) */
@media screen and (max-width: 360px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 25px 8px;
        border-radius: 6px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .filter-item {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .see-project-link {
        font-size: 13px;
        padding: 8px 12px;
        max-width: 160px;
    }
    
    .project-grid {
        gap: 10px;
        margin-top: 12px;
    }
    
    .project-item {
        border-radius: 6px;
    }
    
    footer {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 32px;
        margin-bottom: 5px;
    }
    
    .header p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .filters {
        margin-bottom: 8px;
    }
    
    .see-project-link {
        margin-top: 8px;
    }
    
    .main-content {
        padding-bottom: 50px;
    }
}

/* High DPI display adjustments */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .project-item {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    }
    
    .project-item:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    }
    
    .filter-item {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    }
}