/* CSS Variables */
:root {
    --primary: #4f46e5;
    /* Indigo-600 */
    --primary-dark: #3730a3;
    /* Indigo-800 */
    --accent: #f59e0b;
    /* Amber-500 */
    --bg-light: #f8fafc;
    /* Slate-50 */
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    /* Slate-900 */
    --text-muted: #64748b;
    /* Slate-500 */
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    transition: 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links li:last-child a.admin-icon {
    font-size: 1.2rem;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: 0.3s;
}

.nav-links li:last-child a.admin-icon:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* Hero */
.hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
    color: var(--white);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide video,
.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 25vh;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 20;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--primary);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.3);
    border-color: var(--primary);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 3rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 25;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    transition: 0.4s;
    border: 1px solid #f1f5f9;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-page-grid {
    grid-template-columns: 1fr 1fr;
}

.detail-page-grid {
    grid-template-columns: 2fr 1fr;
}

.home-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card .img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.1);
}

/* Featured Badge */
.badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Societies Section Enhancements */
.society-card {
    border: 1px solid #e2e8f0;
}

.society-card .card-content {
    text-align: center;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card-price {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: block;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Forms */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: #fff;
    color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablet Devices (768px and below) */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        position: relative;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Show Hamburger Menu */
    .hamburger {
        display: flex;
    }

    /* Mobile Navigation Menu */
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, box-shadow 0.3s ease;
        box-shadow: none;
        z-index: 999;
    }

    .nav-links.active {
        max-height: 300px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1rem;
        display: block;
        padding: 0.5rem 1rem;
    }

    .nav-links li:last-child a.admin-icon {
        width: auto;
        height: auto;
        background: transparent;
        border-radius: 0;
        display: inline-flex;
        gap: 8px;
        align-items: center;
    }

    .nav-links li:last-child a.admin-icon::after {
        content: 'Admin Panel';
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1rem;
    }

    .nav-links li:last-child a.admin-icon:hover {
        background: transparent;
        color: var(--primary);
    }

    /* Hero Section */
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content {
        padding-top: 15vh;
        padding: 15vh 20px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .slider-controls {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* Stats Bar */
    .stats-bar {
        padding: 2rem 0;
        margin-top: -2rem;
        border-radius: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    /* Sections */
    .section {
        padding: 4rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-box {
        padding: 2rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .feature-box h4 {
        font-size: 1.15rem;
    }

    /* Cards Grid */
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .card .img-container {
        height: 200px;
    }

    .card-content {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-price {
        font-size: 1.15rem;
    }

    /* Contact Section */
    #contact .grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    #contact .section-title h2 {
        font-size: 2.2rem !important;
        text-align: center !important;
    }

    #contact .section-title {
        text-align: center !important;
    }

    #contact p {
        text-align: center;
        font-size: 1rem !important;
    }

    #contact>div>div:first-child {
        order: 2;
    }

    #contact>div>div:last-child {
        order: 1;
    }

    #contact div[style*="display: flex"] {
        flex-direction: column;
        align-items: center;
    }

    #contact .btn {
        width: 100%;
        text-align: center;
    }

    /* Contact Page Grid */
    .contact-page-grid,
    .detail-page-grid,
    .home-contact-grid {
        grid-template-columns: 1fr !important;
    }

    .home-contact-grid {
        gap: 3rem !important;
    }

    /* Listing Page Filter */
    .container .grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Listing Page Filter */
    select {
        width: 100%;
        max-width: 300px;
    }

    /* Footer */
    footer {
        padding: 3rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Forms */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

/* Mobile Landscape (576px and below) */
@media (max-width: 576px) {

    /* Typography */
    body {
        font-size: 14px;
    }

    /* Navigation - Mobile Menu */
    .navbar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .logo {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    /* Hero Section */
    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content {
        padding-top: 10vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .slider-controls {
        padding: 0 0.5rem;
    }

    .slider-dots {
        bottom: 15px;
        gap: 6px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    /* Stats Bar */
    .stats-bar {
        padding: 1.5rem 0;
        margin-top: -1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    /* Features */
    .features-grid {
        gap: 1.25rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .feature-box h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .feature-box p {
        font-size: 0.85rem;
    }

    /* Cards */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card .img-container {
        height: 180px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .card-price {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    /* Contact Section */
    #contact .grid {
        gap: 2rem !important;
    }

    #contact .section-title h2 {
        font-size: 1.8rem !important;
    }

    #contact p {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    /* Footer */
    footer {
        padding: 2.5rem 0;
    }

    /* Lightbox */
    #soc-lightbox span {
        top: 20px !important;
        right: 20px !important;
        font-size: 35px !important;
    }

    #soc-lightbox button {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }

    #soc-lightbox button:first-of-type {
        left: 15px !important;
    }

    #soc-lightbox button:last-of-type {
        right: 15px !important;
    }

    #soc-lightbox-content {
        width: 90% !important;
        height: 80% !important;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Logo */
    .logo {
        font-size: 1rem;
    }

    /* Navigation */
    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .nav-links li:last-child a.admin-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .hero-content .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Stats */
    .stats-grid {
        gap: 0.75rem;
    }

    .stat-item h3 {
        font-size: 1.3rem;
    }

    .stat-item p {
        font-size: 0.7rem;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 1.4rem;
    }

    .section-title p {
        font-size: 0.85rem;
    }

    /* Features */
    .feature-box {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .feature-box h4 {
        font-size: 0.95rem;
    }

    .feature-box p {
        font-size: 0.8rem;
    }

    /* Cards */
    .card .img-container {
        height: 160px;
    }

    .card-content {
        padding: 0.875rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-price {
        font-size: 1rem;
    }

    /* Contact */
    #contact .section-title h2 {
        font-size: 1.6rem !important;
    }

    #contact p {
        font-size: 0.85rem !important;
    }

    #contact .btn {
        padding: 10px 16px !important;
        font-size: 0.85rem;
    }

    /* Forms */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    label {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 1.2rem;
    }

    .stat-item h3 {
        font-size: 1.1rem;
    }

    .feature-box h4 {
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 0.9rem;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .hero-content {
        padding-top: 20vh;
    }

    .stats-bar {
        margin-top: 0;
    }
}