/* ============================= */
/* RESET & BASE STYLES */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    /* Allow scrolling vertically, hide horizontal scroll */
    overflow-x: hidden;
    overflow-y: auto; 
    background: linear-gradient(
        135deg,
        #f6c1b5,
        #f7d8bd,
        #f9e6cf
    );
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ============================= */
/* PARTICLE CANVAS (Background) */
/* ============================= */
#particles {
    position: fixed; /* Stays in place while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Allows clicking through to cards */
}

/* ============================= */
/* MAIN CONTAINER */
/* ============================= */
.main-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    animation: fadeIn 1.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================= */
/* 3D LOGO SECTION */
/* ============================= */
.logo-container {
    width: 100%;
    max-width: 450px;
    height: 300px;
    margin: 0 auto 20px;
}

model-viewer {
    width: 100%;
    height: 100%;
    outline: none;
}

/* ============================= */
/* TYPOGRAPHY */
/* ============================= */
.main-heading {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #3a2e2a;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sub-heading {
    font-size: 16px;
    color: #5a4a44;
    margin-bottom: 50px;
    max-width: 600px;
    line-height: 1.5;
}

/* ============================= */
/* CARD LAYOUT */
/* ============================= */
.card-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; /* Essential for mobile stacking */
    width: 100%;
}

/* ============================= */
/* GLASS CARDS */
/* ============================= */
.glass-card {
    width: 180px;
    height: 110px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    
    /* These two lines create the glass effect */
    -webkit-backdrop-filter: blur(15px); 
    backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; 
    color: #3a2e2a;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Hover Effect */
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 1);
    color: #000;
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* MOBILE RESPONSIVE (Phones) */
/* ============================= */
@media (max-width: 768px) {
    .logo-container {
        height: 200px; /* Smaller logo on phones */
    }

    .main-heading {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .sub-heading {
        font-size: 14px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .card-container {
        gap: 15px;
    }

    .glass-card {
        width: 145px; /* Fits two-per-row on most phones */
        height: 95px;
        font-size: 16px;
    }
}