/* Base styles */
:root {
    --primary-color: #5640e4;
    --secondary-color: #19bdcf;
    --gradient-start: #6e45e2;
    --gradient-end: #88d3ce;
    --text-color: #333;
    --light-text: #fff;
    --dark-text: #222;
    --light-bg: #f9f9f9;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #6e45e2 0%, #19bdcf 100%);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 8px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px;
    
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--dark-text);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-download {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav ul {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    nav ul.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    nav ul li {
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease;
        transition-delay: calc(0.1s * var(--item-index, 0));
    }
    
    nav ul.show li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Assign indices to list items for staggered animation */
    nav ul li:nth-child(1) { --item-index: 1; }
    nav ul li:nth-child(2) { --item-index: 2; }
    nav ul li:nth-child(3) { --item-index: 3; }
    nav ul li:nth-child(4) { --item-index: 4; }
    nav ul li:nth-child(5) { --item-index: 5; }
    
    nav ul li a {
        font-size: 1.2rem;
        padding: 10px;
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle span {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    position: relative;
    color: #fff;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    min-height: 500px;
    max-height: 1080px;
}

/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.video-background.video-loaded {
    opacity: 1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(86, 64, 228, 0.8) 0%, rgba(25, 189, 207, 0.8) 100%);
    z-index: 1;
}

/* Fallback for when video can't play */
.hero.video-fallback {
    background: linear-gradient(135deg, #5640e4 0%, #19bdcf 100%);
}

/* Add additional decoration details for video fallback */
.hero.video-fallback .background-decoration {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 25%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 30px 20px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease-out;
}

.hero-logo {
    height: 40px;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #a5ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: -1;
    transform: perspective(1000px) rotateY(-10deg);
    animation: fadeInRight 1s ease-out, float 5s ease-in-out infinite;
}

.hero-image img {
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); */
    border-radius: 20px;
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.floating-element {
    position: absolute;
    z-index: 1;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

.ai-effect {
    animation-delay: 0.5s;
}

.ai-style {
    animation-delay: 1s;
}

.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 10%);
    z-index: 1;
}

.hero-decoration-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    transform: translateY(1px);
}

.wave-decoration {
    width: 100%;
    height: auto;
    display: block;
}

/* Animation keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px) perspective(1000px) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateY(-10deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Intro Section */
.app-intro {
    background-color: #f8f9fa;
    text-align: center;
    padding: 80px 0;
}

.app-intro h3 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.app-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.app-slogan {
    margin-top: 40px;
}

.app-slogan h4 {
    font-size: 1.5rem;
    color: #ff4e4e;
}

/* Features Section */
.features {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.features h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.features > .container > p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 25px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-item.animated {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2);
}

.feature-item h4 {
    font-size: 1.2rem;
}

/* Apply different animation delays to create a staggered effect */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }
.feature-item:nth-child(7) { animation-delay: 0.7s; }
.feature-item:nth-child(8) { animation-delay: 0.8s; }
.feature-item:nth-child(9) { animation-delay: 0.9s; }
.feature-item:nth-child(10) { animation-delay: 1.0s; }

/* Templates Section */
.templates {
    background: linear-gradient(180deg, #e2ecff, #f8faff);
    padding: 80px 0;
    text-align: center;
}

.templates h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.templates p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.template-showcase {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.template-showcase img {
    max-width: 30%;
    border-radius: 10px;
   
    transition: all 0.3s ease;
}

.template-showcase img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* AI Templates Section */
.ai-templates {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.ai-templates h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.ai-templates p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.ai-showcase {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ai-item {
    width: calc(25% - 20px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.ai-item h4 {
    padding: 15px 10px;
    background-color: #f8f9fa;
    font-size: 1.1rem;
}

.ai-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.ai-item:hover img {
    transform: scale(1.05);
}

/* Style Templates Section */
.style-templates {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.style-templates h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.style-templates p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.style-showcase {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.style-item {
    width: calc(25% - 20px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.style-item h4 {
    padding: 15px 10px;
    background-color: #fff;
    font-size: 1.1rem;
}

.style-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.style-item:hover img {
    transform: scale(1.05);
}

/* Creation Center Section */
.creation-center {
    background: linear-gradient(180deg, #e2ecff, #f8faff);
    padding: 0px 0;
    text-align: center;
}

.creation-center h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.creation-center p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.center-image {
    
    margin: 0 auto;
    
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.5s ease;
    position: relative;
}

.center-image:hover {
    transform: translateY(-10px);
}

.trends-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.trend-image, .hotword-image {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Material Library Section */
.material-library {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.material-library h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.material-library p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.material-showcase {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.material-main {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.material-main:hover {
    transform: translateY(-10px);
}

.material-items {
    margin-top: 20px;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.material-grid img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.material-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* App Preview Section */
.app-preview {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.app-preview h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.app-preview p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.app-preview-image {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-preview-image img {
    display: block;
    width: 100%;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links .divider {
    color: #546778;
    margin: 0 15px;
}

.copyright {
    color: #95a5a6;
    font-size: 12px;
}

.copyright p {
    margin: 0;
    line-height: 1.5;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 20px 0;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links .divider {
        display: none;
    }
    
    .copyright p {
        padding: 0 20px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ai-item, .style-item {
        width: calc(50% - 20px);
        margin-bottom: 20px;
    }
    
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 500px;
        max-height: 1080px;
        padding: 60px 0;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 30px;
    }
    
    .hero-content {
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-image {
        transform: none !important;
        max-width: 90%;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    /* Video background adjustments for mobile */
    .video-background video {
        height: 100%;
        width: auto;
        min-width: 100%;
        min-height: 100%;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .template-showcase {
        flex-direction: column;
        align-items: center;
    }
    
    .template-showcase img {
        max-width: 80%;
        margin-bottom: 20px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trends-container {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        justify-content: center;
    }
    
    .ai-item, .style-item {
        width: 100%;
    }
    
    /* Fixed floating elements for mobile */
    .floating-element {
        position: absolute;
        transform: none !important;
    }
    
    .floating-element.ai-effect {
        top: 10px;
        left: 10px;
        z-index: 3;
    }
    
    .floating-element.ai-style {
        bottom: 10px;
        left: 10px;
        top: auto;
        z-index: 3;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .app-intro h3,
    .features h3,
    .templates h3,
    .creation-center h3,
    .material-library h3,
    .ai-templates h3,
    .style-templates h3,
    .app-preview h3 {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    .trends-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Video background enhancements for very small screens */
    .video-background {
        height: 100%;
    }

    .video-background video {
        width: 100%;
        height: auto;
    }
}

/* Special handling for iOS devices to prevent video playback issues */
@supports (-webkit-touch-callout: none) {
    .video-background video {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        top: 0;
        left: 0;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background video {
        width: 100%;
        height: auto;
    }
}

/* Features Carousel Section */
.features-carousel {
    padding: 100px 0;
    background: linear-gradient(180deg, #e2ecff, #f8faff);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}

.feature-content {
    flex: 1;
    /* max-width: 600px;*/
    background: #ffffff73;
    padding: 40px;
    border-radius: 20px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.feature-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-icon-item:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.icon-wrapper img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.feature-icon-item span {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.phone-preview {
    flex: 1;
    max-width: 350px;
    position: relative;
    perspective: 1000px;
}

.phone-frame {
    position: relative;
    width: 100%;
    padding-top: 200%; /* 2:1 aspect ratio */
    background-color: #27293d;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-frame:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 20%);
    z-index: 2;
    pointer-events: none;
}

.phone-screen {
    position: absolute;
    top: 2%;
    left: 2%;
    width: 96%;
    height: 96%;
    object-fit: cover;
    border-radius: 25px;
    z-index: 1;
}

/* Add phone UI elements */
.phone-notch {
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2%;
    background-color: #000;
    border-radius: 0 0 10px 10px;
    z-index: 3;
}

/* Carousel Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive styles for carousel */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .feature-content {
        max-width: 100%;
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 20px;
    }
    
    .phone-preview {
        max-width: 250px;
        margin-bottom: 30px;
    }

    /* Modified layout for the second slide only */
    .carousel-slide[data-slide="2"] {
        flex-direction: column;
    }
    
    .carousel-slide[data-slide="2"] .phone-preview {
        margin-bottom: 30px;
        max-width: 300px;
        transform: none !important;
    }
    
    .carousel-slide[data-slide="2"] .phone-frame {
        transform: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
    
    .carousel-slide[data-slide="2"] .feature-content {
        margin: 20px;
    }
    
    .carousel-slide[data-slide="2"] .feature-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-content h2 {
        font-size: 2rem;
    }

    /* Larger phone preview for the second slide on very small screens */
    .carousel-slide[data-slide="2"] .phone-preview {
        max-width: 85%;
        margin: 0 auto 20px;
    }
    
    .carousel-slide[data-slide="2"] .phone-frame {
        padding-top: 190%; /* Slightly adjust aspect ratio for better visibility */
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle .fa-chevron-down {
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 180px;
    padding: 8px 0;
    margin-top: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}

.dropdown.show .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown.show .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3584ff;
}

.dropdown-item i {
    margin-right: 10px;
    font-size: 1.1em;
    color: #3584ff;
}

/* Add responsiveness for the dropdown */
@media (max-width: 480px) {
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 200px;
    }
    
    .dropdown-menu:before {
        left: 50%;
        margin-left: -6px;
    }
    
    .dropdown.show .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
} 