/* Custom styles for Bootstrap 5 project */
body {
    background: url('../img/background.jpg') center/cover no-repeat fixed #000000;
    margin: 0;
}

h1,
h2,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    letter-spacing: -0.05em;
}

/* Force particles background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    /* Behind everything */
    background-color: transparent;
    /* Fallback/Base color */
    background-image: url('');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

/* Background Slider */
.cb-slideshow,
.cb-slideshow:after {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: -2;
    /* Behind particles (-1) */
}

.cb-slideshow li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
    -webkit-backface-visibility: hidden;
    animation: imageAnimation 72s linear infinite 0s;
}

.cb-slideshow li:nth-child(1) {
    background-image: url(../img/letter_bg_01.jpg)
}

.cb-slideshow li:nth-child(2) {
    background-image: url(../img/letter_bg_02.jpg);
    animation-delay: 12s;
}

.cb-slideshow li:nth-child(3) {
    background-image: url(../img/letter_bg_03.jpg);
    animation-delay: 24s;
}

.cb-slideshow li:nth-child(4) {
    background-image: url(../img/letter_bg_04.jpg);
    animation-delay: 36s;
}

.cb-slideshow li:nth-child(5) {
    background-image: url(../img/letter_bg_05.jpg);
    animation-delay: 48s;
}

.cb-slideshow li:nth-child(6) {
    background-image: url(../img/letter_bg_06.jpg);
    animation-delay: 60s;
}

@keyframes imageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }

    8% {
        opacity: 1;
        transform: scale(1.15);
        animation-timing-function: ease-out;
    }

    17% {
        opacity: 1;
        transform: scale(1.20);
    }

    25% {
        opacity: 0;
        transform: scale(1.40);
    }

    100% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

/* Fix interactions */
header {
    pointer-events: none;
}

header * {
    pointer-events: auto;
}

/* Navbar Transition */
.navbar {
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Adjust scroll position for fixed navbar */
#welcome,
#products {
    scroll-margin-top: 100px;
}

/* Video Footer */
.lineBlack {
    background-color: #000;
    color: #fff;
    padding: 200px 0;
    position: relative;
    z-index: 100;
    overflow: hidden;
}

.footer-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
}

.lineBlack .container-fluid {
    position: relative;
    z-index: 2;
}

.lineBlack p {
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}

#downMenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#downMenu li {
    display: inline-block;
    margin-left: 20px;
}

#downMenu li a {
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#downMenu li a:hover {
    opacity: 0.8;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Global Button Styles */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
}

/* Global Button Styles */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
}

/* Card Button Styles */
.card .btn {
    padding: 5px 20px;
    font-size: 0.9rem;
}

/* Waves Animation */
.hero-waves {
    display: block;
    width: 100%;
    height: 60px;
    position: relative;
    margin-bottom: -1px;
    /* Prevent gap */
}

.wave1 use {
    animation: move-forever1 10s linear -2s infinite;
    fill: rgba(255, 255, 255, 0.7);
}

.wave2 use {
    animation: move-forever2 8s linear -2s infinite;
    fill: rgba(255, 255, 255, 0.5);
}

.wave3 use {
    animation: move-forever3 6s linear -2s infinite;
    fill: #ffffff;
}

.wave4 use {
    animation: move-forever1 12s linear -2s infinite;
    fill: rgba(255, 255, 255, 0.3);
}

.wave5 use {
    animation: move-forever2 5s linear -2s infinite;
    fill: rgba(255, 255, 255, 0.15);
}

@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

/* Impact Portfolio Styles */
.portfolio .portfolio-flters {
    padding: 0;
    margin: 0 auto 25px auto;
    list-style: none;
    text-align: center;
    border-radius: 50px;
}

.portfolio .portfolio-flters li {
    cursor: pointer;
    display: inline-block;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #444444;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-flters li:hover,
.portfolio .portfolio-flters li.active {
    color: #0d6efd;
    /* Blue */
    transform: scale(1.1);
    /* Slight zoom on hover */
}

/* Paper Boat Animation */
/* Paper Boat Animation */
.paper-boat {
    position: absolute;
    bottom: 0px;
    left: 20%;
    width: 135px;
    /* Increased to 135px */
    z-index: 10;
    animation: boatFloat 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes boatFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* Bird SVG Animation */
.color-loop-bird {
    animation: blackWhiteLoop 12s infinite alternate ease-in-out;
}

@keyframes blackWhiteLoop {
    0% {
        filter: invert(0);
    }
    100% {
        filter: invert(1);
    }
}

/* Hero App Links */
.hero-app-links {
    display: inline-flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: 110px;
    transform: scale(1.5);
    transform-origin: bottom center;
}

.hero-app-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

.hero-app-link img {
    filter: drop-shadow(0 0 6px rgba(255, 200, 50, 0.3));
    transition: transform 0.3s ease;
}

.hero-app-link:hover img {
    transform: scale(1.15);
}

.hero-app-link span {
    font-size: 11px;
    font-weight: 500;
}

.hero-app-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 24px;
    font-weight: 300;
    user-select: none;
    margin-bottom: 14px;
}

/* Vinyl Spin */
.vinyl-spin {
    transform-origin: 88.1px 90.2px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

#igla {
    transform-origin: 193.5px 33.5px;
    transform-box: view-box;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}

.hero-app-link:hover #igla {
    transform: rotate(30deg);
}

@keyframes vinylRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Main Logo Responsive Sizing */
.main-logo {
    height: 160px;
    width: auto;
}

@media (max-width: 767.98px) {
    .main-logo {
        height: auto;
        width: 85vw; /* Much wider on mobile */
        max-width: 400px;
        transform: scale(1.1); /* Slight bump up */
    }
}