/* assets/css/style.css */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #059669;
    --accent: #dc2626;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
    font-size: 16px;
    padding-top: 76px;
}

/* Navbar */
.navbar {
    background: rgba(204, 204, 255, 1) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
}

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

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.05);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Active navigation item */
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.services-preview, .why-choose-us, .services-carousel-section, .about-content, .services-detail, .contact-content-section {
    padding: 80px 0;
}

.services-preview, .services-carousel-section {
    background: var(--bg-light);
}

.section-title, .section-header h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-header p {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Cards */
.service-card, .feature, .service-detail-card, .feature-item, .contact-form-card, .contact-info-card, .stat-card, .detail-card, .message-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.service-card:hover, .feature:hover, .service-detail-card:hover, .feature-item:hover, .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon, .feature i, .service-icon-large, .feature-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-icon-large {
    font-size: 4rem;
}

/* Page Headers */
.about-header, .services-header, .contact-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-header::before, .services-header::before, .contact-header-section::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 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.about-header h1, .services-header h1, .contact-header-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.about-header p, .services-header p, .contact-header-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Forms */
.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h3, .footer h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
}

.footer h3::after, .footer h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.footer a, .footer p {
    color: #d1d5db;
    text-decoration: none;
    margin: 0.4rem 0;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: block;
}

.footer a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.footer i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-dashboard-section, .admin-services-section, .admin-users-section, .view-submission-section, .admin-change-password, .admin-login-section {
    padding: 120px 0 50px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

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

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    color: var(--text-light);
    font-weight: 500;
}

.submission-item {
    background: white;
    padding: 1.25rem;
    margin: 0.75rem 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.submission-item.unread {
    border-left-color: var(--accent);
    background: #fff5f5;
}

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

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

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

/* Contact Info */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: white;
}

.contact-details h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-outline-light {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .section-title, .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card, .feature, .service-detail-card, .contact-form-card, .contact-info-card {
        padding: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-dashboard-section, .admin-services-section, .admin-users-section, .view-submission-section {
        padding: 100px 0 30px;
    }
    
    .contact-info-item {
        margin: 1.5rem 0;
        padding: 0.75rem 0;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
}


/* Additional styles for JS features */
.back-to-top:hover {
    background: #b91c1c !important;
    transform: scale(1.1);
}

.character-counter {
    text-align: right;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-valid {
    border-color: var(--secondary) !important;
}

.is-invalid {
    border-color: var(--accent) !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}


@media (max-width: 480px) {
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 30px;
    }
    
    .about-header h1, .services-header h1, .contact-header-section h1 {
        font-size: 2rem;
    }
    
    .contact-form-card, .contact-info-card {
        padding: 1.5rem;
    }
}