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

body {
    background-color: #0f0f0f;
    color: #888;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-wrapper {
    width: 90%;
    max-width: 1000px;
    text-align: center;
}

.logo {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 12px;
    margin-bottom: 40px;
}

.analyzer-card {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.header-action {
    margin-bottom: 20px;
}

.check-btn {
    /* Indigo se Purple ka premium gradient */
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Neon glow effect */
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Hover karne par effect */
.check-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}

/* Click karne par dabne wala effect */
.check-btn:active {
    transform: translateY(0);
}

/* Button ke andar ek chamakti hui patti (Shine effect) */
.check-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.check-btn:hover::after {
    left: 120%;
}

.text-area {
    width: 100%;
    height: 320px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    color: #ddd;
    padding: 20px;
    font-size: 1.1rem;
    resize: none;
    outline: none;
    line-height: 1.6;
}

.stats-row {
    margin-top: 25px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.sep {
    color: #333;
}

.stats-row b {
    color: #aaa;
}

.footer {
    margin-top: 50px;
    font-size: 0.7rem;
    opacity: 0.4;
}

                                    /* Header */

.header-bar {
    /* Pehle padding 20px thi, ab 8px kar dein */
    padding: 20px 0; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}
.content-area {
    /* Pehle 120px tha, ab header patla hone ki wajah se isse 80px-90px kar dein */
    margin-top: 150px; 
    
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}
.main-wrapper {
    width: 100%;
    max-width: 1400px; /* Laptop screen ke liye behtreen width */
    margin: 0 auto;    /* Center karne ke liye */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo {
    /* Gradient colors jo move honge */
    background: linear-gradient(
        to right, 
        #ff00cc, /* Pink */
        #3333ff, /* Blue */
        #00d4ff, /* Cyan */
        #ff00cc  /* Same color start and end for smooth loop */
    );
    
    /* Gradient ko bara rakhna zaroori hai movement dikhane ke liye */
    background-size: 200% auto; 
    
    /* Text masking logic */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Animation: 3 seconds (slow karna hai to 5s kar dein) */
    animation: moveGradient 3s linear infinite;
    
    /* Styling */
    font-size: 1.8rem; 
    font-weight: 900;
    letter-spacing: 5px;
    margin: 0;
    cursor: default;
}

/* 2. Ye hai asli Jadoo (Keyframe Animation) */
@keyframes moveGradient {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Full Screen Black Background */
/* 1. Main Container: Poori width aur header se gap (Background removed) */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; 
    min-height: 100vh;
    /* Background color hata diya gaya hai */
    margin: 0;
    /* Header se niche rakhne ke liye padding */
    padding-top: 100px; 
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* 2. Wrapper: Laptop screen par kinaro tak phailane ke liye */
.analyzer-wrapper {
    width: 98%; 
    max-width: 100%; 
    display: flex;
    justify-content: center;
}

/* 3. Card: Premium Dark Look */
.analyzer-card {
    background: #121212; 
    border: 1px solid #222;
    border-radius: 16px;
    padding: 40px;
    width: 1350px; 
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* 4. Card Header Area */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #282828;
    padding-bottom: 20px;
}

.card-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}
/* Content Analyzer ko rangeen aur moving banane ke liye */
.card-title-animated {
    /* Gradient colors jo move honge (Aap chahen to colors badal sakte hain) */
    background: linear-gradient(
        to right, 
        #ff00cc, /* Pink */
        #3333ff, /* Blue */
        #00d4ff, /* Cyan */
        #ff00cc  /* Smooth loop ke liye same color end mein */
    );
    
    background-size: 200% auto; 
    
    /* Text ke andar color bharne ki logic */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Wahi animation jo logo par lagi hai */
    animation: moveGradient 3s linear infinite;
    
    /* Styling settings */
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    cursor: default;
}
/* 5. Textarea: Ultra-Wide */
.text-area-premium {
    width: 100%;
    min-height: 500px; 
    padding: 35px;
    background: #080808; 
    border: 1px solid #333;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.4rem; 
    line-height: 1.8;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.text-area-premium:focus {
    border-color: #3333ff; 
    box-shadow: 0 0 20px rgba(51, 51, 255, 0.1);
}

/* 6. Stats Row: 4 Columns */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-item {
    background: #181818;
    border: 1px solid #282828;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #00d4ff; 
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* style.css mein isay update karein */
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 4 ki jagah 5 kar dein */
    gap: 20px;
}
/* 1. Stat Item (Outer Box): Background aur padding khatam */
.stat-item.grammar-box {
    background: transparent !important; /* Blue/Grey square background khatam */
    border: none !important;           /* Kisi bhi kism ka border khatam */
    box-shadow: none !important;       /* Square wali shadow khatam */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 2. Container: Ismein background-color: transparent add kiya hai */
.progress-container {
    position: relative;
    width: 110px; 
    height: 110px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important; /* Kisi bhi kism ka square color hatane ke liye */
    border-radius: 50%;
    animation: pulse-ring 3s infinite ease-in-out;
}

/* 3. SVG settings: Overflow hidden hatana zaroori hai glow dikhane ke liye */
.progress-svg {
    transform: rotate(-90deg);
    overflow: visible !important; /* Glow ko katne se bachane ke liye */
    width: 100%;
    height: 100%;
}

/* 4. Main Progress Circle: Glow ko mazeed saaf kiya */
.circle {
    fill: none;
    stroke: #00d4ff; 
    stroke-width: 4;
    stroke-linecap: round;
    /* Neon glow effect jo sirf line par aayega, piche square nahi banayega */
    filter: drop-shadow(0 0 5px #00d4ff);
    transition: stroke-dasharray 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulsating Animation (Wahi jo aapko pasand hai) */
@keyframes pulse-ring {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.percentage {
    position: absolute;
    /* In 4 lines se text bilkul center ho jayega */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    font-family: 'Monospace', sans-serif;
    
    /* Extra safeguard: taake text line break na kare */
    white-space: nowrap; 
    margin: 0;
    padding: 0;
}
/* 1. Main Footer Container */
.footer-premium {
    width: 100%;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 80px 10% 40px; /* Sides se gap diya */
    margin-top: 100px;
}

/* 2. Footer Content: Grid Layout */
.footer-content {
    display: grid;
    /* Laptop par Brand left aur Links right dikhenge */
    grid-template-columns: 1.5fr 2fr; 
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

/* 3. Brand Section (Left Side) */
.footer-brand {
    text-align: left; /* Left align kiya professional look ke liye */
}

.footer-brand .logo {
    font-size: 2.2rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-detail {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 400px;
}

/* 4. Links Section (Right Side) */
.footer-links {
    display: grid;
    /* 3 columns mein links divide honge */
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: end; /* Links right side par rahenge */
}

.f-link {
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    width: fit-content;
}

.f-link:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    transform: translateX(-5px); /* Left ki taraf move hoga hover par */
}

/* 5. Bottom Section (Centered) */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.credit-line {
    color: #888 !important;
    font-weight: 600;
    font-size: 1rem !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Mobile par sab ek line mein */
        text-align: center;
    }
    .footer-brand, .footer-brand .logo, .f-link {
        text-align: center;
        justify-self: center;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
}
body {
    display: flex;
    flex-direction: column; /* Isko center se hata kar column karein */
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.main-wrapper {
    width: 90%;
    max-width: 1200px; /* Isay thoda bara kar dein professional look ke liye */
    flex: 1; /* Taake content bache hue hisse ko fill kare */
}

.footer-premium {
    width: 100vw; /* Poori screen ki width */
    background: #0d0d0d;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Floating effect for cards */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00d4ff;
    transform: scale(1.05);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 60px;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.about-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.about-wrapper p {
    color: #888;
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   Laptop (1024px+) = original design untouched
   ============================================================ */

/* ---------- TABLET LANDSCAPE (769px – 1024px) ---------- */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
    }

    .analyzer-card {
        width: 100% !important;
        min-width: unset !important;
        padding: 30px !important;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    .stat-item.grammar-box {
        grid-column: 2 / 3;
    }

    .home-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 20px;
    }

    .detail-row {
        padding: 40px !important;
        gap: 30px !important;
        width: calc(100% - 40px) !important;
    }

    .footer-premium {
        padding: 60px 5% 40px !important;
    }
}

/* ---------- TABLET PORTRAIT (577px – 768px) ---------- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .main-container {
        padding-top: 100px !important;
    }

    /* Hero */
    .hero-section {
        padding: 50px 20px 30px !important;
    }

    .card-title-animated {
        font-size: 3rem !important;
        line-height: 1.15 !important;
    }

    /* Feature Cards */
    .home-grid {
        grid-template-columns: 1fr !important;
        padding: 0 20px !important;
        margin-top: 40px !important;
    }

    /* Detail Row */
    .detail-row {
        flex-direction: column !important;
        padding: 30px 20px !important;
        gap: 24px !important;
        width: calc(100% - 32px) !important;
        margin-top: 50px !important;
    }

    /* Analyzer */
    .analyzer-wrapper {
        padding: 0 16px !important;
        width: 100% !important;
    }

    .analyzer-card {
        width: 100% !important;
        min-width: unset !important;
        padding: 24px 18px !important;
        gap: 20px !important;
    }

    .card-header {
        flex-wrap: wrap !important;
        gap: 14px !important;
    }

    .text-area-premium {
        font-size: 1rem !important;
        padding: 18px !important;
        min-height: 280px !important;
    }

    /* Stats */
    .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stat-item.grammar-box {
        grid-column: 1 / -1 !important;
    }

    .stat-item {
        padding: 20px 12px !important;
    }

    .stat-value {
        font-size: 2rem !important;
    }

    /* Footer */
    .footer-premium {
        padding: 50px 20px 30px !important;
        margin-top: 60px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 30px !important;
    }

    .footer-brand {
        text-align: center !important;
    }

    .footer-brand .logo {
        text-align: center !important;
    }

    .footer-detail {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr) !important;
        justify-items: center !important;
    }

    .f-link {
        text-align: center !important;
    }
}

/* ---------- MOBILE (max 576px) ---------- */
@media (max-width: 576px) {
    .hero-section {
        padding: 40px 16px 24px !important;
    }

    .card-title-animated {
        font-size: 2.2rem !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    .check-btn {
        padding: 11px 20px !important;
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
    }

    .analyzer-card {
        padding: 18px 14px !important;
    }

    .text-area-premium {
        font-size: 0.95rem !important;
        padding: 14px !important;
        min-height: 220px !important;
    }

    .stat-value {
        font-size: 1.7rem !important;
    }

    .stat-label {
        font-size: 0.68rem !important;
        letter-spacing: 1px !important;
    }

    .progress-container {
        width: 90px !important;
        height: 90px !important;
    }

    .percentage {
        font-size: 1.2rem !important;
    }

    .detail-row {
        border-radius: 16px !important;
    }

    .feature-card {
        padding: 28px 20px !important;
    }
}

/* ---------- SMALL PHONES (max 400px) ---------- */
@media (max-width: 400px) {
    .card-title-animated {
        font-size: 1.8rem !important;
    }

    .logo {
        font-size: 1.4rem !important;
        letter-spacing: 3px !important;
    }

    .stats-row {
        gap: 8px !important;
    }

    .stat-item {
        padding: 16px 8px !important;
        border-radius: 10px !important;
    }

    .stat-value {
        font-size: 1.5rem !important;
    }

    .analyzer-card {
        padding: 14px 10px !important;
    }

    .text-area-premium {
        min-height: 180px !important;
    }
}