/* Happy Summer Sky - Blazor App Styles */
/* This file extends the template styles with Blazor-specific customizations */

@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,800");
@import url("https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300i,700");

/* ========================================
   Base Styles
   ======================================== */
html, body {
    height: 100%;
    font-family: "Open Sans", sans-serif;
    background: #fff;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5rem;
    -webkit-text-size-adjust: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    color: #888;
    margin: 0;
    padding: 0;
}

a, button {
    transition: all 0.3s ease;
    text-decoration: none;
}

a {
    color: #bfa67a;
}

a:hover {
    color: #aeaeae;
}

a, a:hover, a:focus, button:hover, button:focus {
    outline: 0 !important;
    text-decoration: none;
}

::selection {
    background-color: #191b1d;
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Open Sans Condensed", sans-serif;
    font-weight: 700;
    color: #1e2530;
    line-height: 1.2;
}

.text-color {
    color: #bfa67a;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: transparent;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 37, 48, 0.95);
}

.navbar-brand img {
    max-height: 40px;
}

.menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Pushy Navigation */
.pushy {
    position: fixed;
    width: 300px;
    height: 100%;
    top: 0;
    z-index: 9999;
    background: #1e2530;
    overflow: auto;
    visibility: hidden;
    transition: transform 0.3s ease;
}

.pushy-right {
    right: 0;
    transform: translateX(300px);
}

.pushy-open .pushy-right {
    transform: translateX(0);
    visibility: visible;
}

.pushy-content {
    padding: 60px 30px;
}

.pushy ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pushy li {
    margin-bottom: 15px;
}

.pushy a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pushy a:hover {
    color: #bfa67a;
}

.site-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.5);
}

.pushy-open .site-overlay {
    display: block;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 80px 0;
}

.center-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.center-border {
    width: 80px;
    height: 3px;
    background: #bfa67a;
    margin: 0 auto 40px;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* Spacing utilities */
.space-40 { height: 40px; }
.space-70 { height: 70px; }
.space-80 { height: 80px; }
.space-100 { height: 100px; }
.margin-b-20 { margin-bottom: 20px; }
.margin-b-30 { margin-bottom: 30px; }
.margin-b-50 { margin-bottom: 50px; }
.margin-t-100 {
    margin-top: 50px;
}
/* ========================================
   Team Section
   ======================================== */
.team-wrapper {
    background: #f8f9fa;
}

.person-col {
    position: relative;
    overflow: hidden;
}

.person-col img {
    width: 100%;
    transition: transform 0.3s ease;
}

.person-col:hover img {
    transform: scale(1.05);
}

.person-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(191, 166, 122, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.person-col:hover .person-overlay {
    opacity: 1;
}

.person-inner {
    text-align: center;
    color: #fff;
}

.person-inner h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.person-inner span {
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.person-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.person-inner li {
    display: inline-block;
    margin: 0 8px;
}

.person-inner a {
    color: #fff;
    font-size: 1.3rem;
}

.person-inner a:hover {
    color: #1e2530;
}

/* ========================================
   Projects Grid
   ======================================== */
.projects-section {
    background: #fff;
}

.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 2px solid #ddd;
    padding: 10px 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #bfa67a;
    color: #bfa67a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.project-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.project-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: #f8f9fa;
}

.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: #bfa67a;
    box-shadow: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: none;
}

.contact-details {
    padding-left: 30px;
}

.contact-details .lead {
    margin-bottom: 20px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: inline-block;
    margin-right: 15px;
}

.contact-details a {
    font-size: 1.5rem;
    color: #666;
}

.contact-details a:hover {
    color: #bfa67a;
}

/* ========================================
   Buttons
   ======================================== */
.btn-skin {
    background: #bfa67a;
    color: #fff;
    border: 2px solid #bfa67a;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-skin:hover {
    background: transparent;
    color: #bfa67a;
}

.btn-skin-border {
    background: transparent;
    color: #bfa67a;
    border: 2px solid #bfa67a;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-skin-border:hover {
    background: #bfa67a;
    color: #fff;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1e2530;
    padding: 30px 0;
    color: #888;
}

.footer a {
    color: #888;
}

.footer a:hover {
    color: #bfa67a;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    display: inline-block;
    margin-left: 20px;
}

/* ========================================
   Parallax Section
   ======================================== */
.parallax-section {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.parallax-text h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
}

/* ========================================
   Project Detail Page
   ======================================== */
.project-detail {
    padding: 100px 0 60px;
}

.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.project-header .subtitle {
    color: #bfa67a;
    font-size: 1.1rem;
}

.project-gallery {
    margin-bottom: 40px;
}

.project-gallery img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

.project-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 5px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info ul {
    list-style: none;
    padding: 0;
}

.project-info li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.project-info li:last-child {
    border-bottom: none;
}

.project-info strong {
    color: #1e2530;
    min-width: 120px;
    display: inline-block;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #bfa67a;
    font-weight: bold;
}

/* ========================================
   Blazor-specific Styles
   ======================================== */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid,
.input-validation-error {
    outline: 1px solid #e50000 !important;
    border-color: #e50000 !important;
}

.validation-message {
    color: #e50000;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Valid input styling */
.valid.modified:not([type="checkbox"]) {
    border-color: #28a745 !important;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 5px;
    margin: 1rem 0;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #b32121;
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 9999;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .center-title {
        font-size: 2rem;
    }
    
    .contact-details {
        padding-left: 0;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .center-title {
        font-size: 1.8rem;
    }
    
    .filter-nav {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-right {
        text-align: center !important;
        margin-top: 15px;
    }
    
    .footer li {
        margin: 0 10px;
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #bfa67a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1e2530;
}

/* ========================================
   Loading States
   ======================================== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #bfa67a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Image Carousel/Slider
   ======================================== */
.image-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
}

.carousel-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #bfa67a;
    color: #fff;
}

/* ========================================
   Tabs
   ======================================== */
.about-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.about-tabs .nav-link {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.about-tabs .nav-link:hover,
.about-tabs .nav-link.active {
    color: #bfa67a;
    border-color: #bfa67a;
}

/* ========================================
   Status Badges
   ======================================== */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background: #28a745;
    color: #fff;
}

.status-design {
    background: #6f42c1;
    color: #fff;
}

.status-sold {
    background: #dc3545;
    color: #fff;
}

.status-construction {
    background: #ffc107;
    color: #000;
}

.status-rented {
    background: #17a2b8;
    color: #fff;
}