:root {
    --bg: #0f172a;
    --text: #f8fafc;
    --card: #1e293b;
    --border: #334155;
    --accent: #38bdf8;
}

body {
            background-image: linear-gradient(rgba(10, 10, 10, 0.82), rgba(8, 8, 8, 0.93)), url('https://images.unsplash.com/photo-1620641788421-7a1c342ea42e?auto=format&fit=crop&w=1920&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed; /* Issey image scroll nahi hogi, ek jagah fix rahegi */
            background-repeat: no-repeat;
            margin: 0;
            font-family: 'Inter', sans-serif;
            color: var(--text);
            min-height: 100vh;
        }

.header {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 80px);
}

.form-side {
    background: var(--card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow-y: auto;
}

.preview-side {
    background: white;
    color: black;
    padding: 40px;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.section-title {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    margin: 20px 0 10px;
    font-size: 14px;
    text-transform: uppercase;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: #0f172a;
    color: white;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: #10b981;
    color: white;
}

.resume-header {
    border-left: 10px solid #0f172a;
    padding-left: 15px;
    margin-bottom: 20px;
}

@media print {

    .header,
    .form-side {
        display: none !important;
    }

    .main-layout {
        display: block;
        padding: 0;
    }

    .preview-side {
        box-shadow: none;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

@media (max-width: 800px) {
    .main-layout {
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-side, .preview-side {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.typewriter-container {
    text-align: center;
    padding: 20px 10px 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    min-height: 40px;
}

.cursor {
    border-right: 2px solid var(--accent);
    animation: blink 0.7s infinite;
    margin-left: 4px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.dropdown-container {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    /* Ye "Bridge" ka kaam karega taake mouse gap mein gayab na ho */
    margin-bottom: -15px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(30, 41, 59, 0.95);
    /* Glassy Dark Look */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    z-index: 9999;
    padding: 8px;
    transition: all 0.3s ease;
    /* Smooth opening animation */
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #e2e8f0;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: var(--accent);
    /* Aapka blue color */
    color: white;
    transform: translateX(5px);
    /* Chota sa move effect */
}

/* Niche wala triangle/arrow */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(30, 41, 59, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile responsive container */
.legal-page-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .legal-page-container {
        padding: 20px 15px;
        /* Mobile par thodi kam padding */
    }

    .legal-content-card {
        padding: 20px !important;
        /* Mobile par card ki andar ki space kam */
    }

    .legal-title {
        font-size: 24px !important;
        /* Mobile par heading choti */
    }
}

/* Premium Card Hover Effect & Responsive adjustments */
.premium-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.main-cta:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 768px) {

    /* Padding thori kam kar di taakay screen space bache */
    .app-container>div[style*="padding: 60px"] {
        padding: 20px 0 !important;
    }

    /* Heading ka size mobile par chota aur readable */
    h1 {
        font-size: 38px !important;
        letter-spacing: -1px !important;
        line-height: 1.2 !important;
    }

    /* Description text mobile par adjust kiya */
    p {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }

    /* Grid ko force kiya ke mobile par 1 column dikhaye */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Images aur cards ki padding set ki */
    .premium-card {
        padding: 25px !important;
        border-radius: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .premium-card img {
        height: 150px !important;
    }

    /* Button ko mobile par full width ya responsive kiya */
    .main-cta {
        padding: 15px 30px !important;
        width: 100%;
        font-size: 16px !important;
    }
    
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }
}

/* =========================================
   THAGRI (EXTREME PREMIUM) ANIMATIONS
   ========================================= */

@keyframes extremePulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 60px rgba(192, 132, 252, 0.6), 0 0 20px rgba(56, 189, 248, 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
}

@keyframes floatHeavy {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.heavy-glow {
    animation: extremePulse 3s infinite alternate;
}

.float-heavy {
    animation: floatHeavy 7s ease-in-out infinite;
}

/* 3D Card Effects */
.card-3d-wrap {
    perspective: 1200px; /* 3D depth */
}

.premium-feature-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* Jab mouse upar aaye toh card 3D mein ghoome aur pop ho */
.premium-feature-card:hover {
    transform: rotateY(8deg) rotateX(5deg) translateY(-15px) scale(1.02);
    border-color: var(--accent);
    box-shadow: -20px 20px 50px rgba(56, 189, 248, 0.15), 0 0 20px rgba(56, 189, 248, 0.2) inset;
}

/* Article Section Styling */
.article-box {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.6), transparent);
    border-left: 5px solid var(--accent);
    padding: 40px 50px;
    border-radius: 0 24px 24px 0;
    backdrop-filter: blur(12px);
    transition: all 0.5s ease;
}

.article-box:hover {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.8), transparent);
    border-left-width: 8px;
}
/* Full Screen & Layout Stretching */
.full-screen-landing {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 0 4vw; /* Sides ki space ko handle karne ke liye smart padding */
}

.hero-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    width: 100%;
    box-sizing: border-box;
}

/* Fluid Article Block */
.article-box-fluid {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.6), transparent);
    border-left: 5px solid var(--accent);
    padding: 40px min(5%, 50px);
    border-radius: 0 24px 24px 0;
    backdrop-filter: blur(12px);
    box-sizing: border-box;
    width: 100%;
}

/* ---- RESPONSIVE HEADER CSS ---- */
@media (max-width: 1100px) {
    /* Desktop ke saare navigation links ko hide karne ke liye */
    .nav-links { 
        display: none !important; 
    }

    /* Header ke andar jitne bhi buttons hain (jaise theme toggle), unhe hide karne ke liye */
    .nav-btns .btn, 
    .nav-btns .btn-theme { 
        display: none !important; 
    }

    /* Hamburger menu button ko show karne ke liye */
    .hamburger { 
        display: flex !important; 
    }

    /* Layout ko control karne ke liye - Simple vertical stack */
    .main-layout { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Form Section */
    .form-side { 
        order: 1 !important; 
        width: 100% !important; 
        max-height: none !important; 
        position: relative !important;
        overflow: visible !important;
        margin-bottom: 20px;
        box-sizing: border-box !important;
    }

    /* Resume Preview Section */
    .preview-side { 
        order: 2 !important; 
        width: 100% !important; 
        position: relative !important; 
        top: 0 !important;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        min-height: 500px !important; 
        height: auto !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Footer Fix */
    .footer {
        position: relative !important;
        clear: both !important;
        margin-top: 60px !important;
        z-index: 100;
    }
}