/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #2C3E50;
    --light-color: #F7F9FC;
    --text-color: #2C3E50;
    --light-text: #7F8C8D;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --shadow: 0 10px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="white" fill-opacity="0.1" width="100" height="100"/></svg>');
    opacity: 0.1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInDown 1s ease;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

/* Hero Section 3D Cube */
.hero-3d-cube {
    width: 300px;
    height: 300px;
    perspective: 1000px;
    flex-shrink: 0;
}

.hero-3d-cube .cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.hero-3d-cube .face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

.hero-3d-cube .face span {
    font-size: 1.2rem;
    margin-top: 0.8rem;
    color: var(--light-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-3d-cube .face:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateZ(30px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.hero-3d-cube .front {
    transform: translateZ(150px);
}

.hero-3d-cube .back {
    transform: translateZ(-150px) rotateY(180deg);
}

.hero-3d-cube .right {
    transform: rotateY(90deg) translateZ(150px);
}

.hero-3d-cube .left {
    transform: rotateY(-90deg) translateZ(150px);
}

.hero-3d-cube .top {
    transform: rotateX(90deg) translateZ(150px);
}

.hero-3d-cube .bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

/* Add floating animation */
.hero-3d-cube {
    animation: floatHeroCube 6s ease-in-out infinite;
}

@keyframes floatHeroCube {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments for hero section */
@media screen and (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-3d-cube {
        width: 250px;
        height: 250px;
    }

    .hero-3d-cube .front {
        transform: translateZ(125px);
    }

    .hero-3d-cube .back {
        transform: translateZ(-125px) rotateY(180deg);
    }

    .hero-3d-cube .right {
        transform: rotateY(90deg) translateZ(125px);
    }

    .hero-3d-cube .left {
        transform: rotateY(-90deg) translateZ(125px);
    }

    .hero-3d-cube .top {
        transform: rotateX(90deg) translateZ(125px);
    }

    .hero-3d-cube .bottom {
        transform: rotateX(-90deg) translateZ(125px);
    }
}

@media screen and (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-3d-cube {
        width: 200px;
        height: 200px;
    }

    .hero-3d-cube .face {
        font-size: 2.5rem;
    }

    .hero-3d-cube .face span {
        font-size: 1rem;
    }

    .hero-3d-cube .front {
        transform: translateZ(100px);
    }

    .hero-3d-cube .back {
        transform: translateZ(-100px) rotateY(180deg);
    }

    .hero-3d-cube .right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .hero-3d-cube .left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .hero-3d-cube .top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .hero-3d-cube .bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-3d-cube {
        width: 150px;
        height: 150px;
    }

    .hero-3d-cube .face {
        font-size: 2rem;
    }

    .hero-3d-cube .face span {
        font-size: 0.8rem;
    }

    .hero-3d-cube .front {
        transform: translateZ(75px);
    }

    .hero-3d-cube .back {
        transform: translateZ(-75px) rotateY(180deg);
    }

    .hero-3d-cube .right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .hero-3d-cube .left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .hero-3d-cube .top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .hero-3d-cube .bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }
}

/* Features Section */
.features {
    padding: 4rem 1rem;
    background-color: var(--light-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--text-color);
    font-weight: 800;
    position: relative;
}

.features h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.feature-card:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(255,107,107,0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
    transform-style: preserve-3d;
    transform: translateZ(5px);
}

.feature-card:hover i {
    transform: scale(1.1) translateZ(10px);
    background: rgba(255,107,107,0.2);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.feature-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.feature-card ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.8rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

.feature-card ul li:before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Special Offer Section */
.special-offer {
    padding: 4rem 1rem;
    background: var(--gradient);
    color: var(--light-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.special-offer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="white" fill-opacity="0.1" width="100" height="100"/></svg>');
    opacity: 0.1;
}

.offer-content {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.offer-content:hover {
    transform: translateZ(20px);
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
    color: var(--accent-color);
    transform-style: preserve-3d;
    transform: translateZ(10px);
}

.offer-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.offer-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
}

.offer-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 8rem 1rem;
    background-color: var(--light-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-size: 3rem;
    font-weight: 800;
    position: relative;
}

.contact h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient);
    border-radius: 3px;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--light-color);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form input {
    padding: 1.5rem;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,107,107,0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 6rem 1rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient);
    border-radius: 3px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
    color: #b2bec3;
}

.footer-section a {
    color: #b2bec3;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--light-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #b2bec3;
}

/* Buttons */
.cta-button {
    background: var(--gradient);
    color: var(--light-color);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    transform: translateZ(-1px);
}

.cta-button:hover {
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:hover:before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(1px) translateZ(5px);
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: scale(1.2);
}

/* Popup Modal Styles */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    perspective: 1000px;
}

.popup-content {
    position: relative;
    background-color: var(--light-color);
    margin: 10% auto;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 0.3s ease;
}

.popup-content:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

.close-popup {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.close-popup:hover {
    background: rgba(0,0,0,0.2);
    transform: rotate(90deg) translateZ(20px);
}

.popup-header {
    text-align: center;
    margin-bottom: 1rem;
}

.popup-header h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.popup-body {
    text-align: center;
}

.popup-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0.8rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.popup-body h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.popup-body p {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.popup-features {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255,107,107,0.05);
    border-radius: 10px;
    font-size: 0.9rem;
}

.popup-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.popup-features li:before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1rem;
}

.popup-cta {
    width: 100%;
    margin-bottom: 0.8rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    background: var(--gradient-accent);
    color: var(--dark-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    width: auto;
    min-width: 120px;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.popup-close-btn:active {
    transform: translateY(1px);
}

.popup-close-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.popup-close-btn:hover i {
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 3D Animations */
@keyframes float {
    0% {
        transform: translateY(0px) translateZ(0);
    }
    50% {
        transform: translateY(-10px) translateZ(10px);
    }
    100% {
        transform: translateY(0px) translateZ(0);
    }
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: rotateX(5deg) rotateY(5deg);
    }
    100% {
        transform: rotateX(0deg) rotateY(0deg);
    }
}

/* Add floating animation to popup */
.popup-content {
    animation: float 3s ease-in-out infinite;
}

/* Add 3D rotation to feature cards */
.feature-card {
    animation: rotate3d 5s ease-in-out infinite;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        background-color: var(--light-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .burger {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .features {
        padding: 3rem 1rem;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .special-offer {
        padding: 3rem 1rem;
    }

    .offer-content {
        padding: 1.5rem;
    }

    .price-tag {
        font-size: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .popup-content {
        padding: 1.2rem;
        margin: 15% auto;
    }

    .popup-header h2 {
        font-size: 1.3rem;
    }

    .popup-price {
        font-size: 2rem;
    }

    .popup-body h3 {
        font-size: 1.1rem;
    }

    .popup-features {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .popup-cta {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .features h2 {
        font-size: 1.8rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card ul li {
        font-size: 0.9rem;
    }

    .price-tag {
        font-size: 2.5rem;
    }

    .offer-features li {
        font-size: 0.9rem;
    }

    .popup-content {
        padding: 1rem;
        margin: 15% auto;
    }

    .popup-header h2 {
        font-size: 1.3rem;
    }

    .popup-price {
        font-size: 2rem;
    }

    .popup-body h3 {
        font-size: 1.1rem;
    }

    .popup-features {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .popup-cta {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
}

/* 3D Floating Object */
.floating-3d-object {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    perspective: 1000px;
    z-index: 1000;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.face:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateZ(10px);
}

.front {
    transform: translateZ(50px);
}

.back {
    transform: translateZ(-50px) rotateY(180deg);
}

.right {
    transform: rotateY(90deg) translateZ(50px);
}

.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.top {
    transform: rotateX(90deg) translateZ(50px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Add floating animation */
.floating-3d-object {
    animation: floatObject 6s ease-in-out infinite;
}

@keyframes floatObject {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .floating-3d-object {
        width: 80px;
        height: 80px;
        top: 10px;
        right: 10px;
    }

    .face {
        font-size: 1.5rem;
    }

    .front {
        transform: translateZ(40px);
    }

    .back {
        transform: translateZ(-40px) rotateY(180deg);
    }

    .right {
        transform: rotateY(90deg) translateZ(40px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(40px);
    }

    .top {
        transform: rotateX(90deg) translateZ(40px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(40px);
    }
}

@media screen and (max-width: 480px) {
    .floating-3d-object {
        width: 60px;
        height: 60px;
    }

    .face {
        font-size: 1.2rem;
    }

    .front {
        transform: translateZ(30px);
    }

    .back {
        transform: translateZ(-30px) rotateY(180deg);
    }

    .right {
        transform: rotateY(90deg) translateZ(30px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(30px);
    }

    .top {
        transform: rotateX(90deg) translateZ(30px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(30px);
    }
}

/* Popup Animations */
.popup-animation {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.popup-animation.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.popup-animation.hide {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(50px);
        opacity: 0;
    }
} 