/* Modern HamroCMS Styles */

:root {
    --primary-color: #ff9c00;
    --primary-dark: #e68a00;
    --secondary-color: #2c3e50;
    --dark-color: #1a252f;
    --text-color: #444;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 0 !important;
}

.navbar {
    padding: 6px 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--secondary-color) !important;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    width: 36px;
    height: 36px;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    padding: 8px 15px !important;
    transition: var(--transition);
    border-radius: 6px;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 156, 0, 0.05);
}

/* Admin Bar */
.admin-bar {
    background: var(--dark-color);
    color: #fff;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 2px solid var(--primary-color);
    z-index: 9999;
    position: relative;
}

.admin-bar-links a {
    color: rgba(255,255,255,0.9);
    margin-left: 20px;
    text-decoration: none !important;
    transition: var(--transition);
    font-weight: 600;
}

.admin-bar-links a:hover {
    color: var(--primary-color) !important;
}

.admin-bar-links a.text-danger:hover {
    color: #ff4d4d !important;
}

/* Sections */
section {
    padding: 60px 0;
}

/* Go to Top */
.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #fff;
    color: var(--primary-color) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: var(--shadow-md);
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.to-top:hover {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(255, 156, 0, 0.4);
}

.to-top:focus, .to-top:active {
    outline: none;
    background: #fff;
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-md);
}

.to-top i {
    font-size: 1.2rem;
    line-height: 1;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #eee;
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 156, 0, 0.3);
}

.withbg {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 50px;
    border: 1px solid rgba(0,0,0,0.02);
}

h2, h3 {
    text-align: center;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    color: var(--secondary-color);
    letter-spacing: -1px;
}

h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 10px;
}

/* Welcome Section */
.welcome {
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
}

.welcome-text {
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery */
.gallery {
    background: var(--white);
}

#myBtnContainer {
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

#myBtnContainer .btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    border: 2px solid #eee;
    background: var(--white);
    color: #777;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#myBtnContainer .btn:hover, 
#myBtnContainer .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 156, 0, 0.3);
}

.column {
    display: none;
    padding: 15px;
}

.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.content {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.content:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.content img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.content:hover img {
    transform: scale(1.05);
}

.content h4 {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.content p {
    padding: 0 20px 25px;
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Contact Form */
.contact {
    background: var(--light-bg);
}

.form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 1px solid #e1e1e1;
    transition: var(--transition);
    background: #fafafa;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(255, 156, 0, 0.1);
    border-color: var(--primary-color);
    background: #fff;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 14px 30px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 156, 0, 0.4);
}

/* Footer */
.footer {
    background: var(--secondary-color) !important;
    color: #fff;
    padding: 40px 0 0;
    border-top: 4px solid var(--primary-color);
}

.footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer .text-primary {
    color: var(--primary-color) !important;
}

.footer .border-light {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
}

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

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

.footer-links a {
    color: #fff;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links i {
    width: 20px;
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    text-align: center;
    line-height: 36px;
    border-radius: 8px;
    margin-right: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 156, 0, 0.3);
    border-color: var(--primary-color);
}

.copy-right {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding: 20px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.1);
}

.copy-right a {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

.copy-right a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-item i {
    margin-top: 5px;
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-contact-item div {
    flex: 1;
}

/* Carousel Styling */
.carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
}

.carousel-item {
    height: 600px;
    background-color: #000;
}

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

.carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 40px 40px;
    text-align: left;
}

.carousel-caption h2, .carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    color: #fff;
    text-align: left;
    padding-bottom: 0;
}

.carousel-caption h2::after, .carousel-caption h5::after {
    display: none;
}

.carousel-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.5);
}

.carousel-indicators .active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item img {
        height: 350px;
    }
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    section {
        padding: 50px 0;
    }
    .withbg {
        padding: 30px 20px;
    }
}

#main-wrap {
    scroll-behavior: smooth;
}
