/* ============================================================
   PIT ISOI XXII — Conference Website Styles
   Ocean Theme: Deep Blue, Teal, White
   ============================================================ */

:root {
    --ocean-deep:    #0B3D91;
    --ocean-mid:     #1A5FAD;
    --ocean-teal:    #0EA5E9;
    --ocean-light:   #EFF8FF;
    --ocean-dark:    #071E42;
    --text-dark:     #1A202C;
    --text-muted:    #718096;
    --white:         #FFFFFF;
    --section-pad:   5rem 0;
    --border-radius: 1rem;
    --shadow-card:   0 4px 24px rgba(11,61,145,0.10);
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #fff;
    overflow-x: hidden;
}

.font-display { font-family: 'Playfair Display', Georgia, serif; }
.tracking-wide { letter-spacing: .08em; }
.text-ocean { color: var(--ocean-teal) !important; }
.bg-ocean-light { background-color: var(--ocean-light) !important; }
.bg-ocean-dark  { background-color: var(--ocean-dark)  !important; }
.bg-ocean-teal  { background-color: var(--ocean-teal)  !important; }

.section-padding { padding: var(--section-pad); }

/* ---- Navbar ---- */
#mainNav {
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#mainNav.scrolled,
#mainNav.menu-open {
    background: var(--ocean-dark);
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
    padding-top: .6rem;
    padding-bottom: .6rem;
}

/* Mobile: always solid dark background so collapsed menu is always readable */
@media (max-width: 991.98px) {
    #mainNav {
        background: var(--ocean-dark) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,.25);
    }
}

.navbar-brand { color: #fff !important; }
.nav-link {
    color: rgba(255,255,255,.85) !important;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
    padding: .4rem .6rem !important;
}
.nav-link:hover { color: var(--ocean-teal) !important; }

.lang-btn {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .2s;
}
.lang-btn.active, .lang-btn:hover { color: #fff; }

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(170deg, rgba(7,30,66,.92) 0%, rgba(14,165,233,.50) 100%) center/cover no-repeat;
    background-color: var(--ocean-deep);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(170deg, rgba(7,30,66,.75) 40%, transparent 100%);
    z-index: 0;
}

.hero-theme-text {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--border-radius);
    padding: 1.25rem 2rem;
    max-width: 800px;
    backdrop-filter: blur(4px);
}

.hero-info-chip {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 50px;
    padding: .5rem 1.25rem;
    font-size: .9rem;
    backdrop-filter: blur(4px);
}

.btn-hero {
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.btn-primary {
    background: var(--ocean-teal);
    border-color: var(--ocean-teal);
}
.btn-primary:hover {
    background: #0284C7;
    border-color: #0284C7;
}

.btn-ocean {
    background: var(--ocean-deep);
    border-color: var(--ocean-deep);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    padding: .6rem 1.5rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-ocean:hover {
    background: var(--ocean-mid);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Countdown ---- */
.countdown-wrapper { max-width: 480px; }

.countdown-block {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .75rem;
    padding: .75rem 1rem;
    min-width: 76px;
    backdrop-filter: blur(4px);
}

.countdown-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ocean-teal);
}

.countdown-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .7;
    margin-top: .25rem;
}

.countdown-sep {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    line-height: 1;
    padding-top: .3rem;
}

/* ---- Hero wave ---- */
.hero-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { display: block; height: 80px; }

/* ---- Stats Bar ---- */
.stats-bar { position: relative; z-index: 2; }

.stat-item { padding: .5rem; }
.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ocean-deep);
    line-height: 1;
}
.stat-label {
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: .25rem;
}

/* ---- Section Badges & Titles ---- */
.section-badge {
    display: inline-block;
    background: var(--ocean-light);
    color: var(--ocean-deep);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}

.section-badge-light {
    display: inline-block;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* ---- About ---- */
.about-image-card { position: relative; }
.about-badge-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(255,255,255,.92);
    border-radius: 50px;
    padding: .5rem 1.25rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ocean-deep);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(4px);
}

/* ---- Timeline (Important Dates) ---- */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: .75rem;
    transition: background .2s;
}
.timeline-item:hover { background: #f8f9fa; }
.timeline-item.done { background: #f0fdf4; }

.timeline-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.timeline-content .fw-semibold { font-size: .95rem; }
.timeline-content .text-muted  { font-size: .85rem; }

/* ---- Speaker Cards ---- */
.speaker-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid #e2e8f0;
    transition: transform .25s, box-shadow .25s;
}
.speaker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(11,61,145,.15);
}

.speaker-avatar {
    width: 120px; height: 120px;
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-teal));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0;
    font-size: 2.8rem;
    color: #fff;
}

.speaker-photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin: 0 auto;
    display: block;
    border: 3px solid rgba(14,165,233,.25);
    box-shadow: 0 4px 16px rgba(11,61,145,.15);
}

.speaker-type-badge {
    display: inline-block;
    margin-top: .75rem;
    background: var(--ocean-light);
    color: var(--ocean-deep);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .2rem .7rem;
    border-radius: 50px;
}

/* ---- Theme Cards ---- */
.theme-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all .25s;
    height: 100%;
}
.theme-card:hover {
    border-color: var(--ocean-teal);
    box-shadow: 0 4px 16px rgba(14,165,233,.15);
    transform: translateY(-3px);
}
.theme-num {
    font-size: .7rem;
    font-weight: 700;
    color: var(--ocean-teal);
    letter-spacing: .05em;
    flex-shrink: 0;
    margin-top: .15rem;
}
.theme-icon {
    font-size: 1.4rem;
    color: var(--ocean-deep);
    flex-shrink: 0;
}

/* ---- Schedule ---- */
.schedule-tabs .nav-link {
    color: rgba(255,255,255,.65) !important;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    padding: .5rem 1.75rem;
    font-weight: 600;
    transition: all .2s;
    margin: 0 .25rem;
}
.schedule-tabs .nav-link.active, .schedule-tabs .nav-link:hover {
    color: var(--ocean-dark) !important;
    background: #fff !important;
    border-color: #fff !important;
}

.schedule-list { display: flex; flex-direction: column; gap: .5rem; max-width: 760px; margin: 0 auto; }

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    padding: .9rem 1.5rem;
    border-left: 4px solid rgba(255,255,255,.2);
}

.schedule-time {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ocean-teal);
    min-width: 110px;
    flex-shrink: 0;
}

.schedule-event {
    font-size: .92rem;
    color: rgba(255,255,255,.85);
}

.type-keynote  { border-left-color: #F59E0B !important; }
.type-panel    { border-left-color: var(--ocean-teal) !important; }
.type-session  { border-left-color: #10B981 !important; }
.type-break    { border-left-color: rgba(255,255,255,.25) !important; opacity: .7; }
.type-dinner   { border-left-color: #EC4899 !important; }
.type-poster   { border-left-color: #8B5CF6 !important; }
.type-excursion { border-left-color: #22C55E !important; }
.type-ceremony { border-left-color: #F59E0B !important; }

/* ---- Venue ---- */
.venue-map-card iframe { border-radius: var(--border-radius); }

.venue-info-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid #e2e8f0;
}

.venue-features { display: flex; flex-direction: column; gap: 1rem; }

.venue-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .75rem 1rem;
    background: var(--ocean-light);
    border-radius: .6rem;
}

.venue-feature-icon {
    width: 36px; height: 36px;
    background: var(--ocean-deep);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: .9rem;
    flex-shrink: 0;
}

/* ---- CTA Section ---- */
.cta-section {
    position: relative;
    background:
        linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-mid) 100%);
    padding: 6rem 0;
    overflow: hidden;
}

.cta-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-btn {
    border-radius: 50px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-light { color: var(--ocean-dark) !important; }

/* ---- Footer ---- */
.site-footer {
    background: var(--ocean-dark);
}

.footer-link {
    display: block;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    padding: .15rem 0;
    transition: color .2s;
}
.footer-link:hover { color: var(--ocean-teal); }

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: #fff;
    border-radius: .4rem;
    padding: .3rem .6rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.2);
}

/* ---- Utility ---- */
.z-1 { z-index: 1; }
.opacity-90 { opacity: .9; }
.opacity-95 { opacity: .95; }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-section .container > div > * {
    animation: fadeInUp .7s ease both;
}
.hero-section .container > div > *:nth-child(1) { animation-delay: .1s; }
.hero-section .container > div > *:nth-child(2) { animation-delay: .2s; }
.hero-section .container > div > *:nth-child(3) { animation-delay: .3s; }
.hero-section .container > div > *:nth-child(4) { animation-delay: .4s; }
.hero-section .container > div > *:nth-child(5) { animation-delay: .5s; }
.hero-section .container > div > *:nth-child(6) { animation-delay: .6s; }

/* ============================================================
   SPONSORS SECTION
   ============================================================ */
.sponsor-tier-group {
    text-align: center;
}

.sponsor-tier-label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ocean-mid);
    background: var(--ocean-light);
    border-radius: 999px;
    padding: .25rem 1rem;
    margin-bottom: 1.25rem;
}

.sponsor-logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.sponsor-logo-item a {
    display: block;
    transition: opacity .2s, transform .2s;
}
.sponsor-logo-item a:hover { opacity: .8; transform: scale(1.05); }

.sponsor-img {
    display: block;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter .2s;
}
.sponsor-logo-item a:hover .sponsor-img { filter: none; }

/* Tier-based sizing */
.sponsor-tier-platinum .sponsor-img { height: 90px; max-width: 220px; }
.sponsor-tier-gold     .sponsor-img { height: 70px; max-width: 180px; }
.sponsor-tier-silver   .sponsor-img { height: 55px; max-width: 150px; }
.sponsor-tier-bronze   .sponsor-img { height: 44px; max-width: 130px; }
.sponsor-tier-media    .sponsor-img,
.sponsor-tier-supporting .sponsor-img { height: 36px; max-width: 120px; }

.sponsor-name-fallback {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ocean-deep);
    padding: .5rem 1rem;
    border: 1px solid #d0e4f7;
    border-radius: var(--border-radius);
    background: var(--ocean-light);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section-title { font-size: 1.75rem; }
    .countdown-num { font-size: 1.5rem; }
    .countdown-block { min-width: 60px; padding: .6rem .75rem; }
    .stat-number { font-size: 1.75rem; }
    .hero-section { min-height: auto; padding-bottom: 5rem; }
    .schedule-time { min-width: 90px; font-size: .78rem; }
    .theme-card { padding: 1rem; }
    .sponsor-logos-row { gap: 1.25rem; }
}
