/* Star De Silva - Premium Real Estate Styles */

:root {
    --primary-red: #DC2626;
    --primary-red-hover: #B91C1C;
    --text-black: #111827;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-black);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-black);
}

.letter-spacing-2 {
    letter-spacing: 0.1em;
}

.leading-relaxed {
    line-height: 1.7;
}

/* Custom Button Styles */
.btn-primary-custom {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.btn-primary-custom:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image: url('imgs/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.hero-title {
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.premium-navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.premium-navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.1);
}

.navbar-brand {
    letter-spacing: -0.02em;
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-black);
}

.brand-mark {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

.nav-link {
    color: var(--text-black) !important;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
    border-radius: 999px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.nav-link:hover {
    color: var(--primary-red) !important;
    background-color: rgba(220, 38, 38, 0.08);
}

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

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

.nav-link.active {
    color: var(--primary-red) !important;
    background-color: rgba(220, 38, 38, 0.1);
}

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

.nav-cta {
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2);
}

.premium-toggler {
    border-radius: 0.6rem;
}

.premium-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15);
}

/* Text Colors */
.text-primary-custom {
    color: var(--primary-red) !important;
}

.bg-primary-custom {
    background-color: var(--primary-red) !important;
}

/* Spacing */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(220, 38, 38, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(220, 38, 38, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Property Cards */
.property-card {
    transition: all 0.4s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1) !important;
}

.property-image {
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

/* Process Section */
.process-card {
    background-color: var(--white);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.process-number {
    width: 60px;
    height: 60px;
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    border: 2px solid rgba(220, 38, 38, 0.2);
}

.process-line {
    height: 2px;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.2));
    margin-top: -2px;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.testimonial-avatar {
    background-color: var(--text-gray) !important;
}

/* Form Styles */
.form-control {
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

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

.contact-form-wrapper {
    background-color: var(--white);
}

/* About Image */
.about-image-wrapper {
    overflow: hidden;
}

.about-image {
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

/* Footer */
.hover-red {
    transition: color 0.3s ease;
}

.hover-red:hover {
    color: var(--primary-red) !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 80vh;
    }

    .premium-nav-collapse {
        margin-top: 0.9rem;
        padding: 1rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(17, 24, 39, 0.08);
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .process-line {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .brand-mark {
        font-size: 1.25rem;
    }

    .display-3 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: rgba(220, 38, 38, 0.2);
    color: var(--text-black);
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Badge Customization */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}