/* ==========================================================
   HOMEPAGE (homepage.css)
   Styles for index.html only — hero section, important dates,
   about conference, sponsors, about organizer.
   Requires: global.css loaded first.
   ========================================================== */

/* --- Nav Button Override --- */
.nav-links button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #000000;
    padding: 5px;
    margin: 0px 5px;
}

/* --- Typography --- */
@font-face {
    font-family: 'MyCustomFont';
    src: url('../Photo/hp-simplified-hans-light.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'MyCustomFont', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'MyCustomFont', serif;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

/* --- Hero Section (homepage) --- */
.hero1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    color: white;
    width: 100%;
    height: 60vh;
    margin: 0 auto;
    position: relative;
    flex-direction: row;
    box-sizing: border-box;
}

.hero1:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../Photo/main_baground_image.jpg");
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -1;
    filter: blur(1px);
}

.hero-content1 {
    max-width: 50%;
    text-align: left;
    z-index: 1;
    padding: 20px;
    margin-left: 0;
    box-sizing: border-box;
}

.hero-content1 h1 {
    font-size: 3em;
    margin-bottom: 10px;
    white-space: nowrap;
}

.hero-content1 h2 {
    font-size: 2em;
    margin-bottom: 15px;
    white-space: nowrap;
}

.hero-content1 p {
    font-size: 1.2em;
    margin-bottom: 20px;
    white-space: nowrap;
}

/* --- Venue Link --- */
.venue-link {
    font-size: 1.0rem;
    font-weight: bold;
    color: #f4f4f4;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.venue-link:hover {
    color: #2980b9;
    transform: scale(1.05);
}

/* --- Submit Paper Button --- */
.submit-paper-btn {
    display: inline-block;
    background-color: #e60000;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.submit-paper-btn:hover {
    background-color: #b30000;
}

/* --- Hero Image --- */
.hero-image1 img {
    max-width: 500px;
    height: auto;
    border-radius: 10px;
}

/* --- Important Dates Section --- */
.important-dates {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px 40px;
    border-radius: 20px;
    max-width: 1400px;
    margin: 50px auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.important-dates h2 {
    font-size: 2.5em;
    color: #333333;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 5px solid #ff7b00;
}

.important-dates::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
    animation: float 6s infinite alternate;
}

.important-dates::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(153, 51, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
    animation: float 6s infinite alternate-reverse;
}

@keyframes float {
    to {
        transform: translateY(20px);
    }
}

/* --- Date Cards --- */
.date-card-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    padding-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    z-index: 1;
    position: relative;
}

.date-card {
    background: linear-gradient(135deg, #ffffff, #fdfdff);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px 15px;
    width: 200px;
    transition: all 0.4s ease;
    position: relative;
}

.date-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: linear-gradient(135deg, #ff7b00, #7b5bff);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.date-card:hover h3,
.date-card:hover p {
    color: #ffffff;
}

.date-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.date-card p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

/* --- About Conference & Why Attend --- */
.about-conference,
.why-attend-section {
    text-align: center;
    margin: 40px auto;
    background: linear-gradient(to right, #f7f7f7, #e0e0e0);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    position: relative;
    overflow: hidden;
    transition: background-image 0.6s ease-out;
}

.about-conference h2,
.why-attend-section h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.about-conference p,
.why-attend-section p {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Logos / Sponsors Section --- */
.logos {
    text-align: center;
    padding: 40px 20px;
    background-color: #f4f4f4;
}

.logos-container {
    margin-bottom: 50px;
}

.logos-heading {
    font-size: 2.5rem;
    font-weight: bolder;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 5px;
}

.logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-item {
    max-width: 350px;
    max-height: 100px;
    object-fit: contain;
}

.sponsor-logos .logo-item {
    mix-blend-mode: multiply;
    max-height: 150px;
    max-width: 400px;
}

/* --- About the Organizer --- */
.about-organizer {
    background: linear-gradient(to right, #f0f8ff, #e0eafc);
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.about-organizer h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.about-organizer h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #3498db;
    border-radius: 2px;
}

.organizer-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
    text-align: justify;
    padding: 0 20px;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
}

/* --- Social Icons (homepage override) --- */
.social-icons img {
    width: 24px;
    height: 24px;
    margin: 0 5px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================== */

/* --- Tablets (≤1024px) --- */
@media (max-width: 1024px) {
    .hero1 {
        flex-direction: column;
        padding: 30px 15px;
    }

    .hero-content1 {
        max-width: 90%;
        text-align: center;
        margin-left: 0;
    }

    .hero-content1 h1 {
        font-size: 1.9em;
        white-space: normal;
    }

    .hero-content1 h2 {
        font-size: 1.6em;
        white-space: normal;
    }

    .hero-content1 p {
        font-size: 1.1em;
        white-space: normal;
    }

    .hero-image1 img {
        max-width: 100%;
        margin-top: 20px;
    }

    .important-dates {
        padding: 20px 15px;
        margin: 20px auto;
    }

    .important-dates h2 {
        font-size: 1.6em;
        text-align: center;
    }

    .date-card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .date-card {
        width: 250px;
        height: 111px;
        margin: 10px 0;
    }
}

/* --- Large Screens (≥1025px) --- */
@media (min-width: 1025px) {
    .hero1 {
        flex-direction: row;
        padding: 50px 20px;
    }

    .hero-content1 {
        max-width: 50%;
        text-align: left;
    }

    .hero-content1 h1 {
        font-size: 3em;
        white-space: nowrap;
    }

    .hero-content1 h2 {
        font-size: 2.5em;
        white-space: nowrap;
    }

    .hero-content1 p {
        font-size: 1.2em;
        white-space: nowrap;
    }

    .hero-image1 img {
        max-width: 500px;
    }

    .important-dates {
        padding: 20px 30px;
        margin: 50px auto;
    }

    .important-dates h2 {
        font-size: 2em;
        text-align: left;
    }

    .date-card-container {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .date-card {
        width: 180px;
    }
}

/* --- 720px Devices --- */
@media (max-width: 720px) {
    .hero1 {
        flex-direction: column;
        padding: 30px 15px;
    }

    .hero-content1 {
        max-width: 85%;
        text-align: center;
        margin-left: 0;
    }

    .hero-content1 h1 {
        font-size: 1.7em;
        white-space: normal;
    }

    .hero-content1 h2 {
        font-size: 1.8em;
        white-space: normal;
    }

    .hero-content1 p {
        font-size: 1.0em;
        white-space: normal;
    }

    .hero-image1 img {
        max-width: 100%;
        margin-top: 20px;
    }

    .important-dates {
        padding: 20px 15px;
    }

    .important-dates h2 {
        font-size: 1.5em;
        text-align: center;
    }

    .date-card-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .date-card {
        width: 220px;
    }
}

/* --- 520px Devices --- */
@media (max-width: 520px) {
    .hero1 {
        flex-direction: column;
        padding: 25px 10px;
    }

    .hero-content1 {
        max-width: 90%;
        text-align: center;
        margin-left: 0;
    }

    .hero-content1 h1 {
        font-size: 1.6em;
        white-space: normal;
    }

    .hero-content1 h2 {
        font-size: 1.7em;
        white-space: normal;
    }

    .hero-content1 p {
        font-size: 1em;
        white-space: normal;
    }

    .hero-image1 img {
        max-width: 100%;
        margin-top: 20px;
    }

    .submit-paper-btn {
        padding: 8px 12px;
    }

    .important-dates {
        padding: 15px 10px;
    }

    .important-dates h2 {
        font-size: 1.4em;
        text-align: center;
    }

    .date-card-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .date-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* --- 480px Devices --- */
@media (max-width: 480px) {
    .hero-content1 {
        max-width: 90%;
        text-align: center;
        margin-left: 0;
    }

    .hero-content1 h1 {
        font-size: 1.6em;
    }

    .hero-content1 h2 {
        font-size: 1.3em;
    }

    .hero-content1 p {
        font-size: 0.8em;
    }

    .submit-paper-btn {
        padding: 10px 15px;
    }

    .important-dates {
        padding: 12px 8px;
    }

    .important-dates h2 {
        font-size: 1.3em;
        text-align: center;
    }

    .date-card-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .date-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .date-card h3 {
        font-size: 1.1em;
    }

    .date-card .date {
        font-size: 1.4em;
    }

    .date-card p {
        font-size: 0.8em;
    }
}

/* --- 380px and Below --- */
@media (max-width: 380px) {
    .hero-content1 {
        max-width: 90%;
        text-align: center;
        padding: 10px;
    }

    .hero-content1 h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    .hero-content1 h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }

    .hero-content1 p {
        font-size: 0.8em;
    }

    .submit-paper-btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .important-dates {
        padding: 10px 5px;
    }

    .important-dates h2 {
        font-size: 1.2em;
    }

    .date-card-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .date-card {
        width: 100%;
        margin-bottom: 15px;
    }

    .date-card h3 {
        font-size: 1em;
    }

    .date-card .date {
        font-size: 1.2em;
    }

    .date-card p {
        font-size: 0.7em;
    }
}
