/* TikTok Color Scheme */
:root {
    --tiktok-primary: #FE2C55;
    --tiktok-secondary: #25F4EE;
    --tiktok-black: #000000;
    --tiktok-dark: #161823;
    --tiktok-white: #FFFFFF;
    --tiktok-gray: #F1F1F2;
    --tiktok-light-gray: #FAFAFA;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--tiktok-white);
    color: var(--tiktok-dark);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: var(--tiktok-white);
    border-bottom: 1px solid #E4E4E5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 1rem 0 !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--tiktok-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--tiktok-primary) !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--tiktok-dark);
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--tiktok-light-gray);
    color: var(--tiktok-primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--tiktok-primary) 0%, var(--tiktok-secondary) 100%);
    padding: 4rem 0;
    min-height: 500px;
    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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--tiktok-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--tiktok-white);
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Download Form */
.download-form {
    background: var(--tiktok-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

.download-form .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.download-form input {
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px 0 0 12px !important;
}

.download-form input:focus {
    box-shadow: none;
    outline: none;
}

.download-btn {
    background: var(--tiktok-primary);
    color: var(--tiktok-white);
    border: none;
    padding: 1.25rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0 12px 12px 0 !important;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #E0254A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--tiktok-light-gray);
}

.feature-card {
    background: var(--tiktok-white);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tiktok-primary), var(--tiktok-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tiktok-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* How To Section */
.howto-section {
    padding: 5rem 0;
    background: var(--tiktok-white);
}

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

.step-card {
    background: var(--tiktok-light-gray);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--tiktok-primary);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-left-width: 8px;
    padding-left: calc(2rem - 4px);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--tiktok-primary);
    color: var(--tiktok-white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tiktok-dark);
    margin-bottom: 0.5rem;
}

.step-description {
    color: #666;
    margin-left: 56px;
}

/* Footer */
footer {
    background: var(--tiktok-dark);
    color: var(--tiktok-white);
    padding: 3rem 0 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--tiktok-primary);
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Info Section */
.info-section {
    padding: 5rem 0;
    background: var(--tiktok-white);
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.info-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tiktok-dark);
    margin-bottom: 1.5rem;
}

.info-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tiktok-dark);
    margin: 2rem 0 1rem;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-form {
    background: var(--tiktok-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-control,
.form-select {
    border: 2px solid #E4E4E5;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tiktok-primary);
    box-shadow: 0 0 0 0.2rem rgba(254, 44, 85, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--tiktok-dark);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-tiktok {
    background: var(--tiktok-primary);
    color: var(--tiktok-white);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-tiktok:hover {
    background: #E0254A;
    color: var(--tiktok-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
}

/* Privacy Page */
.privacy-section {
    padding: 4rem 0;
}

.privacy-content {
    background: var(--tiktok-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.privacy-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tiktok-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tiktok-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-content p,
.privacy-content li {
    color: #555;
    line-height: 1.8;
}

.privacy-content ul,
.privacy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

    .download-btn {
        padding: 1rem 1.5rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .download-form {
        padding: 1rem;
    }

    .download-form input {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .download-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--tiktok-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Default Navbar */
.tiktok-nav {
    background: transparent;
    transition: all 0.3s ease-in-out;
    padding: 18px 0;
}

/* When Scrolled */
.tiktok-nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
}

/* Brand Text */
.tiktok-nav .brand-text {
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Change text color on scroll */
.tiktok-nav.scrolled .nav-link,
.tiktok-nav.scrolled .navbar-brand,
.tiktok-nav.scrolled .brand-text {
    color: #ffffff !important;
}

/* Default nav link */
.tiktok-nav .nav-link {
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

/* Hover effect */
.tiktok-nav .nav-link:hover {
    color: #ff0050;
}

/* Active link */
.tiktok-nav .nav-link.active {
    color: #ff0050 !important;
}
