/* =========================================================
   1. GOOGLE FONTS & CSS VARIABLES
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Colors pulled from the SK Property Logo */
    --primary-green: #0a4d2e; 
    --primary-red: #a31621;   
    --accent-gold: #b38b4d;   
    --text-dark: #2d2d2d;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light-gray: #f4f7f6;
}

/* =========================================================
   2. GLOBAL STYLES & RESETS
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* =========================================================
   3. HEADER & NAVIGATION
   ========================================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 80px; /* Adjust this based on your logo file's proportions */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-red);
}

/* =========================================================
   4. HERO SECTION (Front Page Banner)
   ========================================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    background: linear-gradient(135deg, var(--bg-light-gray) 0%, var(--bg-white) 100%);
    min-height: 70vh;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-image {
    max-width: 45%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--accent-gold);
}

/* =========================================================
   5. MANAGEMENT TEAM SECTION
   ========================================================= */
.team-section {
    padding: 80px 5%;
    background-color: var(--bg-white);
    text-align: center;
}

.team-section h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

/* Red underline decoration for section titles */
.team-section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--primary-red);
    bottom: -10px;
    left: 20%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: var(--bg-light-gray);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--primary-green);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the images perfectly round */
    object-fit: cover; /* Ensures images don't stretch */
    border: 4px solid var(--bg-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.team-member p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.team-member p:last-child {
    font-weight: 600;
    color: var(--primary-red);
}

/* =========================================================
   6. PROPERTIES SECTION (Placeholder)
   ========================================================= */
#properties {
    padding: 80px 5%;
    background-color: var(--bg-light-gray);
    text-align: center;
}

#properties h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* =========================================================
   7. FOOTER
   ========================================================= */
footer {
    background-color: var(--primary-green);
    color: var(--bg-white);
    text-align: center;
    padding: 40px 5%;
}

footer h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

footer p {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* =========================================================
   8. RESPONSIVE DESIGN (Mobile Phones)
   ========================================================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }

    .hero-content {
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* =========================================================
   9. DYNAMIC PROPERTY CARDS (Added via JS)
   ========================================================= */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.property-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.property-info .location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.property-info .price {
    font-size: 1.3rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 15px;
}

.property-card button {
    background-color: var(--accent-gold);
    color: var(--bg-white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.property-card button:hover {
    background-color: var(--primary-green);
}

/* =========================================================
   10. PROPERTY DETAILS MODAL (Popup)
   ========================================================= */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Black background with opacity */
    overflow: auto; /* Enable scroll if content is long */
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-btn {
    color: var(--primary-red);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-green);
}

.modal-details h2 {
    color: var(--primary-green);
    margin-bottom: 5px;
}

.modal-details .price {
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-media {
    margin: 20px 0;
}

.modal-media img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-media video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-desc {
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* =========================================================
   11. NEW UPDATES: HERO TEXT, WHATSAPP, AND SHIVLING
   ========================================================= */

/* Differentiating the Hero Text */
.hero-content .main-title {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-content .association-text {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 25px;
}

/* Sizing the Shivling Image */
.shivling-img {
    max-width: 300px; /* Limits how wide it can get */
    width: 100%; /* Keeps it responsive on small screens */
    height: auto;
    border: 3px solid var(--accent-gold); /* Thinner border so it's less heavy */
    border-radius: 10px;
}

/* WhatsApp Clickable Buttons */
.whatsapp-btn {
    display: inline-block;
    background-color: #25D366; /* Official WhatsApp Green */
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}