/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --info-color: #3498db;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Hero Sections */
.page-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p.lead {
    font-size: 1.25rem;
    max-width: 600px;
}

/* Specific hero backgrounds */
.home-hero {
    background-image: url('../images/hero1.jpg');
}

.about-hero {
    background-image: url('../images/about-hero.jpg');
}

.services-hero {
    background-image: url('../images/services-hero.jpg');
}

.projects-hero {
    background-image: url('../images/projects-hero.jpg');
}

.license-hero {
    background-image: url('../images/license-hero.jpg');
}

.contact-hero {
    background-image: url('../images/contact-hero.jpg');
}

/* Section Styling */
.section-title {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.service-icon {
    color: var(--primary-color);
}

.value-card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.value-icon {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Carousel */
.carousel-caption {
    bottom: 30%;
    text-align: left;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.project-image img {
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Process Steps */
.process-steps {
    position: relative;
    padding-left: 50px;
}

.process-step {
    position: relative;
    padding-bottom: 30px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-number {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-content {
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.process-step::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.process-step:last-child::before {
    display: none;
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.testimonial-text {
    font-style: italic;
    position: relative;
}

.testimonial-author img {
    border: 3px solid var(--primary-color);
}

/* Contact Form */
.contact-info-card {
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}


/* ======================
   Contact Page Styles
   ====================== */

/* Contact Form Container */
.contact-form-section {
    background-color: #fff;
    padding: 3rem 0;
}

/* Form Styling */
#contactForm {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#contactForm label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

#contactForm .form-control,
#contactForm .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#contactForm .form-control:focus,
#contactForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Form Validation */
#contactForm .is-invalid {
    border-color: var(--danger-color);
}

#contactForm .invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
}

/* Submit Button */
#contactForm .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

#contactForm .btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Success Message */
#formSuccess {
    display: none;
    padding: 1.5rem;
    border-radius: 6px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    margin-top: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

/* Contact Info Cards */
.contact-info-container {
    padding-left: 2rem;
}

.contact-info-card {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-info-card .card-body {
    padding: 1.5rem;
}

.contact-info-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.contact-info-card p {
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #2980b9;
}

.contact-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* Map Section */
.map-section {
    padding: 3rem 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

/* Departments Section */
.departments-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.department-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.department-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.department-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.department-card p.text-muted {
    min-height: 3rem;
    margin-bottom: 1rem;
}

.department-card .btn-outline-primary {
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .contact-info-container {
        padding-left: 0;
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    #contactForm {
        padding: 1.5rem;
        
    }
    
    .contact-form-section,
    .map-section,
    .departments-section {
        padding: 2rem 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        min-height: 300px;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        min-height: 250px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ======================
   Thank You Page Styles
   ====================== */

/* Thank You Hero Section */
.thank-you-hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.thank-you-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.thank-you-hero p.lead {
    font-size: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.confirmation-icon {
    animation: bounceIn 1s ease;
}

/* Steps Section */
.step-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .thank-you-hero {
        min-height: 50vh;
        padding: 4rem 0;
    }
    
    .thank-you-hero h1 {
        font-size: 2.5rem;
    }
    
    .thank-you-hero p.lead {
        font-size: 1.25rem;
    }
    
    .step-card {
        margin-bottom: 1rem;
    }
}