:root {
    --primary: #ff4757;
    --primary-hover: #ff6b81;
    --secondary: #2f3542;
    --dark: #1e272e;
    --light: #f1f2f6;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-main: 'Outfit', 'Noto Sans SC', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo-icon {
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.admin-link {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

/* Hero Tag */
.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 71, 87, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(255, 71, 87, 0.05) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #ff6b81);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.4rem;
    color: #57606f;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(255, 71, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 71, 87, 0.4);
    background: var(--primary-hover);
}

.btn-outline {
    border: 2px solid var(--light);
    color: var(--dark);
    background: var(--white);
}

.btn-outline:hover {
    background: var(--light);
}

.hero-visual {
    position: relative;
    width: 100%;
}

.visual-wrapper.hero-large {
    transform: scale(1.3);
    transform-origin: left center;
    margin-left: -2rem;
    z-index: 10;
}

.floating-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s;
}

.blur-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* About Section */
.about-section {
    padding: 15rem 0;
    background: #fafafa;
    overflow: hidden;
}

.about-grid.about-large {
    display: grid;
    grid-template-columns: 0.7fr 1.5fr;
    gap: 8rem;
    align-items: center;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-info h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.about-info p {
    font-size: 1.4rem;
    color: #57606f;
    margin-bottom: 3rem;
}

.about-list {
    list-style: none;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.about-list i {
    color: #2ed573;
    width: 24px;
}

.visual-card-large {
    background: white;
    padding: 2rem;
    border-radius: 40px;
    box-shadow: 0 80px 150px rgba(0, 0, 0, 0.2);
    transform: perspective(2000px) rotateY(-10deg) scale(1.25);
    transform-origin: right center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.visual-card-large:hover {
    transform: perspective(2000px) rotateY(0deg) scale(1.3);
}

.visual-card-large img {
    width: 100%;
    border-radius: 25px;
}

/* Features Rows */
.features {
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 8rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #57606f;
    font-size: 1.3rem;
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 10rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.row-info {
    flex: 0.8;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.2));
    color: var(--primary);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.row-info h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.row-info p {
    font-size: 1.4rem;
    color: #57606f;
    line-height: 1.8;
}

.row-visual {
    flex: 2;
    background: #f1f2f6;
    /* Placeholder color */
    padding: 1.5rem;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.5s ease;
    transform: scale(1.1);
    min-height: 300px;
    /* Prevent collapse */
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-visual img,
.visual-card-large img,
.floating-img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.row-visual:hover {
    transform: scale(1.15) translateY(-10px);
}

.row-visual img {
    width: 100%;
    border-radius: 25px;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-row:hover .row-visual img {
    transform: scale(1.04);
}

/* Download Section */
.download-section {
    padding: 10rem 0;
}

.download-card {
    background: var(--dark);
    border-radius: 50px;
    padding: 6rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.download-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.download-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.download-content h2 span {
    color: var(--primary);
}

.download-content p {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    opacity: 0.8;
}

.btn-white {
    background: var(--white);
    color: var(--dark);
}

.btn-white:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 5rem 0;
    border-top: 1px solid var(--light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    color: var(--dark);
    font-size: 1.8rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1200px) {

    .feature-row,
    .feature-row.reverse {
        gap: 4rem;
    }
}

@media (max-width: 1024px) {

    .hero-content,
    .about-grid.about-large,
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        text-align: center;
        gap: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }

    .visual-wrapper.hero-large {
        transform: scale(1);
        margin-left: 0;
        margin-top: 4rem;
    }

    .about-grid.about-large {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 5rem;
    }

    .about-list {
        display: inline-block;
        text-align: left;
    }

    .visual-card-large {
        transform: none !important;
        scale: 1 !important;
        transform-origin: center;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 4rem;
    }

    .row-info h3 {
        font-size: 2.2rem;
    }

    .row-info p {
        font-size: 1.2rem;
    }

    .feature-icon {
        margin: 0 auto 2rem;
    }

    .row-visual {
        width: 100%;
        transform: scale(1) !important;
    }

    .feature-rows {
        gap: 8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --max-width: 100%;
    }

    .container {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .about-info h2 {
        font-size: 2.4rem;
    }

    .row-info h3 {
        font-size: 1.8rem;
    }

    .download-card {
        padding: 4rem 2rem;
        text-align: center;
    }

    .download-content h2 {
        font-size: 2.5rem;
    }

    .download-btns .btn {
        width: 100%;
        justify-content: center;
    }

    /* Admin Mobile */
    .admin-box {
        padding: 2rem;
        border-radius: 20px;
    }

    .admin-box h1 {
        font-size: 1.6rem;
    }

    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
}