/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #C44569;
    --accent-color: #FFC312;
    --dark: #2C3A47;
    --light: #F8EFBA;
    --white: #ffffff;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
}

/* Footer at the TOP */
#top-footer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem;
    text-align: center;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.footer-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.footer-content a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.footer-content a:hover {
    color: var(--accent-color);
}

.funhouse-text {
    font-style: italic;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

/* Background Video */
.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    filter: blur(3px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(44, 58, 71, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.wavy-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave 3s ease-in-out infinite, gradientShift 5s ease infinite;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--light);
    animation: float 4s ease-in-out infinite;
    margin-top: 1rem;
}

/* Floating Navigation that moves side to side */
#floating-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    animation: navFloat 8s ease-in-out infinite;
}

#floating-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#floating-nav li {
    opacity: 0.8;
    transition: all 0.3s ease;
}

#floating-nav li:hover {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

#floating-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#floating-nav a:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
    transform: translateX(10px);
}

/* Main Content */
main {
    margin-top: 100vh;
    padding-top: 80px; /* Account for top footer */
}

.section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    transform-style: preserve-3d;
}

/* Warped/Funhouse Mirror Effect */
.warped {
    animation: warpEffect 10s ease-in-out infinite;
}

.breathing {
    animation: breathe 5s ease-in-out infinite;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* About Section */
.about-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.intro {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--light);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.exp-card {
    background: rgba(255, 107, 157, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.exp-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.exp-card ul {
    list-style: none;
    padding-left: 0;
}

.exp-card li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.exp-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Product Gallery - Breathing/Scaling Effect */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
    animation: galleryBreathe 6s ease-in-out infinite;
}

.gallery-item:nth-child(2n) {
    animation-delay: 1s;
}

.gallery-item:nth-child(3n) {
    animation-delay: 2s;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    text-align: center;
    font-weight: bold;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    position: relative;
    animation: galleryBreathe 7s ease-in-out infinite;
}

.video-item:nth-child(2n) {
    animation-delay: 1.5s;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 195, 18, 0.3);
}

.video-placeholder:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(255, 195, 18, 0.4);
}

.video-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.play-icon {
    font-size: 3rem;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.video-item .caption {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
    color: var(--light);
}

/* Contact Section */
.contact-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 195, 18, 0.3);
}

.contact-intro {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.contact-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 195, 18, 0.5);
}

/* Animations */
@keyframes wave {
    0%, 100% { 
        transform: perspective(500px) rotateX(0deg) scale(1);
    }
    25% { 
        transform: perspective(500px) rotateX(5deg) scale(1.02);
    }
    75% { 
        transform: perspective(500px) rotateX(-5deg) scale(0.98);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes navFloat {
    0%, 100% { left: 2%; }
    25% { left: 5%; }
    50% { left: 2%; }
    75% { left: 5%; }
}

@keyframes warpEffect {
    0%, 100% { 
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
    }
    25% { 
        transform: perspective(1000px) rotateX(2deg) rotateY(-3deg) scale(1.01);
    }
    50% { 
        transform: perspective(1000px) rotateX(-2deg) rotateY(3deg) scale(0.99);
    }
    75% { 
        transform: perspective(1000px) rotateX(3deg) rotateY(-2deg) scale(1.01);
    }
}

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

@keyframes galleryBreathe {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
    }
    50% { 
        transform: scale(1.08) rotate(1deg);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #floating-nav {
        position: relative;
        top: auto;
        transform: none;
        animation: none;
        padding: 1rem;
        background: rgba(44, 58, 71, 0.95);
        margin-top: 80px;
    }
    
    #floating-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    main {
        margin-top: 0;
    }
    
    .bg-video-container {
        height: 60vh;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-gallery,
    .video-gallery {
        grid-template-columns: 1fr;
    }
    
    #top-footer {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}
