/* General Body Style */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* ====== ENHANCED HEADER WITH IMPROVED RECTANGLE LOGO SUPPORT ====== */
.logo-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    padding: 12px 0;
    border-bottom: 3px solid #BE2633;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.logo-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 0 15px;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* ====== IMPROVED RECTANGLE LOGO STYLES ====== */
.header-logo {
    width: auto;
    height: 60px;
    max-width: 180px;
    min-width: 120px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    padding: 5px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.header-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-text {
    flex-shrink: 0;
    min-width: 0;
}

.logo-text h1 {
    color: #243658;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conference-cross {
    color: #BE2633;
    font-size: 1.1em;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(190, 38, 51, 0.4);
    animation: pulse-cross 2s infinite ease-in-out;
}

.logo-text p {
    color: #4a5568;
    font-size: 0.8rem;
    margin: 2px 0 0 0;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.8;
}

@keyframes pulse-cross {
    0%, 100% {
        text-shadow: 0 0 8px rgba(190, 38, 51, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 12px rgba(190, 38, 51, 0.6);
        transform: scale(1.1);
    }
}

/* ====== SIMPLE TOGGLE BUTTON STYLES ====== */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(190, 38, 51, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #243658;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 36px;
}

.nav-toggle:hover {
    background: rgba(190, 38, 51, 0.1);
    border-color: rgba(190, 38, 51, 0.5);
    color: #BE2633;
    transform: translateY(-50%) scale(1.05);
}

.nav-toggle:focus {
    outline: 2px solid #BE2633;
    outline-offset: 2px;
}

/* Active state when menu is open */
.nav-toggle.active {
    background: linear-gradient(135deg, #BE2633, #d63447);
    color: white;
    border-color: #BE2633;
}

.nav-toggle.active:hover {
    background: linear-gradient(135deg, #d63447, #BE2633);
}

/* ====== NAVIGATION STYLES ====== */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    transition: all 0.3s ease;
}

.header-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
}

.header-nav ul li {
    margin: 0;
    flex-shrink: 1;
}

.header-nav ul li a {
    display: inline-block;
    text-decoration: none;
    color: #243658;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 12px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(36, 54, 88, 0.08);
    border: 1px solid rgba(36, 54, 88, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    min-height: 14px;
    line-height: 1.2;
}

.header-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #BE2633, #d63447);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.header-nav ul li a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    border-color: rgba(190, 38, 51, 0.3);
}

.header-nav ul li a:hover::before {
    opacity: 1;
}

.header-nav ul li a.active {
    background: linear-gradient(135deg, #BE2633, #d63447);
    color: white;
    box-shadow: 0 4px 15px rgba(190, 38, 51, 0.25);
    transform: translateY(-1px);
}

.header-nav ul li a.active::before {
    display: none;
}

.header-nav ul li {
    animation: slideInRight 0.6s ease forwards;
    opacity: 0;
    transform: translateX(20px);
}

.header-nav ul li:nth-child(1) { animation-delay: 0.1s; }
.header-nav ul li:nth-child(2) { animation-delay: 0.15s; }
.header-nav ul li:nth-child(3) { animation-delay: 0.2s; }
.header-nav ul li:nth-child(4) { animation-delay: 0.25s; }
.header-nav ul li:nth-child(5) { animation-delay: 0.3s; }
.header-nav ul li:nth-child(6) { animation-delay: 0.35s; }
.header-nav ul li:nth-child(7) { animation-delay: 0.4s; }
.header-nav ul li:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ========== Conference Proceedings Section ========== */
.proceedings-row {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* left align everything */
  gap: 20px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.proceedings-row h3 {
  width: 100%;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  border-left: 4px solid #b91c1c; /* red bar */
  padding-left: 10px;
}

.proceeding-note {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.6;
  max-width: 600px;
  flex: 1;
  text-align: left;
}

.proceeding-note strong {
  color: #0d3b66;
}

.proceedings-inline-logo {
  width: 200px; /* make image bigger */
  height: auto;
  margin-left: 100px;
}

@media (max-width: 768px) {
  .proceedings-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .proceedings-inline-logo {
    margin-top: 10px;
  }
}


/* ====== MOBILE MENU OVERLAY ====== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ====== ENHANCED HERO SECTION ====== */
.hero {
    height: 60vh;
    position: relative;
    color: white;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    padding-right: 5%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    min-height: 500px;
    width: 100%;
    box-sizing: border-box;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
    opacity: 1;
}
.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    opacity: 1;
    pointer-events: none;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.82) 0%,      /* much darker than before */
        rgba(36, 54, 88, 0.51) 40%,  /* deeper blue tone */
        rgba(0, 0, 0, 0.80) 80%,     /* deeper shadow at edge */
        rgba(0, 0, 0, 0.77) 100%
    );
    z-index: 2;
}


.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(190, 38, 51, 0.2) 25%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(36, 54, 88, 0.25) 85%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 3;
}

.hero-container {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: row;
}

.hero-content {
    padding: 30px;
    max-width: 650px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    text-align: left;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
    order: 1;
    flex: 1;
    margin-right: 20px;
}

.hero h2 {
    font-size: clamp(20px, 4vw, 32px);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

.hero h4 {
    font-size: clamp(18px, 3.5vw, 28px);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    color: white;
}

.hero p {
    font-size: clamp(14px, 2.5vw, 20px);
    line-height: 1.5;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-logo-section {
    position: relative;
    z-index: 6;
    order: 2; 
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-logo {
    width: 500px;
    height: auto;
    transition: all 0.4s ease;
    padding: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: right;
}

.highlight {
    color: #ffcc00;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* ====== SCROLLING TEXT SECTION ====== */
.scroller {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    background: linear-gradient(135deg, #BE2633, #243658);
    color: white;
    padding: 15px 0;
    position: relative;
    width: 100%;
}

.scroller p {
    display: inline-block;
    animation: seamless-scroll 25s linear infinite;
    margin: 0;
    font-size: clamp(18px, 4vw, 30px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes seamless-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.scroller.pause:hover p {
    animation-play-state: paused;
}

/* ====== ABOUT SECTION ====== */
.about {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 80px 20px;
    width: 100%;
    box-sizing: border-box;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #243658;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #BE2633, #243658);
    border-radius: 2px;
}

.about-content {
    line-height: 1.8;
}

.about-intro p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #4a5568;
    margin-bottom: 30px;
    text-align: justify;
}

.about h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #243658;
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 700;
    border-left: 5px solid #BE2633;
    padding-left: 20px;
}

.about p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #4a5568;
    margin-bottom: 25px;
    text-align: justify;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
    width: 100%;
}

.benefit-item {
    background: linear-gradient(135deg, rgba(190, 38, 51, 0.05), rgba(36, 54, 88, 0.05));
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.benefit-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(190, 38, 51, 0.08), rgba(36, 54, 88, 0.08));
}

.benefit-item h4 {
    color: #243658;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.benefit-item p {
    color: #4a5568;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 0;
    text-align: center;
}

.call-to-action {
    background: linear-gradient(135deg, #BE2633, #243658);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
    width: 100%;
    box-sizing: border-box;
}

.call-to-action h3 {
    color: white;
    border: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 20px;
}

.call-to-action p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 20px;
    text-align: center;
}

/* ====== BODY IMAGE AND FOOTER ====== */
.body-image {
    background-image: url('images/Au.jpeg');
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    z-index: -1;
    width: 100%;
}

.image-overlay-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: clamp(1.5em, 5vw, 2.5em);
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    padding: 0 20px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: white;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.logos img {
    width: 150px;
    max-width: 100%;
    height: auto;
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* ====== RESPONSIVE DESIGN FOR ALL DEVICES ====== */

/* Large Desktop (1441px and up) */
@media (min-width: 1441px) {
    .logo-container {
        max-width: 1600px;
        gap: 30px;
    }
    
    .header-logo {
        height: 70px;
        max-width: 220px;
    }
    
    .hero-logo {
        width: 550px;
    }
}

/* Desktop (1281px - 1440px) */
@media (min-width: 1281px) and (max-width: 1440px) {
    .header-logo {
        height: 65px;
        max-width: 200px;
        min-width: 140px;
    }
    
    .hero-logo {
        width: 500px;
    }
}

/* Small Desktop/Large Laptop (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .header-logo {
        height: 58px;
        max-width: 170px;
        min-width: 130px;
    }
    
    .logo-container {
        gap: 20px;
    }
    
    .header-nav ul {
        gap: 5px;
    }
    
    .header-nav ul li a {
        padding: 7px 10px;
        font-size: 0.7rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding-left: 6%;
        padding-right: 4%;
    }
    
    .hero-logo {
        width: 450px;
    }
}

/* ====== MOBILE NAVIGATION WITH TOGGLE ====== */
@media (max-width: 1024px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-overlay {
        display: block;
    }
    
    /* Hide hero logo on tablet and mobile */
    .hero-logo-section {
        display: none;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 0 50px 0;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .header-nav.nav-open {
        right: 0;
    }
    
    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    
    .header-nav ul li {
        width: 90%;
        text-align: center;
        animation: none;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .header-nav.nav-open ul li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .header-nav ul li:nth-child(1) { transition-delay: 0.1s; }
    .header-nav ul li:nth-child(2) { transition-delay: 0.15s; }
    .header-nav ul li:nth-child(3) { transition-delay: 0.2s; }
    .header-nav ul li:nth-child(4) { transition-delay: 0.25s; }
    .header-nav ul li:nth-child(5) { transition-delay: 0.3s; }
    .header-nav ul li:nth-child(6) { transition-delay: 0.35s; }
    .header-nav ul li:nth-child(7) { transition-delay: 0.4s; }
    .header-nav ul li:nth-child(8) { transition-delay: 0.45s; }
    
    .header-nav ul li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 0.9rem;
        border-radius: 8px;
        background: rgba(36, 54, 88, 0.05);
        margin: 5px 0;
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .header-nav ul li a:hover,
    .header-nav ul li a.active {
        background: linear-gradient(135deg, #BE2633, #243658);
        color: white;
        transform: translateX(5px);
    }
    
    .hero-container {
        justify-content: center;
        text-align: center;
        padding: 20px;
    }
    
    .hero-content {
        max-width: 90%;
    }
}

/* Tablet Portrait (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .header-nav {
        width: 300px;
        padding: 90px 0 40px 0;
    }
    
    .header-nav ul li a {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
    
    .hero-content {
        max-width: 95%;
    }
}

/* Large Mobile Landscape (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .nav-toggle {
        width: 40px;
        height: 40px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .header-nav {
        width: 280px;
        padding: 80px 0 30px 0;
    }
    
    .header-nav ul li a {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .hero {
        min-height: 50vh;
        padding: 20px 15px;
    }
    
    .hero-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .logo-container {
        justify-content: space-between;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
    .nav-toggle {
        width: 38px;
        height: 38px;
        right: 8px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .header-nav {
        width: 260px;
        padding: 70px 0 20px 0;
    }
    
    .header-nav ul li a {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .hero {
        min-height: 45vh;
        padding: 15px 10px;
    }
    
    .hero-content {
        padding: 15px;
        max-width: 98%;
    }
    
    .logo-container {
        justify-content: space-between;
        padding: 8px 10px;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .nav-toggle {
        width: 36px;
        height: 36px;
        right: 5px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .header-nav {
        width: 240px;
        padding: 60px 0 20px 0;
    }
    
    .hero {
        min-height: 40vh;
        padding: 10px 5px;
    }
}

/* ====== UTILITY CLASSES ====== */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
