/* General Styling */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff6b6b;
    --accent-1: #00d2ff;
    --accent-2: #ff8e53;
    --accent-3: #c724ff;
    --text-color: #333;
    --bg-color: #fff;
    --light-gray: #f4f4f4;
    --gradient-main: linear-gradient(135deg, #6c63ff, #00d2ff, #ff6b6b, #c724ff);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, #ffe1e1, #d6f5ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-1), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-1), var(--secondary-color));
    border-radius: 2px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: var(--gradient-main);
    background-size: 300% 100%;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 2000;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(108, 99, 255, 0.12);
    transition: background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-1));
    transition: width 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Main Content */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: floatBlob 14s ease-in-out infinite;
}

.blob-1 {
    width: 320px;
    height: 320px;
    background: #00d2ff;
    top: 10%;
    left: 8%;
    animation-delay: 0s;
}

.blob-2 {
    width: 360px;
    height: 360px;
    background: #ff8e53;
    bottom: 8%;
    right: 10%;
    animation-delay: 3s;
}

.blob-3 {
    width: 260px;
    height: 260px;
    background: #c724ff;
    top: 45%;
    left: 55%;
    animation-delay: 6s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-text {
    position: relative;
    z-index: 1;
    animation: floatUp 6s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.4rem;
    background: linear-gradient(90deg, var(--accent-1), var(--primary-color));
    color: #fff;
    border: none;
    border-radius: 25px;
    margin-top: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.35);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(108, 99, 255, 0.5);
}

.btn:hover::before {
    left: 130%;
}

/* About Section */
#about {
    background: linear-gradient(135deg, #f7f7ff, #eef6ff);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 4rem;
}

.profile-pic {
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
    border: 4px solid #fff;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-item {
    background-color: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(108, 99, 255, 0.08);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.25);
}

.service-item i {
    font-size: 2.2rem;
    color: #fff;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-1));
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.35);
    transition: transform 0.3s;
}

.service-item:hover i {
    transform: rotate(-8deg) scale(1.08);
}

/* Portfolio Section */
#portfolio {
    background: linear-gradient(135deg, #eef6ff, #f7f7ff);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
}

.portfolio-item img {
    display: block;
    transition: transform 0.4s;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(108, 99, 255, 0.95), rgba(0, 210, 255, 0.75));
    color: #fff;
    padding: 1.4rem;
    transform: translateY(100%);
    transition: transform 0.4s;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.portfolio-item img {
    display: block;
    transition: transform 0.4s;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: var(--bg-color);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Live TV App Section */
#livetv {
    background: linear-gradient(135deg, #1e1e2f, #2a2a4a);
    color: #fff;
    border-radius: 0;
}

.livetv-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.livetv-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: #b9b4ff;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.livetv-header h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.livetv-header h2::after {
    width: 120px;
    background: linear-gradient(90deg, var(--accent-1), var(--secondary-color), var(--accent-3));
}

.livetv-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.livetv-desc {
    font-size: 1.05rem;
    color: #d4d4e8;
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.btn-download i {
    font-size: 2rem;
}

.btn-download .dl-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.btn-download .dl-text small {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
}

.btn-download .dl-text strong {
    font-size: 1.2rem;
}

.btn-download.android:hover {
    background: #3ddc84;
    border-color: #3ddc84;
    color: #1e1e2f;
    transform: translateY(-3px);
}

.btn-download.windows:hover {
    background: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
    transform: translateY(-3px);
}

.btn-download .coming-soon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.livetv-features h3,
.livetv-screens h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 210, 255, 0.25);
}

.feature-card i {
    font-size: 1.8rem;
    color: #fff;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-2), var(--secondary-color));
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
    transition: transform 0.3s;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(6deg);
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.feature-card p {
    font-size: 0.95rem;
    color: #c2c2d6;
}

.livetv-screens {
    margin-top: 5rem;
}

.screen-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.landscape-group,
.portrait-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.landscape-group {
    flex: 1 1 520px;
    max-width: 620px;
}

.portrait-group {
    flex: 0 0 auto;
}

.phone-mockup {
    position: relative;
    width: 230px;
    background: #0d0d18;
    padding: 12px 12px 18px;
    border-radius: 34px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    border: 3px solid #2a2a3d;
    transition: transform 0.35s ease;
}

.phone-mockup:hover {
    transform: translateY(-10px) scale(1.03);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 16px;
    background: #0d0d18;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

.phone-mockup img {
    display: block;
    width: 100%;
    border-radius: 24px;
    border: 1px solid #1c1c2b;
}

.screen-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.screen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
}

.screen-card img {
    display: block;
    width: 100%;
    border-radius: 14px;
}

/* Contact Section */
#contact {
    overflow: hidden;
    background: linear-gradient(135deg, #1e1e2f, #2a2a4a);
    color: #fff;
}

#contact h2 {
    background: linear-gradient(90deg, #fff, #d6f5ff, #ffe1e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#contact h2::after {
    background: linear-gradient(90deg, var(--accent-1), var(--secondary-color), var(--accent-3));
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-links a {
    font-size: 1.6rem;
    color: #fff;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-1));
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-links a:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 16px 35px rgba(0, 210, 255, 0.55);
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--light-gray);
    border: 2px solid #ddd;
    color: var(--text-color);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#contact .btn {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

#contact .btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #2a2a4a, #1e1e2f);
    color: #fff;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin: 0 0.5rem;
    font-size: 1.5rem;
    color: #fff;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background 0.3s;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-1));
    transform: translateY(-4px) scale(1.1);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-1));
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1500;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 14px 32px rgba(0, 210, 255, 0.55);
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 4rem 1rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .menu-toggle {
        display: flex;
    }
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        box-shadow: 0 12px 30px rgba(108, 99, 255, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    nav ul.open {
        max-height: 400px;
    }
    nav ul li {
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(108, 99, 255, 0.08);
    }
    nav ul li a {
        font-size: 1.1rem;
    }
    .livetv-header h2 {
        font-size: 2.2rem;
    }
    .livetv-tagline {
        font-size: 1.1rem;
    }
    .screen-showcase {
        gap: 2rem;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}
