:root {
    --bg-color: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff0080;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Glow Animation */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: -1;
}

.background-glow::before,
.background-glow::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.background-glow::before {
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.background-glow::after {
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

.btn-secondary {
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-color) !important;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-color);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Converter Box */
.converter-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 16px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.input-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 5px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-icon {
    padding: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

#video-url {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.4);
}

.input-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.step h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.step p {
    color: var(--text-muted);
}

.step-divider {
    width: 100px;
    height: 2px;
    background: var(--glass-border);
    margin-top: 60px;
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--text-color);
}

/* Responsive */
/* Hamburger Menu */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 12, 41, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 0;
    }

    .input-group>i {
        display: none;
    }

    #video-url {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid var(--glass-border);
        padding: 15px;
        border-radius: 8px;
        width: 100%;
        text-align: center;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .step-divider {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Flash Message */
.flash-message {
    position: fixed;
    top: 80px; /* Below navbar */
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: slideIn 0.5s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Override Browser Autofill Background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
   -webkit-box-shadow: 0 0 0 30px transparent inset ! important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* About Us Section */
.about-us {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-image img {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.logo-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    filter: blur(60px);
    opacity: 0.6;
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Responsive About Us */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 20px;
        gap: 40px;
    }

    .about-image img {
        width: 150px;
    }
}