/* 
   SSMDS'26 Custom Styles
   Colors Extracted from Poster:
   - Primary Accent: #F27036 (Vibrant Orange)
   - Accent Light: #FDECEA (Light Orange tint for backgrounds)
   - Primary Background: #1D549A (Deep Blue)
   - Secondary Background: #3D88C7 (Lighter Sky Blue)
*/

:root {
    --primary-color: #1D549A;
    --secondary-color: #3D88C7;
    --accent-color: #DF5D22;
    /* Slightly darker orange for better contrast on white */
    --accent-light: rgba(242, 112, 54, 0.1);
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F4F7F6;
    --white: #FFFFFF;

    --grad-bg: linear-gradient(135deg, #123C73 0%, #3D88C7 100%);
    --grad-text: linear-gradient(to right, #ffffff, #d3e5f5);

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(29, 84, 154, 0.15);
    --shadow-glow: 0 0 20px rgba(242, 112, 54, 0.4);

    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.acronym {
    font-weight: 700;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent-light {
    background-color: var(--accent-light);
}

.hover-accent:hover {
    color: var(--accent-color) !important;
    transition: color 0.3s ease;
}

/* --- Navigation --- */
.custom-nav {
    background: rgba(29, 84, 154, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.custom-nav.scrolled {
    padding: 10px 0;
    background: rgba(18, 60, 115, 0.98);
    box-shadow: var(--shadow-md);
}

.text-secondary-theme {
    color: #F27036;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 5px;
    position: relative;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #F27036;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #F27036;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    background: var(--grad-bg);
    overflow: hidden;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: 0;
}

.z-index-1 {
    z-index: 1;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.and-text {
    font-family: 'Open Sans', cursive;
    font-style: italic;
    font-weight: 400;
    font-size: 2.5rem;
    -webkit-text-fill-color: var(--white);
    background: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
}

.glow-shadow {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Badge image styling */
.hero-badge-img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(242, 112, 54, 0.3));
    transition: transform 0.3s ease;
}

.hero-badge-img:hover {
    transform: scale(1.05);
}

/* --- Main Content Grid --- */
.bg-light-pattern {
    background-color: #f7f9fc;
    background-image: radial-gradient(#d1dcf0 1px, transparent 1px);
    background-size: 20px 20px;
    flex: 1 0 auto;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    border: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: #F27036;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.info-card.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

/* Lists and Timelines */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.custom-list li i {
    margin-right: 15px;
    font-size: 1.2rem;
    background: var(--accent-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.timeline-item .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.committee-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.committee-list li:last-child {
    border-bottom: none;
}

/* --- Speakers Grid --- */
.speaker-grid-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent !important;
}

.speaker-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
    border-top-color: var(--accent-color) !important;
}

.speaker-img-container img {
    transition: all 0.4s ease;
}

.speaker-grid-card:hover .speaker-img-container img {
    opacity: 1 !important;
    transform: scale(1.08);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), rgba(242, 112, 54, 0.2));
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Footer & Logos --- */


/* --- Animations --- */
.animate-pop-in {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
    }
}

.reveal-left {
    transform: translateX(-20px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    transform: translateX(20px);
    transition: all 0.8s ease-out;
}

.reveal-up {
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Subtle floating bubbles animation */
.circles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circles-bg .circle {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 25s infinite linear;
}

.circles-bg .circle:nth-child(1) {
    left: 10%;
    width: 80px;
    height: 80px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.circles-bg .circle:nth-child(2) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.circles-bg .circle:nth-child(3) {
    left: 45%;
    width: 60px;
    height: 60px;
    animation-duration: 40s;
    animation-delay: -10s;
}

.circles-bg .circle:nth-child(4) {
    left: 25%;
    width: 120px;
    height: 120px;
    animation-duration: 35s;
    animation-delay: -2s;
}

.circles-bg .circle:nth-child(5) {
    left: 70%;
    width: 40px;
    height: 40px;
    animation-duration: 45s;
    animation-delay: -8s;
}

.circles-bg .circle:nth-child(6) {
    left: 5%;
    width: 200px;
    height: 200px;
    animation-duration: 50s;
    animation-delay: -20s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
        border-radius: 50%;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 30%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .display-4 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .info-card {
        padding: 30px 20px;
    }

    .event-details {
        padding: 15px 25px !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-main-title {
        font-size: clamp(1.2rem, 6vw, 2rem) !important;
        max-width: 95%;
        margin: 0 auto 1.5rem auto !important;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }

    h2.hero-acronym {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        margin-bottom: 0 !important;
    }

    .hero-badge {
        margin-bottom: 1rem !important;
    }

    .hero-badge .badge-content {
        max-width: 120px;
        padding: 5px 15px;
        margin: 0 auto;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        border-bottom-width: 4px;
        border-width: 2px;
    }

    .hero-badge .badge-content .num {
        font-size: 1.5rem;
    }

    .hero-badge .badge-content .text {
        font-size: 0.7rem;
        padding: 2px 6px;
        letter-spacing: 1px;
    }

    .title-line {
        display: inline-block;
    }

    .and-text {
        font-size: 1.5rem;
    }

    .event-details {
        padding: 10px 15px !important;
    }

    .event-details .row.g-4 {
        gap: 0.5rem !important;
    }

    .event-details .fs-3 {
        font-size: 1.2rem !important;
    }

    .event-details .fs-5 {
        font-size: 0.8rem !important;
    }

    /* Global Typography Scale-down (approx 20%) */
    p,
    li,
    .lead,
    .fs-5,
    .text-muted {
        font-size: 0.85rem !important;
        /* Base 1rem down to ~0.8rem */
        line-height: 1.5;
    }

    h2.section-title,
    h4,
    h5,
    h6 {
        font-size: calc(1em * 0.8) !important;
    }

    h2.section-title {
        font-size: 1.7rem !important;
        /* Originally 2.2rem */
        margin-bottom: 20px;
    }

    .committee-list li,
    .custom-list li {
        font-size: 0.95rem !important;
        /* Adjusted lists */
    }

    .badge-edition .num {
        font-size: 1.2rem !important;
    }
}