.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

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

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 70px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline-custom {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Enhanced Platform Showcase Styles */
.platform-showcase {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 1.2s forwards;
}

.devices-container {
    position: relative;
    height: 600px;
    width: 100%;
}

.device-frame {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    cursor: pointer;
}

.device-frame:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* Enhanced Mobile Frame */
.mobile-frame {
    width: 220px;
    height: 480px;
    background: linear-gradient(145deg, #2c2c2c, #141414);
    border-radius: 12px;
    padding: 4px 1px;
    top: 260px;
    left: 0;
    z-index: 4;
    border: 3px solid #333;
}

.mobile-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #222222;
    border-radius: 11px;
    z-index: 13;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    border: 2px solid #222;
}

.mobile-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 10px;
    color: white;
}

.mobile-ui .time {
    font-weight: bold;
}

.mobile-ui .battery {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Enhanced Laptop Frame */
.laptop-frame {
    width: 100%;
    height: 405px;
    background: linear-gradient(145deg, #b3b3b3, #343434);
    border-radius: 12px;
    padding: 24px 5px 33px 5px;
    top: 17px;
    right: -50px;
    z-index: 2;
    border: 2px solid #6a6a6a;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.laptop-frame::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #222222;
    border-radius: 11px;
    z-index: 13;
}

.laptop-screen {
    width: 100%;
    height: calc(100% - 1px);
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid #424242;
}

.laptop-base {
    position: absolute;
    bottom: -5px;
    left: 53%;
    transform: translateX(-50%);
    width: 100%;
    height: 25px;
    background: linear-gradient(157deg, #9b9b9b, #565656);
    border-radius: 0 0 10px 10px;
    border: 1px solid #787878;
    box-shadow: inset 29px 4px 15px #d7d7d7;
    scale: 1.05;
}

.laptop-base:after {
    content: '';
    position: absolute;
    top: 23px;
    left: 10%;
    transform: translateX(-50%);
    width: 32px;
    height: 5px;
    background: #3f3f3f;
    border-radius: 0 0 5px 5px;
    z-index: 13;
}

.laptop-base:before {
    content: '';
    position: absolute;
    top: 23px;
    right: 10%;
    transform: translateX(-50%);
    width: 32px;
    height: 5px;
    background: #3f3f3f;
    border-radius: 0 0 5px 5px;
    z-index: 13;
}

.laptop-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: rgba(30, 30, 30, 0.95);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.browser-controls {
    display: flex;
    gap: 8px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red {
    background: #ff5f57;
}

.browser-dot.yellow {
    background: #ffbd2e;
}

.browser-dot.green {
    background: #28ca42;
}

.address-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px 15px;
    color: white;
    font-size: 11px;
    min-width: 200px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .devices-container {
        height: 500px;
    }

    .mobile-frame {
        width: 160px;
        height: 280px;
        top: 135px;
        left: 20px;
    }

    .laptop-frame {
        width: 90%;
        height: 236px;
        top: 13px;
        right: 20px;
    }

    .tv-frame {
        width: 220px;
        height: 140px;
        top: 250px;
        left: 60px;
    }
}

/* Enhanced Screen Images with Sliding Animation */
.screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.screen-image.active {
    opacity: 1;
    transform: translateX(0);
}

.screen-image.prev {
    transform: translateX(-100%);
    opacity: 0;
}


.features-section {
    padding: 100px 0;
    background: var(--light-gray);
}

/* 3D Image Box Styles */
.image-3d-container {
    perspective: 1000px;
    margin: 20px 0;
}

.image-3d-box {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-3d-box-rotateY-right:hover {
    transform: rotateY(-7deg) scale(1.1);
}

.image-3d-box-rotateY-left:hover {
    transform: rotateY(7deg) scale(1.1);
}

.image-3d-box img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.image-3d-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    z-index: 1;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-3d-box:hover::before {
    opacity: 1;
}

.image-3d-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(-45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.image-3d-box:hover::after {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateX(100%);
        opacity: 0;
    }
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}


/* Enhanced TV Frame */
.tv-frame {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 15px;
    padding: 20px;
    z-index: 2;
    border: 4px solid #333;
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 3px solid #111;
}

.tv-stand {
    position: absolute;
    bottom: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 50px;
    background: linear-gradient(to bottom, #444, #222);
    border-radius: 10px;
    z-index: 1;
    box-shadow: inset 0 0 3px #000;
}

.tv-stand {
    position: relative;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 158px;
    height: 20px;
    z-index: 17;
    pointer-events: none;
    border-radius: 80px 80px 0 0;
}

.tv-stand::before,
.tv-stand::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 50px;
    background: linear-gradient(245deg, #333, #1a1a1a);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: -19;
}

.tv-stand::before {
    left: 15%;
    transform: rotate(193deg);
}

.tv-stand::after {
    right: 15%;
    transform: rotate(164deg);
}

.tv-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: white;
}

.tv-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tv-button {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tv-button:hover {
    background: rgba(255, 255, 255, 0.4);
}


/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.stats-section {
    padding: 80px 0;
    background: white;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 3rem;
}

.services-section {
    padding: 100px 0;
}

.service-item {
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    background: white;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.opensource-section {
    padding: 100px 0;
    background: var(--dark-color);
    color: white;
}

.github-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.github-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.github-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}
