/* ========================================
   Aaha Sanchar - Kamal Giri Portfolio
   Complete Styles
   ======================================== */

/* ===== Variables ===== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* ===== Navigation ===== */
.navbar {
    background: var(--dark) !important;
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-brand small {
    display: block;
    font-size: 0.6rem;
    opacity: 0.7;
    font-weight: 400;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-content h1 .text-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats h3 {
    font-size: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border: 4px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-element:nth-child(2) { top: 60%; right: 10%; animation-delay: 2s; }
.float-element:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== Service Cards ===== */
.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px;
}

/* ===== Gov Link Cards ===== */
.gov-link-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.gov-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.gov-link-card i {
    font-size: 2rem;
}

/* ===== News Cards ===== */
.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 20px;
}

/* ===== Contact Section ===== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
}

.btn-social {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
}

.footer a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 8px;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-width: 300px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .hero-stats h3 {
        font-size: 1.5rem;
    }
    
    .office-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .calendar-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   Footer Styles - Fixed Color Contrast
   ======================================== */

.footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    border-top: 4px solid #0d6efd;
    margin-top: 2rem;
}

/* Footer Headings */
.footer h5 {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer h6 {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Footer Text Colors - High Contrast */
.text-light-80 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.text-light-70 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-light-60 {
    color: rgba(255, 255, 255, 0.65) !important;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Footer Links */
.footer-link {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #0d6efd !important;
    padding-left: 5px;
}

/* Footer List Items */
.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li i {
    color: #0d6efd;
    width: 18px;
}

/* Social Links */
.social-link {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #0d6efd;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

/* Footer Divider */
.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 1.5rem 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .text-lg-end {
        text-align: center !important;
    }
    
    .social-link {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer h6 {
        font-size: 0.9rem;
    }
    
    .footer ul li {
        font-size: 0.85rem;
    }
}

/* Quick Hero Stats Fix */
.hero-stats .stat-item h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-stats .stat-item p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

/* Stats Numbers - White with Glow */
.hero-stats .stat-item .fw-bold {
    color: #ffffff !important;
    text-shadow: 0 0 30px rgba(13, 110, 253, 0.3);
}

/* ========================================
   Professional Navigation Styles
   ======================================== */

/* Top Bar */
.top-bar {
    background: #0a0a1a;
    color: rgba(255,255,255,0.7);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-contact span {
    color: rgba(255,255,255,0.7);
}

.top-bar-contact i {
    color: #0d6efd;
}

.top-bar-social a {
    color: rgba(255,255,255,0.6);
    margin-left: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-bar-social a:hover {
    color: #0d6efd;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff !important;
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand small {
    display: block;
    font-size: 0.55rem;
    opacity: 0.7;
    font-weight: 400;
    -webkit-text-fill-color: rgba(255,255,255,0.7);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-dark .navbar-nav .nav-link i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15);
    border-bottom: 2px solid #0d6efd;
}

/* Hero Section - Updated */
.hero-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 40%, #0f3460 100%);
    color: white;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .lead {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(13,110,253,0.3);
    display: block;
}

.stat-item .label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13,110,253,0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item .number {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand small {
        font-size: 0.45rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-item .number {
        font-size: 1.4rem;
    }
    
    .stat-item .label {
        font-size: 0.75rem;
    }
}

/* Fallback for missing images */
.img-fallback {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    min-height: 200px;
    border-radius: 12px;
}

.img-fallback i {
    font-size: 3rem;
    opacity: 0.5;
}

.img-fallback .text {
    font-size: 1rem;
    margin-left: 15px;
    opacity: 0.8;
}

/* For news cards without images */
.news-card .card-img-top-fallback {
    height: 200px;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #0d6efd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 3rem;
}