/* Base styles - keep your existing animated background */
body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

.o {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: repeat-x;
}

.o1 {
    background: url(//image.ibb.co/nBJ818/bg.png);
    z-index: 1;
    background-size: cover;
}

.o2 {
    background: url(//image.ibb.co/czVo18/stars.png);
    z-index: 2;
    animation: 200s scroll infinite linear;
    opacity: 0.5;
}

.o3 {
    background: url(//image.ibb.co/g76HuT/nebula.png);
    z-index: 3;
    animation: 200s scroll2 infinite linear;
}

.o4 {
    background: url(//image.ibb.co/b8VcuT/clouds.png);
    z-index: 3;
    animation: 400s scroll infinite linear;
}

/* Animations */
@keyframes scroll {
    100% { background-position: -3000px 0px; }
}

@keyframes scroll2 {
    100% { background-position: 3000px 0px; }
}

/* Main content styling */
.main-content {
    padding-top: 80px;
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 60px 0;
    position: relative;
}

.header h1 {
    font-size: 60px;
    margin-bottom: 10px;
    color: #00e6ff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 30px rgba(0, 255, 255, 0.8);
    line-height: 1.1;
}

.header p {
    font-size: 24px;
    color: #aaa;
    margin-bottom: 30px;
}

.filters {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-item {
    padding: 8px 15px;
    background-color: rgba(0, 128, 255, 0.7);
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    white-space: nowrap;
}

.see-project-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 12px 25px;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 18px;
    font-weight: bold;
}

.see-project-link:hover {
    background-color: #1c6c9b;
}

.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);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

/* RESPONSIVE DESIGN */

/* Large screens (1200px+) */
@media screen and (min-width: 1200px) {
    .container {
        padding: 40px;
    }
    
    .header h1 {
        font-size: 70px;
    }
    
    .header p {
        font-size: 28px;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablets (768px to 1199px) */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    .o2 { animation: 250s scroll infinite linear; }
    .o3 { animation: 250s scroll2 infinite linear; }
    .o4 { animation: 500s scroll infinite linear; }
    
    @keyframes scroll {
        100% { background-position: -2000px 0px; }
    }
    
    @keyframes scroll2 {
        100% { background-position: 2000px 0px; }
    }
    
    .main-content {
        padding-top: 60px;
    }
    
    .container {
        padding: 20px;
    }
    
    .header {
        padding: 40px 0;
    }
    
    .header h1 {
        font-size: 50px;
    }
    
    .header p {
        font-size: 22px;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filters {
        bottom: 15px;
        left: 15px;
    }
    
    .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) {
    .o2 { animation: 300s scroll infinite linear; }
    .o3 { animation: 300s scroll2 infinite linear; }
    .o4 { animation: 600s scroll infinite linear; }
    
    @keyframes scroll {
        100% { background-position: -1500px 0px; }
    }
    
    @keyframes scroll2 {
        100% { background-position: 1500px 0px; }
    }
    
    .main-content {
        padding-top: 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 0;
        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: 20px;
        gap: 8px;
    }
    
    .filter-item {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .see-project-link {
        position: static;
        display: block;
        text-align: center;
        margin: 0 auto 30px;
        max-width: 200px;
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .o {
        background-size: auto 100%;
    }
    
    .o1 {
        background-size: cover;
    }
    
    .o2 { animation: 400s scroll infinite linear; }
    .o3 { animation: 400s scroll2 infinite linear; }
    .o4 { animation: 800s scroll infinite linear; }
    
    @keyframes scroll {
        100% { background-position: -800px 0px; }
    }
    
    @keyframes scroll2 {
        100% { background-position: 800px 0px; }
    }
    
    .main-content {
        padding-top: 15px;
    }
    
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .header h1 {
        font-size: 28px;
        margin-bottom: 10px;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 20px rgba(0, 255, 255, 0.8);
    }
    
    .header p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .filters {
        position: static;
        justify-content: center;
        margin-bottom: 15px;
        gap: 5px;
    }
    
    .filter-item {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .see-project-link {
        position: static;
        display: block;
        text-align: center;
        margin: 0 auto 25px;
        max-width: 180px;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .project-item {
        border-radius: 8px;
    }
}

/* Extra small screens (360px and below) */
@media screen and (max-width: 360px) {
    .o2 { animation: 500s scroll infinite linear; }
    .o3 { animation: 500s scroll2 infinite linear; }
    .o4 { animation: 1000s scroll infinite linear; }
    
    @keyframes scroll {
        100% { background-position: -600px 0px; }
    }
    
    @keyframes scroll2 {
        100% { background-position: 600px 0px; }
    }
    
    .container {
        padding: 8px;
    }
    
    .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;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 15px 0;
    }
    
    .header h1 {
        font-size: 32px;
        margin-bottom: 5px;
    }
    
    .header p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .filters {
        margin-bottom: 10px;
    }
    
    .see-project-link {
        margin-bottom: 15px;
    }
}