* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    transition: background 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

body.dark-mode .glass-card {
    background: rgba(30, 30, 46, 0.95);
}

/* Input Group */
.input-group-custom {
    background: #f0f2f5;
    border-radius: 60px;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.dark-mode .input-group-custom {
    background: #2a2a3e;
}

.input-group-custom:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4);
    transform: scale(1.01);
}

.input-group-custom input {
    background: transparent;
    border: none;
    padding: 16px 25px;
    font-size: 1rem;
    color: #1a1a2e;
}

body.dark-mode .input-group-custom input {
    color: #ffffff;
}

.input-group-custom input:focus {
    outline: none;
    box-shadow: none;
}

.input-group-custom input::placeholder {
    color: #999;
}

.btn-fetch {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 0 35px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-fetch:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-fetch:disabled {
    opacity: 0.6;
    transform: none;
}

/* Video Card */
.video-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 15px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

body.dark-mode .video-card {
    background: rgba(30, 30, 46, 0.9);
}

.video-thumb {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Quality Buttons */
.quality-btn {
    background: #f0f2f5;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    margin: 4px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

body.dark-mode .quality-btn {
    background: #2a2a3e;
    color: #fff;
}

.quality-btn:hover {
    transform: translateY(-2px);
}

.quality-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Download Button */
.btn-download {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-download:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Header */
.header {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.logo {
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo:hover {
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 40px;
    padding: 8px 22px;
    color: white;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

/* Loading Overlay */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    margin-top: 15px;
    display: none;
    font-size: 14px;
    text-align: center;
}

/* Icon */
.fb-icon {
    background: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.fb-icon i {
    font-size: 40px;
    color: white;
}

/* Text colors */
h3, p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

body.dark-mode h3, body.dark-mode p {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
        margin: 15px;
    }
    .quality-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    .btn-fetch {
        padding: 0 20px;
        font-size: 14px;
    }
}















*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Segoe UI,sans-serif;
    min-height:100vh;
    overflow-x:hidden;
    background:linear-gradient(135deg,#1877f2,#4f46e5,#9333ea);
    background-size:400% 400%;
    animation:bgMove 12s ease infinite;
    color:white;
    transition: background 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    background-size: 400% 400%;
    animation: bgMove 12s ease infinite;
}

body.dark-mode .glass-card {
    background: rgba(0, 0, 0, 0.5);
}

body.dark-mode .feature-card {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .stat-box {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .input-group-custom {
    background: #1a1a2e;
}

body.dark-mode .input-group-custom input {
    background: #1a1a2e;
    color: white;
}

/* Animated Background */

@keyframes bgMove{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

.floating-bg{
    position:fixed;
    inset:0;
    overflow:hidden;
    z-index:-1;
}

.floating-bg span{
    position:absolute;
    display:block;
    border-radius:50%;
    background:rgba(255,255,255,0.1);
    animation:floatUp linear infinite;
    bottom:-150px;
}

.floating-bg span:nth-child(1){
    left:10%;
    width:90px;
    height:90px;
    animation-duration:16s;
}

.floating-bg span:nth-child(2){
    left:30%;
    width:130px;
    height:130px;
    animation-duration:20s;
}

.floating-bg span:nth-child(3){
    left:50%;
    width:70px;
    height:70px;
    animation-duration:14s;
}

.floating-bg span:nth-child(4){
    left:70%;
    width:100px;
    height:100px;
    animation-duration:18s;
}

.floating-bg span:nth-child(5){
    left:90%;
    width:60px;
    height:60px;
    animation-duration:12s;
}

@keyframes floatUp{
    0%{
        transform:translateY(0) rotate(0deg);
        opacity:0;
    }
    20%{
        opacity:1;
    }
    100%{
        transform:translateY(-1200px) rotate(720deg);
        opacity:0;
    }
}

/* Navbar - Responsive */
.navbar{
    padding: 15px 0;
    backdrop-filter: blur(15px);
    background: rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand{
    font-size: 28px;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}

.navbar-brand i{
    color: #fff;
}

.navbar-toggler {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-collapse {
    background: transparent;
}

.navbar-nav {
    gap: 8px;
    align-items: center;
}

.nav-item .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-item .nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.nav-item .nav-link[href="instagram.html"] {
    background: linear-gradient(135deg, #f09433, #d62976, #962fbf, #4f5bd5);
    background-size: 200% 200%;
}

.nav-item .nav-link[href="facebook.html"] {
    background: linear-gradient(135deg, #1877f2, #0e5bc9);
}

.theme-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item .nav-link {
        display: block;
        text-align: center;
        width: 100%;
        padding: 12px 20px !important;
    }
    
    .theme-toggle {
        margin: 15px auto 0;
        width: 100%;
        justify-content: center;
    }
}

/* Hero */

.hero-section{
    min-height:100vh;
    display:flex;
    align-items:center;
    padding:50px 0;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:rgba(255,255,255,0.12);
    padding:12px 20px;
    border-radius:50px;
    margin-bottom:25px;
    backdrop-filter:blur(10px);
}

.hero-title{
    font-size:65px;
    font-weight:800;
    line-height:1.1;
    margin-bottom:25px;
}

.hero-title span{
    display:block;
    color:#ffd700;
}

.hero-subtitle{
    font-size:18px;
    opacity:0.9;
    margin-bottom:35px;
}

.hero-stats{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.stat-box{
    background:rgba(255,255,255,0.1);
    backdrop-filter:blur(10px);
    padding:20px;
    border-radius:20px;
    min-width:120px;
    text-align:center;
    transition:0.3s;
}

.stat-box:hover{
    transform:translateY(-8px);
}

.stat-box h3{
    font-size:32px;
    font-weight:700;
}

.glass-card{
    position:relative;
    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:35px;
    padding:40px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.25);
}

.glass-card::before{
    content:'';
    position:absolute;
    width:200%;
    height:200%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );
    top:-50%;
    left:-50%;
    transform:rotate(25deg);
    animation:shine 7s linear infinite;
}

@keyframes shine{
    0%{
        transform:translateX(-100%) rotate(25deg);
    }
    100%{
        transform:translateX(100%) rotate(25deg);
    }
}

.fb-icon{
    width:100px;
    height:100px;
    margin:auto;
    border-radius:50%;
    background:linear-gradient(135deg,#1877f2,#4f46e5);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    margin-bottom:20px;
    animation:pulse 2.5s infinite;
}

@keyframes pulse{
    0%,100%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.08);
    }
}

.input-group-custom{
    display:flex;
    align-items:center;
    background:white;
    border-radius:60px;
    padding:8px;
    overflow:hidden;
    position:relative;
}

.input-group-custom input{
    flex:1;
    border:none;
    outline:none;
    padding:15px;
    font-size:16px;
}

.input-group-text{
    background:none;
    border:none;
    color:#1877f2;
    font-size:22px;
    padding-left:18px;
}

.btn-fetch{
    border:none;
    background:linear-gradient(135deg,#1877f2,#4f46e5);
    color:white;
    padding:15px 30px;
    border-radius:50px;
    font-weight:700;
    transition:0.3s;
}

.btn-fetch:hover{
    transform:scale(1.05);
    box-shadow:0 10px 25px rgba(79,70,229,0.5);
}

.quick-features{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:25px;
    flex-wrap:wrap;
}

.quick-item{
    background:rgba(255,255,255,0.12);
    padding:12px 18px;
    border-radius:50px;
    font-size:14px;
    backdrop-filter:blur(10px);
}

.quick-item i{
    margin-right:8px;
}

.video-card{
    margin-top:30px;
    background:rgba(255,255,255,0.1);
    padding:20px;
    border-radius:25px;
    backdrop-filter:blur(15px);
    transition:0.3s;
}

.video-card:hover{
    transform:translateY(-6px);
}

.video-thumb{
    width:100%;
    border-radius:20px;
    aspect-ratio:16/9;
    object-fit:cover;
}

.quality-wrapper{
    margin:20px 0;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.quality-btn{
    border:none;
    background:rgba(255,255,255,0.15);
    color:white;
    padding:10px 18px;
    border-radius:15px;
    transition:0.3s;
    cursor:pointer;
}

.quality-btn:hover,
.quality-btn.active{
    background:white;
    color:#1877f2;
    transform:translateY(-3px);
}

.btn-download{
    width:100%;
    border:none;
    padding:16px;
    border-radius:50px;
    background:linear-gradient(135deg,#00c853,#00e676);
    color:white;
    font-size:18px;
    font-weight:700;
    transition:0.3s;
    cursor:pointer;
}

.btn-download:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 30px rgba(0,200,83,0.4);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.spinner-border-custom {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.features-section{
    padding:80px 0;
}

.section-title h2{
    font-size:48px;
    font-weight:800;
}

.section-title p{
    opacity:0.8;
    margin-top:10px;
}

.feature-card{
    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(15px);
    padding:35px;
    border-radius:25px;
    text-align:center;
    transition:0.3s;
    height:100%;
}

.feature-card:hover{
    transform:translateY(-8px);
}

.feature-icon{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:20px;
    background:linear-gradient(135deg,#1877f2,#4f46e5);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    margin-bottom:20px;
}

.footer {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

.footer a {
    color: white;
    text-decoration: none;
}

@media(max-width:768px){

    .hero-title{
        font-size:42px;
    }

    .glass-card{
        padding:25px;
    }

    .hero-stats{
        justify-content:center;
    }

    .btn-fetch{
        padding:14px 18px;
        font-size:14px;
        right: 2px;
        position: absolute;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
}
