/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ===== GLOBAL STYLES ===== */
body {
    margin: 0px;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #06132F, #0A1F4D, #0E3B7D, #0C5FAF, #008FDB, #4BAAE8, #7FC9F5);
    background-attachment: fixed;
    background-size: 100% 200%;
    position: relative;
}

/* ===== LANDING PAGE ===== */
.app {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Logo and Title */
.logo-group {
    position: relative;
    width: max-content;
    height: max-content;
    background: rgba(174, 153, 153, 0);
    transform: translateY(-50px) scale(2.4);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    color: white;
    font-weight: bolder;
    font-size: 100px;
    font-family: "Roboto";
}

.circle {
    position: absolute;
    width: 142px;
    height: 142px;
    top: 40px;
    left: calc(50% - 27px);
    border-radius: 50%;
    background: #DB9B11;
    box-shadow: 
        0 4px 4px rgba(0, 0, 0, 0.25),
        inset 27px 31px 20px -7px rgba(255, 255, 255, 0.4);
    transform: scale(0.4);
    transform-origin: top left;
}

/* Typewriter Caption */
.caption {
    font-family: "Roboto";
    color: rgba(255, 255, 255, 0.7);
    font-size: 6px;
    margin-top: -14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: 8px;
    display: inline-block;
    white-space: nowrap;
}

.caption::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    margin-left: 1px;
    vertical-align: middle;
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-15px) rotate(45deg);
    }
    60% {
        transform: translateY(-7px) rotate(45deg);
    }
}

/* ===== BACKGROUND ELEMENTS ===== */
/* Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.star.small {
    width: 2px;
    height: 2px;
    opacity: 0.7;
}

.star.medium {
    width: 3px;
    height: 3px;
    opacity: 0.8;
}

.star.large {
    width: 4px;
    height: 4px;
    opacity: 0.9;
}

.star.extra-large {
    width: 5px;
    height: 5px;
    opacity: 1;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.7);
}

.star.blurry {
    filter: blur(1px);
}

.star.twinkle {
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Moons */
.moons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.moon {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

.moon.crescent {
    background-color: transparent;
    box-shadow: inset -5px 0px 0px 0px rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: rotate(var(--rotation, 45deg));
    position: relative;
}

.moon.crescent::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

.moon.small {
    width: 15px;
    height: 15px;
}

.moon.medium {
    width: 25px;
    height: 25px;
}

.moon.large {
    width: 40px;
    height: 40px;
}

.moon.glow {
    animation: moonGlow 8s infinite ease-in-out;
}

@keyframes moonGlow {
    0%, 100% { box-shadow: inset -5px 0px 0px 0px rgba(255, 255, 255, 0.8); }
    50% { box-shadow: inset -5px 0px 0px 0px rgba(255, 255, 255, 1), 0 0 10px 2px rgba(255, 255, 255, 0.4); }
}

/* ===== CONTENT PAGE ===== */
.second-page {
    min-height: 100vh;
    height: auto;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: rgba(2, 19, 36, 0.432);
    padding-bottom: 80px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-item.active {
    color: var(--active-color, #4BAAE8);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: calc(100% - 30px);
    height: 3px;
    background-color: var(--active-color, #4BAAE8);
}

/* Section Colors */
.nav-item[data-section="video"] { --active-color: #4BAAE8; }
.nav-item[data-section="development"] { --active-color: #6BBF59; }
.nav-item[data-section="audio"] { --active-color: #E67E22; }
.nav-item[data-section="art"] { --active-color: #9B59B6; }
.nav-item[data-section="writings"] { --active-color: #F1C40F; }
.nav-item[data-section="marketings"] { --active-color: #E74C3C; }
.nav-item[data-section="other"] { --active-color: #95A5A6; }

/* Portfolio Section */
.portfolio-section {
    flex-shrink: 0;
    position: relative;
    margin-bottom: 40px;
}

.portfolio-section h2 {
    margin-left: 30px;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 500;
}

/* Portfolio Item Styles */
.portfolio-item {
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 250px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.portfolio-item-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-item-content h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}

.portfolio-item-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
}

.portfolio-grid {
    display: flex;
    margin-bottom: 20px;
    justify-content: left;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-padding: 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: x mandatory; /* Enable snap scrolling */
}

.portfolio-grid::-webkit-scrollbar {
    display: none;
}

/* Portfolio scroll arrow */
.portfolio-scroll-arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    top: 220px; /* Position at the middle of portfolio items (relative to section) */
}

.portfolio-scroll-arrow.right {
    right: 15px;
}

.portfolio-scroll-arrow.left {
    left: 15px;
}

.portfolio-scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-scroll-arrow:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.portfolio-scroll-arrow.right::after {
    content: '';
    width: 10px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
    margin-left: -4px;
}

.portfolio-scroll-arrow.left::after {
    content: '';
    width: 10px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(135deg);
    margin-right: -4px;
}

/* Service Booking Section */
.services-section {
    display: flex;
    padding: 0 40px 40px;
    margin-bottom: 60px;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Service Preview Styles */
.service-preview {
    width: calc(500px * 16 / 9);
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.preview-header {
    margin-bottom: 20px;
}

.preview-header h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.preview-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.service-preview video,
.service-preview img {
    width: 100%;
    height: auto;
    max-height: calc(100% - 100px);
    object-fit: contain;
}

.service-preview audio {
    width: 100%;
    margin-top: 20px;
}

.preview-description,
.preview-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.service-section-right {
    height:500px;
    /* background: red; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:space-between;
}

.book-service {
    width: 250px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.092);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    backdrop-filter: blur(2px);

}

.book-service:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.plus-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: white;
}

.book-text {
    color: white;
    font-size: 18px;
}

.service-by {
    width: 250px;
    height: 270px;
    background-color: rgba(0, 0, 0, 0.323);
    display: flex;
    flex-direction: column;
    align-items:end;
    justify-content:end;
}

.service-by-text {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

/* Chat Bubble */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
}

.chat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-bubble:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.chat-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-icon::before {
    background: #fff;

    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #007AFF;
    border-radius: 50% 50% 0 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}

.chat-icon::after {
    content: '';
    position: absolute;
    width:  10px;
    height: 10px;
    background: #007AFF;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-bubble span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background-color: rgba(6, 19, 47, 0.8);
    color: white;
    padding: 30px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-section {
    margin: 15px;
    min-width: 200px;
    flex: 1;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 75px;
    height: 2px;
    background-color: #4BAAE8;
}

.footer-section:nth-child(2) h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 90px;
    height: 2px;
    background-color: #E74C3C;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.contact-info i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 14px;
    color: #4BAAE8;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.heart {
    color: #E74C3C;
    font-size: 16px;
    animation: heartbeat 1.5s infinite ease-in-out;
    display: inline-block;
    margin: 0 5px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Landing Page */
    .logo-group {
        transform: translateY(-50px) scale(1.8);
    }

    .caption {
        font-size: 8px;
    }

    /* Content Page */
    .second-page {
        padding-bottom: 40px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 15px 10px;
    }

    .nav-item {
        font-size: 14px;
        padding: 6px 12px;
    }

    /* Portfolio Section */
    .portfolio-section h2 {
        margin-left: 20px;
        font-size: 28px;
        margin-bottom: 30px;
    }

    .portfolio-grid {
        gap: 15px;
        padding: 0 20px;
    }

    .portfolio-item {
        width: 200px;
        height: 200px;
        flex: 0 0 200px;
    }

    /* Service Section */
    .services-section {
        flex-direction: column;
        padding: 0 20px 30px;
        gap: 30px;
    }

    .service-preview {
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .service-section-right {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 20px;
    }


    .footer-section:nth-child(2) h3::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 43px;
        width: 90px;
        height: 2px;
        background-color: #E74C3C;
    }

    .book-service {
        width: 60%;
        height: 150px;
    }

    .service-by {
        width: 40%;
        height: 150px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-section {
        padding: 0 20px;
    }

    .contact-info {
        align-items: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    /* Landing Page */
    .logo-group {
        transform: translateY(-50px) scale(1.4);
    }

    .caption {
        font-size: 8px;
    }

    /* Content Page */
    .nav-menu {
        gap: 8px;
        padding: 12px 8px;
    }

    .nav-item {
        font-size: 13px;
        padding: 5px 10px;
    }

    /* Portfolio Section */
    .portfolio-section h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .portfolio-item {
        width: 160px;
        height: 160px;
        flex: 0 0 160px;
    }

    .portfolio-item-content h3 {
        font-size: 16px;
    }

    .portfolio-item-content p {
        font-size: 13px;
    }

    /* Service Section */
    .service-section-right {
        flex-direction: column;
    }

    .book-service {
        width: 100%;
        height: 120px;
    }

    .service-by {
        width: 100%;
        height: 100px;
    }

    .plus-icon {
        font-size: 36px;
    }

    .book-text {
        font-size: 16px;
    }

    /* Chat Bubble */
    .chat-bubble {
        bottom: 20px;
        right: 20px;
        padding: 8px 12px;
    }

    .chat-icon {
        width: 24px;
        height: 24px;
    }

    .chat-bubble span {
        font-size: 13px;
    }

    .footer-section:nth-child(2) h3::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 43px;
        width: 90px;
        height: 2px;
        background-color: #E74C3C;
    }
    
}

@media (prefers-reduced-motion: reduce) {
    .star,
    .moon,
    .portfolio-item,
    .chat-bubble {
        transition: none !important;
        animation: none !important;
    }
}