/* Import fonts */
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

/* Universal styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #ee0808;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Header and Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-family: 'ICA Rubrik', sans-serif;
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #49fcd4;
}

/* Banner section with 3D slider */
.banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
    /* Hero gradient restored to match your original design */
    background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top center;
}

.banner .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
}

@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }
    to {
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .slider .item {
    position: absolute;
    inset: 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(550px);
}

.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.banner .content .main-title {
    font-family: 'ICA Rubrik', sans-serif;
    font-size: 12em;
    line-height: 1em;
    color: #25283B;
    position: relative;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}

.banner .content .author {
    font-family: 'Poppins', sans-serif;
    text-align: right;
    max-width: 200px;
    color: cornflowerblue;
    font-size: 20px;
}

.banner .content h2 {
    font-size: 3em;
    color: #fff;
}

/* ------------------------------------ */
/* NEW STYLES FOR CONTENT SECTIONS */
/* ------------------------------------ */

.page-section {
    padding: 6rem 2rem;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-container {
    max-width: 960px;
    margin: 0 auto;
}

.page-section h2 {
    font-family: 'ICA Rubrik', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #49fcd4;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.page-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: #ccc;
}

/* Gradient Backgrounds */
#about {
    background-image: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

#work {
    background-image: linear-gradient(135deg, #2a5298 0%, #4474b5 100%);
}

#contact {
    background-image: linear-gradient(135deg, #4474b5 0%, #639cd9 100%);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.portfolio-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #49fcd4;
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    font-size: 1rem;
    color: #ccc;
    margin: 0;
}

/* Contact Form */
#contact form {
    max-width: 500px;
    margin: 3rem auto 0;
}

#contact form input,
#contact form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px #49fcd4;
}

#contact form input::placeholder,
#contact form textarea::placeholder {
    color: #ccc;
}

.cta-button {
    background-color: #49fcd4;
    color: #25283B;
    font-family: 'ICA Rubrik', sans-serif;
    font-size: 1.2rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive styles */
@media screen and (max-width: 1023px) {
    .banner .slider {
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }
    .banner .slider .item {
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(300px);
    }
    .banner .content .main-title {
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }
    .banner .content .author {
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
    .main-header {
        flex-direction: column;
        padding: 1rem;
    }
    .main-nav {
        margin-top: 1rem;
        gap: 1rem;
    }
}

@media screen and (max-width: 767px) {
    .banner .slider {
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }
    .banner .slider .item {
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(180px);
    }
    .banner .content .main-title {
        font-size: 5em;
    }
    .logo {
        text-align: center;
    }
    .music-controls {
        margin-top: 1rem;
    }
}