/* ========================================================================
   PGI Theme CSS for PGI Bharat
   ======================================================================== */

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

:root {
    --pgi-red: #ff4757;         /* Vibrant Action */
    --pgi-blue: #3742fa;        /* Deep Indigo Primary */
    --pgi-green: #2ed573;       /* Bright Success */
    --pgi-yellow: #ffa502;      /* Vibrant Warning */
    --pgi-purple: #5352ed;      /* Deep Purple Apps */
    --pgi-dark: #0f172a;        /* Slate 900 - Premium Dark for Headings */
    --pgi-gray: #475569;        /* Slate 600 - High legibility body text */
    --pgi-light-bg: #f8fafc;    /* Slate 50 - Softer light sections */
    --pgi-border: #e2e8f0;      /* Slate 200 - Crisp borders */
    --pgi-white: #ffffff;
    --pgi-gradient: linear-gradient(135deg, #3742fa 0%, #5352ed 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--pgi-gray);
    background-color: var(--pgi-white);
    margin: 0;
    padding: 0;
    line-height: 1.65;
    font-size: 1.05rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--pgi-dark);
    margin-top: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: var(--pgi-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
}

/* Navigation Bar (PGI Style: White, Minimal, Thin borders) */
.pgi-header {
    background-color: var(--pgi-white);
    border-bottom: 1px solid var(--pgi-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.pgi-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgi-logo h2 {
    color: var(--pgi-dark);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.pgi-nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.pgi-nav-links li a {
    color: var(--pgi-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pgi-nav-links li a:hover {
    color: var(--pgi-blue);
    transform: translateY(-2px);
    display: inline-block;
}

.pgi-btn-red {
    background: linear-gradient(135deg, var(--pgi-red), #ff6b81);
    color: var(--pgi-white) !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.pgi-btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.pgi-btn-outline {
    background-color: transparent;
    color: var(--pgi-dark) !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--pgi-border);
    font-size: 1rem;
}

.pgi-btn-outline:hover {
    border-color: var(--pgi-blue);
    color: var(--pgi-blue) !important;
    background-color: rgba(55, 66, 250, 0.05);
}

/* Hero Section (White, very clean, left aligned usually) */
.pgi-hero {
    padding: 60px 0;
    background-color: var(--pgi-white);
    text-align: center;
}

.pgi-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    color: var(--pgi-dark);
    line-height: 1.2;
}

.pgi-hero p {
    font-size: 1.25rem;
    color: var(--pgi-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* App Grid (PGI Products) */
.pgi-section {
    padding: 80px 0;
    background-color: var(--pgi-white);
}

.pgi-section-light {
    background-color: var(--pgi-light-bg);
}

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

.pgi-section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.pgi-section-title p {
    font-size: 1.1rem;
    color: var(--pgi-gray);
}

.app-bundle-card {
    background: var(--pgi-white);
    border: 1px solid var(--pgi-border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.app-bundle-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-8px);
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.app-grid-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--pgi-white);
    border: 1px solid transparent;
}

.app-grid-item:hover {
    background-color: var(--pgi-white);
    border-color: var(--pgi-border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-3px);
    cursor: pointer;
}

.app-grid-item .app-icon {
    margin-bottom: 0;
    margin-right: 20px;
    flex-shrink: 0;
}

.app-grid-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.app-grid-content p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--pgi-gray);
}

/* Footer (Premium Dark Style) */
.pgi-footer {
    background: linear-gradient(135deg, #1e272e 0%, #2f3542 100%);
    border-top: none;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    color: #a4b0be;
}

.pgi-footer h5 {
    color: var(--pgi-white);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.pgi-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pgi-footer-links li {
    margin-bottom: 10px;
}

.pgi-footer-links li a {
    color: #ced6e0;
    transition: all 0.3s ease;
}

.pgi-footer-links li a:hover {
    color: #ff4757;
    padding-left: 5px;
}

.pgi-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 25px;
    text-align: center;
    color: #747d8c;
}

/* Mobile Navbar Styles */
@media (max-width: 991px) {
    .pgi-nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 0;
    }
    
    .pgi-nav-links li {
        width: 100%;
    }
    
    .pgi-nav-links li a {
        display: block;
        padding: 12px 15px;
        background: var(--pgi-light-bg);
        border-radius: 8px;
    }
    
    .pgi-nav-links li a:hover {
        background: rgba(55, 66, 250, 0.1);
    }
    
    .pgi-nav-links li a.pgi-btn-red, .pgi-nav-links li a.pgi-btn-outline {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
    
    /* Make the Navbar Collapse box clean */
    .navbar-collapse {
        background-color: var(--pgi-white);
        padding: 0 15px 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    /* Ensure the header relative positioning for absolute dropdown */
    .pgi-header {
        position: relative;
    }
}

/* Legal Pages Content Styling */
.terms-content {
    background: var(--pgi-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.terms-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pgi-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--pgi-border);
    padding-bottom: 10px;
}

.terms-content p, .terms-content ul {
    color: var(--pgi-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.terms-content ul {
    padding-left: 20px;
}

.terms-content ul li {
    margin-bottom: 10px;
}

.highlight-box {
    background: rgba(55, 66, 250, 0.05);
    border-left: 4px solid var(--pgi-blue);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .terms-content {
        padding: 30px 20px;
        margin-top: -20px;
    }
}

/* Contact Page Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1100px;
    margin: -40px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.contact-info-card {
    background: var(--pgi-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--pgi-border);
}

.contact-info-card h2 {
    color: var(--pgi-blue);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info-card p {
    color: var(--pgi-gray);
    margin-bottom: 15px;
    line-height: 1.7;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.2rem;
    background: rgba(255, 71, 87, 0.1);
    color: var(--pgi-red);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.info-item:hover .info-icon {
    background: var(--pgi-red);
    color: white;
    transform: scale(1.1);
}

.info-text strong {
    display: block;
    color: var(--pgi-dark);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.info-text span {
    color: var(--pgi-gray);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--pgi-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--pgi-border);
}

.contact-form-wrapper h3 {
    margin-bottom: 30px;
    font-size: 1.75rem;
    color: var(--pgi-blue);
}

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

.contact-form-wrapper .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--pgi-dark);
    font-size: 0.95rem;
}

.contact-form-wrapper .form-control {
    height: 50px;
    border-radius: 8px;
    border: 1px solid var(--pgi-border);
    background: var(--pgi-light-bg);
    transition: all 0.3s;
    font-weight: 400;
}

.contact-form-wrapper .form-control:hover {
    border-color: #cbd5e1;
    background: var(--pgi-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.contact-form-wrapper textarea.form-control {
    height: auto;
    padding-top: 15px;
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--pgi-blue);
    box-shadow: 0 0 0 4px rgba(55, 66, 250, 0.1);
    background: white;
}

.btn-submit {
    background: linear-gradient(135deg, var(--pgi-red), #ff6b81);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        margin-top: -20px;
    }
    .contact-info-card, .contact-form-wrapper {
        padding: 30px 20px;
    }
}
