:root {
    --primary-gold: #D4AF37;
    --primary-dark: #1a1a1a;
    --primary-deep: #2d1810;
    --accent-red: #8B2635;
    --accent-blue: #1e3a5f;
    --text-light: #f5f5f5;
    --text-gray: #b8b8b8;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Sanskrit Quote Overlay */
.sanskrit-quote {
    position: fixed;
    top: 50%;
    right: -200px;
    transform: translateY(-50%) rotate(90deg);
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.5rem;
    color: rgba(212, 175, 55, 0.1);
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    animation: slideInQuote 2s ease-out forwards;
}

@keyframes slideInQuote {
    to {
        right: -50px;
    }
}

/* Logo Sanskrit Tagline */
.sanskrit-tagline {
    display: block;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.6rem;
    color: var(--primary-gold);
    margin-top: 0.2rem;
    opacity: 0.8;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    animation: logoRotate 20s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.logo:hover .logo-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

@keyframes logoRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 0.2rem;
    margin: 0;
}

.logo .tagline {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
}

.hero-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(212, 175, 55, 0.02) 2px, rgba(212, 175, 55, 0.02) 4px);
    opacity: 0.3;
}

.geometric-shape {
    position: absolute;
    border: 2px solid var(--primary-gold);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    border-radius: 50%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    transform: rotate(45deg);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

/* Chanakya Quote */
.chanakya-quote {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-left: 4px solid var(--primary-gold);
    border-radius: 8px;
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards;
}

.sanskrit-text {
    display: block;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
}

.quote-translation {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s 0.6s forwards;
}

/* Election Badges */
.election-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s 0.9s forwards;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-gold);
}

.badge:hover::before {
    left: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s 0.9s forwards;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 2rem;
    width: 280px;
    transform-style: preserve-3d;
    transition: transform 0.3s;
    animation: floatCard 6s infinite ease-in-out;
}

.floating-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 150px;
    right: 0;
    animation-delay: 2s;
}

.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

.card-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Banner */
.stats-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(139, 38, 53, 0.08));
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-block h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--primary-gold);
    margin-bottom: 0.3rem;
}

.stat-block p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.stat-block span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .stat-block h3 {
        font-size: 2rem;
    }
}

/* Technology Section */
.technology {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary-deep) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.tech-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    border-color: var(--primary-gold);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.25);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
    position: relative;
    z-index: 1;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.tech-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tech-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.tech-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.tech-features li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.tech-features li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--primary-deep) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-gray);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

/* Clients Section */
.clients {
    padding: 100px 0;
    background: var(--bg-dark);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    transform-style: preserve-3d;
}

.client-card:hover {
    transform: translateY(-5px) rotateY(5deg);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
}

.client-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    transition: transform 0.3s;
    border: 3px solid rgba(212, 175, 55, 0.3);
    display: block;
}

.client-card:hover .client-logo img {
    transform: scale(1.1);
}

.client-logo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 2rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.client-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.client-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.client-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    background: var(--primary-gold);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 15px;
    z-index: 10;
}

.client-card {
    position: relative;
}

.client-tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: var(--primary-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Case Studies Section */
.case-studies {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary-deep) 0%, var(--bg-dark) 100%);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    transform-style: preserve-3d;
}

.case-study-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.case-study-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 3rem;
}

.case-study-content {
    padding: 2rem;
}

.case-study-category {
    display: inline-block;
    color: var(--primary-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.case-study-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.case-study-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.case-study-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    color: var(--primary-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    position: relative;
    overflow: hidden;
}

.election-year {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    opacity: 0.6;
    line-height: 1;
}

.election-type {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.case-study-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.case-study-link:hover {
    padding-left: 10px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
    margin-bottom: 0.3rem;
}

.stat-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-gold);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-card-3d {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.about-card-3d:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-face.front {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
}

.card-face.back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.1));
}

.card-face h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-face p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--primary-deep) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-gray);
    margin-bottom: 0.3rem;
}

.contact-link {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.contact-link:hover {
    color: var(--text-light);
    text-decoration: underline;
    transform: translateX(5px);
}

.address-detail {
    font-size: 0.85rem;
    color: var(--text-gray);
    opacity: 0.7;
    font-style: italic;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-result {
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 0.5rem;
}

.form-result.success {
    background: rgba(34, 139, 34, 0.15);
    border: 1px solid rgba(34, 139, 34, 0.4);
    color: #4ade80;
}

.form-result.error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #f87171;
}

/* Highlight Ticker */
.highlight-ticker {
    background: linear-gradient(90deg, var(--primary-gold), #c5982e, var(--primary-gold));
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
    margin-top: 70px;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 30s linear infinite;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.ticker-item {
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 1.5rem;
}

.ticker-item strong {
    color: var(--accent-red);
    font-weight: 700;
}

.ticker-divider {
    color: rgba(26, 26, 26, 0.3);
    font-size: 0.85rem;
}

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

/* Rankings Section */
.rankings {
    padding: 100px 0;
    background: var(--bg-dark);
}

.ppi-methodology {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.02));
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.ppi-methodology h4 {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.ppi-methodology p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ppi-methodology-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    flex-shrink: 0;
}

.ppi-edition {
    background: var(--primary-gold);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Region Tabs */
.ppi-region-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(212,175,55,0.15);
}

.ppi-tab {
    background: none;
    border: none;
    color: var(--text-gray);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    padding: 1rem 2rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.ppi-tab:hover { color: var(--text-light); }

.ppi-tab.active {
    color: var(--primary-gold);
}

.ppi-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gold);
}

/* Region Panels — overridden by new animated rules below */

/* Category Title */
.ppi-category-title {
    font-family: 'Cinzel', serif;
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 2.5rem 0 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-gold);
}

.ppi-category-title:first-child { margin-top: 0; }

/* Podium - Top 3 */
.ppi-podium {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: end;
}

.ppi-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.ppi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.1);
}

.ppi-rank-1 {
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border-color: rgba(212,175,55,0.3);
    order: 2;
    padding: 2rem 1.5rem;
}

.ppi-rank-2 { order: 1; }
.ppi-rank-3 { order: 3; }

.ppi-crown {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.3rem;
}

.ppi-rank {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.ppi-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212,175,55,0.3);
}

.ppi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppi-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--primary-gold);
    font-weight: 700;
}

.ppi-card h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.ppi-party {
    color: var(--primary-gold);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.ppi-role {
    color: var(--text-gray);
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
}

.ppi-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.score-value {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.score-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.ppi-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    display: inline-block;
}

.ppi-change.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.ppi-change.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

/* Score Breakdown (Detail View) */
.ppi-detail {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212,175,55,0.1);
    text-align: left;
}

.ppi-card.expanded .ppi-detail { display: block; }

.ppi-detail-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
}

.ppi-detail-bar .bar-label {
    color: var(--text-gray);
    width: 100px;
    flex-shrink: 0;
    text-align: right;
}

.ppi-detail-bar .bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.ppi-detail-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), #e8c547);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.ppi-detail-bar .bar-value {
    color: var(--text-light);
    width: 35px;
    text-align: right;
    font-weight: 600;
}

.ppi-expand-hint {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    opacity: 0.6;
}

.ppi-card.expanded .ppi-expand-hint { display: none; }

/* Ranking List (4-10) */
.ppi-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
}

.ppi-list-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.3s;
}

.ppi-list-item:hover {
    background: rgba(212,175,55,0.03);
}

.ppi-list-rank {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 700;
    width: 30px;
    text-align: center;
}

.ppi-list-info {
    flex: 1;
}

.ppi-list-info h5 {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.ppi-list-info span {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.ppi-list-score {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--primary-gold);
    font-weight: 700;
}

.ppi-disclaimer {
    color: var(--text-gray);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 2.5rem;
    opacity: 0.6;
    line-height: 1.6;
}

/* Category Filter Pills */
.ppi-category-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ppi-filter {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ppi-filter:hover {
    color: var(--text-light);
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.06);
}

.ppi-filter.active {
    color: var(--primary-dark);
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    font-weight: 600;
}

/* Category Section with Smooth Show/Hide */
.ppi-category-section {
    transition: opacity 0.4s ease, max-height 0.5s ease;
    overflow: hidden;
}

.ppi-category-section.hidden {
    opacity: 0;
    max-height: 0 !important;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Smooth Tab Panel Transitions */
.ppi-region-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ppi-region-panel.active {
    display: block;
    animation: fadeInPanel 0.4s ease forwards;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rank 1 Gold Glow Pulse */
.ppi-rank-1 {
    animation: goldGlow 3s ease-in-out infinite;
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(212,175,55,0.1); }
    50% { box-shadow: 0 0 30px rgba(212,175,55,0.25), 0 0 60px rgba(212,175,55,0.08); }
}

/* Staggered Podium Entrance */
.ppi-podium .ppi-card {
    opacity: 0;
    transform: translateY(20px);
}

.ppi-podium .ppi-card.animate-in {
    animation: cardEntrance 0.5s ease forwards;
}

.ppi-podium .ppi-card.animate-in:nth-child(1) { animation-delay: 0.05s; }
.ppi-podium .ppi-card.animate-in:nth-child(2) { animation-delay: 0.2s; }
.ppi-podium .ppi-card.animate-in:nth-child(3) { animation-delay: 0.35s; }

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Change Badge Pop Animation */
.ppi-change {
    animation: popIn 0.4s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: scale(0.5);
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5); }
    70% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

/* Score Counter Animation Class */
.score-counting {
    display: inline-block;
}

/* Skeleton Loading */
.ppi-skeleton {
    padding: 2rem 0;
}

.skeleton-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.skeleton-tab {
    width: 80px;
    height: 40px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-podium {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skeleton-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-card:nth-child(2) { animation-delay: 0.2s; }
.skeleton-card:nth-child(3) { animation-delay: 0.4s; }

.skeleton-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w80 { width: 80%; }

.skeleton-score {
    width: 50px;
    height: 28px;
    border-radius: 6px;
    background: rgba(212,175,55,0.08);
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Rankings Responsive */
@media (max-width: 768px) {
    .ppi-methodology {
        flex-direction: column;
    }
    .ppi-methodology-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 1rem;
    }
    .ppi-podium {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .ppi-rank-1, .ppi-rank-2, .ppi-rank-3 { order: unset; }
    .ppi-tab { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
    .ppi-list-item { padding: 0.8rem 1rem; gap: 0.8rem; }
    .highlight-ticker { margin-top: 60px; }
    .ppi-category-filters { justify-content: center; }
    .ppi-filter { font-size: 0.8rem; padding: 0.4rem 1rem; }
    .skeleton-podium { grid-template-columns: 1fr; }
    .ppi-card { padding: 1.2rem; }
    .ppi-rank-1 { padding: 1.5rem 1.2rem; }
    .ppi-detail-bar .bar-label { width: 80px; font-size: 0.7rem; }
}

/* Page Header (for inner pages) */
.page-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 30px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Blog / State Rankings */
.blog-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.blog-stat-block {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
}

.blog-stat-block .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.blog-stat-block .stat-num {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.blog-stat-block .stat-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.state-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.state-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.state-card .card-color-bar {
    height: 3px;
}

.state-card .card-body {
    padding: 1.5rem;
}

.state-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.state-card .card-meta .tag {
    background: rgba(255,255,255,0.04);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.state-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.state-card .card-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.state-card .top-preview {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.state-card .top-preview .rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.state-card .top-preview .preview-info {
    flex: 1;
    min-width: 0;
}

.state-card .top-preview .preview-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.state-card .top-preview .preview-meta {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.state-card .top-preview .preview-score {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
    flex-shrink: 0;
}

/* State Page — Top 3 Highlight */
.state-top3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.top3-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.top3-card .color-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.top3-card .medal {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.top3-card h3 {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.top3-card .pos {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.6rem;
}

.top3-card .party-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.top3-card .total-score {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.top3-card .score-breakdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.6rem;
    font-size: 0.7rem;
    color: var(--text-gray);
}

/* Party Distribution Badges */
.party-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.party-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.party-pill .pill-count {
    opacity: 0.7;
}

.party-pill .pill-avg {
    opacity: 0.5;
    font-size: 0.6rem;
}

/* State Ranking Table */
.ranking-table-wrap {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.ranking-table thead tr {
    background: rgba(255,255,255,0.02);
}

.ranking-table th {
    padding: 0.8rem;
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
}

.ranking-table th:nth-child(2) {
    text-align: left;
}

.ranking-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    text-align: center;
}

.ranking-table td:nth-child(2) {
    text-align: left;
}

.ranking-table tbody tr {
    transition: background 0.2s;
}

.ranking-table tbody tr:hover {
    background: rgba(212,175,55,0.04);
}

.ranking-table .rank-num {
    font-weight: 700;
    font-size: 1rem;
}

.ranking-table .pol-name {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.ranking-table .pol-pos {
    font-size: 0.72rem;
    color: var(--text-gray);
    margin-top: 0.1rem;
}

.ranking-table .party-badge-sm {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
}

.ranking-table .score-col {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
}

.ranking-table .score-bar-mini {
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin: 0.2rem auto 0;
}

.ranking-table .score-bar-mini .bar-inner {
    height: 100%;
    border-radius: 2px;
}

.ranking-table .total-col {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.ranking-table .total-bar {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin: 0.2rem auto 0;
}

.ranking-table .total-bar .bar-inner {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-gold), #e8d48b);
}

/* Methodology Box (state page) */
.methodology-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.methodology-box h3 {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.methodology-box p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-gold);
}

.breadcrumb .sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Blog Responsive */
@media (max-width: 768px) {
    .blog-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .state-top3 {
        grid-template-columns: 1fr;
    }
    .ranking-table-wrap {
        overflow-x: auto;
    }
}

/* State Toolbar (Language Toggle + Share + PDF) */
.state-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.3);
    background: transparent;
    color: var(--primary-gold);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.toolbar-btn:hover {
    background: rgba(212,175,55,0.12);
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(212,175,55,0.15);
}

.toolbar-lang-btn {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    min-width: 58px;
    justify-content: center;
    font-size: 0.85rem;
}

.toolbar-share-btn {
    padding: 0.4rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.toolbar-share-btn svg {
    flex-shrink: 0;
}

.toolbar-pdf-btn svg {
    flex-shrink: 0;
}

.toolbar-btn-label {
    display: inline;
}

/* Hindi language body class */
body.lang-hi .methodology-box,
body.lang-hi .breadcrumb,
body.lang-hi .ranking-table th,
body.lang-hi .state-toolbar,
body.lang-hi .top3-card .score-breakdown {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* PPI Table Expandable Breakdown */
.ppi-table-row {
    cursor: pointer;
    transition: background 0.2s;
}

.ppi-table-row:hover {
    background: rgba(212,175,55,0.05) !important;
}

.breakdown-row {
    display: none;
}

.ppi-table-row[data-expanded="true"] + .breakdown-row {
    display: table-row;
}

.breakdown-content {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
}

.breakdown-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.breakdown-label {
    min-width: 120px;
    opacity: 0.7;
    white-space: nowrap;
}

.breakdown-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-val {
    min-width: 28px;
    text-align: right;
    font-weight: 600;
}

.change-col {
    white-space: nowrap;
}

.ppi-change.positive {
    color: #4caf50;
}

.ppi-change.negative {
    color: #e53935;
}

/* Toolbar Responsive */
@media (max-width: 768px) {
    .state-toolbar {
        gap: 0.4rem;
        padding: 0.4rem 0.75rem;
    }
    .toolbar-btn-label {
        display: none;
    }
    .toolbar-pdf-btn {
        padding: 0.4rem;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: var(--primary-deep);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .sanskrit-quote {
        display: none;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chanakya-quote {
        text-align: center;
    }

    .sanskrit-text {
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 768px) {
    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .clients-grid,
    .case-studies-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .election-badges {
        justify-content: center;
    }

    .sanskrit-text {
        font-size: 1.4rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 400px;
    }

    .floating-card {
        width: 240px;
        padding: 1.5rem;
    }
}
