@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lexend:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #fbbf24;
    --accent-hover: #f59e0b;
    --secondary: #6366f1;
    --success: #10b981;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --pmmy-red: #991b1b;
    --pmmy-yellow: #fbbf24;
}

.utility-bar {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-utility, .mobile-nav-tools {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: #ffffff;
}

.pmmy-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border: 2px solid var(--pmmy-red);
    color: var(--pmmy-red);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.pmmy-login-btn:hover {
    background: var(--pmmy-red);
    color: white;
}

.primary-nav {
    background: var(--pmmy-red); /* Restore Desktop Red */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    display: block;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-divider {
    display: none;
}

.mudra-logo, .azadi-logo {
    height: 85px;
}

.utility-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.8rem;
    color: #4b5563;
    gap: 30px;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.utility-links {
    display: flex;
    gap: 15px;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.font-resizer {
    display: flex;
    gap: 10px;
    cursor: pointer;
}

/* News Ticker Styles */
.news-ticker {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 5px 15px;
    border-radius: 20px;
    overflow: hidden;
}

.news-ticker i {
    color: var(--pmmy-red);
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Mobile Responsiveness matching photo */
@media (max-width: 992px) {
    .container {
        padding: 0;
    }
    .utility-bar { display: none; }
    
    .header-flex {
        padding: 10px 0;
        justify-content: space-between;
        align-items: center;
    }

    .logo-section img {
        height: 55px; /* Smaller for mobile */
    }

    .header-right {
        display: none; /* Keep it strictly like the UI which doesn't show this button in nav area */
    }

    .logo-divider {
        display: none;
    }

    .mobile-utility {
        display: flex;
        justify-content: center;
        gap: 10px;
        font-size: 0.85rem;
        color: #4b5563;
        padding: 15px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        width: 100%;
        flex-wrap: wrap;
    }

    .mobile-utility .lang { font-weight: 700; color: var(--pmmy-red); border-right: 1px solid #ddd; padding-right: 10px; }
    .mobile-utility .size { color: #94a3b8; }

    .header-right {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 5px 0 0 0;
    }
    
    .pmmy-login-btn {
        padding: 8px 25px;
        font-size: 0.75rem;
    }

    .primary-nav {
        padding: 5px 0;
        position: relative;
    }

    .nav-container {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }

    .mobile-ticker {
        display: none;
    }

    .mobile-nav-tools {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 5px 0;
    }

    .mobile-nav-tools span {
        color: white;
        font-weight: 700;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .search-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .menu-toggle {
        background: white; /* White box from photo */
        border: none;
        width: 35px;
        height: 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        border-radius: 4px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        background: #003366; /* Navy lines */
        transition: 0.3s;
    }


    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-list li a {
        padding: 15px 30px;
        font-size: 0.9rem;
        justify-content: flex-start;
    }

    .mega-menu {
        display: none !important;
    }
}

.nav-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pmmy-red);
    min-width: 180px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    padding: 12px 20px;
    font-size: 0.7rem;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Mega Menu Styles */
.has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--pmmy-red);
    padding: 60px 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mega-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.mega-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

.nav-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Adjustments for Mega Menu */
@media (max-width: 768px) {
    .mega-menu {
        position: relative;
        padding: 30px 0;
        display: none;
    }
    .has-mega:hover .mega-menu {
        display: block;
    }
    .mega-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .mega-image img {
        max-width: 300px;
        margin: 0 auto;
    }
}

.nav-list li.has-dropdown a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list li.has-dropdown i {
    font-size: 0.6rem;
}

.nav-list li.search-icon a {
    font-size: 1rem;
}

/* Original Header & Nav (Backwards Compatibility) */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

/* Premium Card Section */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg); /* Special Radius as requested */
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--secondary);
    font-size: 1.5rem;
}

/* Calculator Section */
.calc-container {
    background: var(--primary);
    color: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 60px;
    align-items: center;
}

.calc-inputs {
    flex: 1;
}

.calc-display {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius-md);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

/* Form Styling */
.form-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        margin: 0 auto 35px;
    }
    .calc-container {
        flex-direction: column;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.sticky-badge-container {
    position: fixed;
    top: 220px;
    left: 10px;
    z-index: 9999;
    width: 115px;
    height: 151.22px;
    cursor: pointer;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
    transform: rotate(-10deg);
    display: block;
}

.sticky-badge-container img {
    width: 100%;
    height: auto;
    display: block;
}



@media (max-width: 768px) {
    .sticky-badge-container {
        width: 98px;
        height: 129.13px;
        top: 180px;
        left: 10px;
    }
}
