/* ==========================================
   8th Pay Commission Calculator - CSS
   ========================================== */

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

:root {
    --primary: #0F3A7D;
    --secondary: #00A8CC;
    --accent: #F4A261;
    --text: #1A1A2E;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.3rem; }

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

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.btn-nav {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0052A3);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 58, 125, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 58, 125, 0.4);
}

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

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

.full-width {
    width: 100%;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(15, 58, 125, 0.05) 0%, rgba(0, 168, 204, 0.05) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1rem;
    animation: slideIn 0.8s ease-out;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: slideIn 0.8s ease-out 0.1s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideIn 0.8s ease-out 0.2s both;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ==========================================
   Calculator Section
   ========================================== */

.calculator-section {
    padding: 4rem 0;
    background: white;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calc-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 58, 125, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.city-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.city-btn {
    padding: 0.7rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.city-btn:hover {
    border-color: var(--primary);
}

.city-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
}

/* Results */

.results-panel {
    background: white;
}

.result-main {
    background: linear-gradient(135deg, rgba(15, 58, 125, 0.05), rgba(0, 168, 204, 0.05));
    padding: 1.5rem;
    border-radius: 0.8rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(15, 58, 125, 0.1);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 58, 125, 0.1);
    font-size: 0.95rem;
}

.result-meta strong {
    color: #10B981;
    font-weight: 700;
}

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

.result-item {
    background: white;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.result-item .result-value {
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

.info-box {
    background: #DBEAFE;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .city-options {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-buttons {
        flex-direction: column;
    }
}

/* ==========================================
   Features Section
   ========================================== */

.features {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(15, 58, 125, 0.03) 0%, rgba(0, 168, 204, 0.03) 100%);
}

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

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.8rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================
   FAQ Section
   ========================================== */

.faq {
    padding: 4rem 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-item summary {
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(15, 58, 125, 0.03) 0%, rgba(0, 168, 204, 0.03) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 58, 125, 0.1);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

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

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.3rem; }
    
    .hero {
        padding: 3rem 0;
    }
    
    .calculator-section,
    .features,
    .faq,
    .contact {
        padding: 2rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
