/* =================================================================
   CGST Act 2017 - Professional Styling
   Color Scheme: Blue & Gold with Gradients
   ================================================================= */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #f0f9ff 0%, #e0f2fe 50%, #f9fafb 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 L1200,0 L1200,120 Q600,60 0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 15px;
}

.act-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

/* Navigation Styles */
.navigation {
    background: white;
    padding: 25px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--accent-color);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.section-selector {
    flex: 1;
    min-width: 300px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.section-selector:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.section-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

/* Welcome Screen */
.welcome-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.welcome-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    border: 1px solid var(--border-color);
}

.icon-wrapper {
    display: inline-block;
    padding: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.icon-wrapper svg {
    color: white;
    display: block;
}

.welcome-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-card > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
}

.instruction {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    padding: 15px 30px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50px;
    display: inline-block;
}

/* Section Content */
.section-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header Card */
.section-header-card {
    background: var(--gradient-primary);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.section-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.section-number {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    opacity: 0.95;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* Cards */
.provision-card,
.definition-card,
.case-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.provision-card:hover,
.definition-card:hover,
.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.provision-header,
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    flex-wrap: wrap;
    gap: 15px;
}

.provision-header h3,
.case-header h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.provision-content,
.def-content,
.case-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.provision-text {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

/* Definition Cards */
.definition-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.def-number {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.def-term {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.def-content ul {
    list-style-position: inside;
    margin-left: 20px;
}

.def-content li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Special Boxes */
.note-box,
.proviso-box,
.example-box {
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 5px solid;
}

.note-box {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--secondary-color);
}

.proviso-box {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--accent-color);
}

.example-box {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success-color);
}

.info-box {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(30, 58, 138, 0.2);
}

/* Key Points */
.key-points-card {
    background: var(--gradient-success);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.key-points-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-points-list {
    list-style-type: none;
}

.key-points-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

.key-points-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Case Law Section */
.case-law-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 4px solid var(--accent-color);
}

.case-law-header {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.case-badge {
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-badge.favorable {
    background: var(--gradient-success);
    color: white;
}

.case-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.case-details {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
}

.case-ruling {
    margin-bottom: 15px;
    line-height: 1.8;
}

.case-impact {
    padding: 15px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color);
    border-radius: 8px;
    margin-top: 15px;
}

/* Stats Card */
.stats-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.stats-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    box-shadow: var(--shadow-lg);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 15px auto;
    line-height: 1.6;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-selector {
        min-width: 100%;
    }
    
    .welcome-card {
        padding: 40px 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .provision-card,
    .definition-card,
    .case-card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .case-law-header {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .navigation,
    .footer {
        display: none;
    }
    
    .section-content {
        page-break-inside: avoid;
    }
    
    .provision-card,
    .definition-card,
    .case-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Accessibility */
.section-selector:focus,
button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent-color);
    color: white;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}