/* ====================
   TABLE OF CONTENTS
   ====================
   1. Global Styles
   2. Header & Navigation
   3. Hero Slider
   4. Services Section
   5. Statistics Section
   6. About Page
   7. Gallery Section
   8. Contact Page
   9. Footer
   10. Admin Panel Styles
   ==================== */

/* 1. Global Styles */
:root {
    --primary-color: #f48520;
    --secondary-color: #6c757d;
    --dark-color: #d2086a;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

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

.bg-dark {
    background-color: #d2086a !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #6c0e5c !important;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* 2. Header & Navigation */
.top-header {
    background: var(--dark-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-header a {
    color: white;
    transition: color 0.3s ease;
}

.top-header a:hover {
    color: var(--primary-color);
}

.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white !important;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 15px !important;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

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

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

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0;
    padding: 10px 0;
    min-width: 220px;
}

.dropdown-item {
    padding: 8px 20px;
    color: var(--dark-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 30px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: "\f105";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    margin-top: 3px;
}

/* 3. Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 20px;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

/* 4. Services Section */
.services-carousel {
    padding: 80px 0;
    background: var(--light-color);
}

.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card img {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: 25px;
    text-align: center;
}

.service-card .card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card .btn {
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 5. Statistics Section */
.statistics {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
}

.stat-box {
    text-align: center;
    padding: 30px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-box:last-child {
    border-right: none;
}

.stat-box h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    animation: countUp 2s ease;
}

.stat-box p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. About Page */
.about-content {
    padding: 80px 0;
}

.quote-block {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    position: relative;
}

.quote-block:before,
.quote-block:after {
    content: '"';
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    font-family: serif;
}

.quote-block:before {
    top: 20px;
    left: 20px;
}

.quote-block:after {
    bottom: 20px;
    right: 20px;
    transform: rotate(180deg);
}

.about-text h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.cta-box p {
    color: white !important;
    font-size: 18px;
    margin: 0;
}

/* 7. Gallery Section */
.gallery-section {
    padding: 80px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-info {
    bottom: 0;
}

.gallery-info h5 {
    margin-bottom: 5px;
    font-size: 18px;
}

.gallery-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 8. Contact Page */
.contact-info {
    height: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.info-item i {
    font-size: 20px;
    width: 30px;
}

.info-item p {
    margin-top: 5px;
    color: #666;
}

.contact-form {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
}

/* 9. Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

footer h5 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

footer p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

footer hr {
    margin: 40px 0 20px;
    border-color: rgba(255,255,255,0.1);
}

footer .text-center p {
    margin: 0;
    font-size: 14px;
}

/* 10. Admin Panel Styles */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-login .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.admin-login .card-header {
    background: transparent;
    border-bottom: none;
    padding: 30px 30px 10px;
}

.admin-login .card-body {
    padding: 30px;
}

.admin-login .form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.admin-login .btn {
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-dashboard {
    background: #f4f6f9;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--dark-color);
    color: white;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    padding: 20px 0;
}

.admin-sidebar .logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-sidebar .logo img {
    max-width: 150px;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-left: 30px;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.admin-content {
    margin-left: 250px;
    padding: 30px;
}

.admin-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.admin-card .card-header {
    background: transparent;
    border-bottom: 2px solid #f4f6f9;
    padding: 0 0 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card .card-header h5 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
}

.admin-table {
    width: 100%;
    background: white;
}

.admin-table th {
    background: #f8f9fa;
    color: var(--dark-color);
    font-weight: 600;
    padding: 12px;
}

.admin-table td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f4f6f9;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.admin-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0 2px;
}

/* Loading Spinner */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-color);
    transform: translateY(-5px);
}