/* Custom CSS for DSGenAI-2025 Workshop Website - Professional Blue Theme */

/* CSS Variables for professional neutral theme */
:root {
    --primary-color: #1a365d;
    --primary-dark: #153156;
    --primary-light: #2c5282;
    --secondary-color: #4a5568;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --accent-color: #d69e2e;
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-secondary: linear-gradient(135deg, #d69e2e 0%, #ecc94b 100%);
    --gradient-hero: linear-gradient(135deg, #153156 0%, #1a365d 50%, #2c5282 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --neutral-50: #f8f9fa;
    --neutral-100: #edf2f7;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e0;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Body and typography improvements */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--dark-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Full height sections */
.full-height-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

/* Text alignment and spacing */
.text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
}

/* Professional typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Reverted to left alignment */
    padding: 0 1rem;
}

.long-text, 
.text-justified,
section .container > p {
    text-align: justify;
    text-justify: inter-word;
}

/* Enhanced navbar styling with professional neutral theme */
.navbar {
    backdrop-filter: blur(10px);
    background: var(--gradient-primary) !important;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: white !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--accent-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* Hero section styling with neutral gradient */
.hero-section {
    background: var(--gradient-hero);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    gap: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.3);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.workshop-logo {
    animation: pulse 2s infinite;
    color: var(--accent-color) !important;
}

.hero-buttons .btn-warning {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
}

.hero-buttons .btn-warning:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
}

/* Section spacing and styling */
section {
    padding: 6rem 0;
    width: 100%;
    /* Ensure sections take full width and have consistent vertical padding */
}

section .container {
    /* Ensure container centers content but allows left alignment within */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left; /* Reverted to left alignment */
    gap: 3rem;
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    /* Removed grid properties from the main section container */
}

/* Apply grid layout to specific content areas within sections */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* Gap between grid items */
    width: 100%; /* Ensure grid takes full width of its container */
    align-items: start; /* Align grid items to the top */
}

.section-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    /* Removed text-align: center; to allow left alignment within the centered container */
    position: relative;
    margin-bottom: 3rem;
}

.underline-accent {
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* Professional neutral-themed text colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Overview section */
.overview-icon {
    animation: float 3s ease-in-out infinite;
    color: var(--primary-color) !important;
}

/* Topics section styling with blue accents */
.topic-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.topic-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
    border-left-color: var(--accent-color);
}

.topic-item i {
    transition: transform 0.3s ease;
    color: var(--primary-color) !important;
}

.topic-item:hover i {
    transform: scale(1.1);
    color: var(--accent-color) !important;
}

.topic-item p {
    text-align: justify;
    text-justify: inter-word;
}

.topic-item p.text-left-align {
    text-align: left;
    text-justify: auto;
}

/* Important dates styling with blue theme */
.list-group-item {
    transition: all 0.3s ease;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color) !important;
}

.list-group-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
    border-left-color: var(--accent-color) !important;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-warning {
    background: var(--accent-color) !important;
    color: var(--dark-color) !important;
}

.badge.bg-success {
    background: var(--primary-light) !important;
}

/* Style for "To be declared" text */
.to-be-declared2 {
    color: var(--accent-color);
    font-weight: 600;
    font-style: bold;
    text-decoration: underline;
    animation: pulse 2s infinite;
}

.to-be-declared {
    display: inline-block;
    padding: 0.4em 0.75em;
    background-color: rgba(255, 215, 0, 0.15); /* soft gold highlight */
    color: #b58900; /* deep gold text */
    font-weight: 600;
    font-size: 1rem;
    border: 1px dashed #b58900;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse-glow 2.5s ease-in-out infinite;
    box-shadow: 0 0 0px transparent;
    transition: box-shadow 0.3s ease;
}


/* Organizer cards with blue theme */
.organizer-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--blue-200);
}

.organizer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.organizer-photo {
    transition: transform 0.3s ease;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
}

.organizer-card:hover .organizer-photo {
    transform: scale(1.1);
}

.organizer-card .text-primary {
    color: var(--primary-color) !important;
}

.organizer-card .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.organizer-card .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.organizer-card p {
    text-align: justify;
    text-justify: inter-word;
}

/* Program committee styling with blue accents */
.committee-member {
    transition: all 0.3s ease;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color) !important;
}

.committee-member:hover {
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
    transform: translateX(5px);
    border-left-color: var(--accent-color) !important;
}

/* Contact section with blue theme */
.contact-item {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--blue-50);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--primary-color) !important;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Call for papers section with blue gradient */
.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Footer styling with blue theme */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-color) 100%) !important;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

/* Button enhancements */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Submission guidelines styling */
.submission-guidelines {
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.submission-guidelines h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.submission-guidelines ul {
    list-style-type: none;
    padding-left: 0;
    text-align: left; /* Left align lists within submission guidelines */
}

.registration-info ul {
    list-style-type: none;
    padding-left: 0;
    text-align: left; /* Ensure registration lists are left-aligned */
}

.submission-guidelines li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--blue-200);
}

.submission-guidelines li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

#submission .lead,
#submission .topic-item p {
    text-align: justify;
    text-justify: inter-word;
}

/* Program schedule styling */
.program-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.program-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-color);
}

.program-time {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Registration section styling */
.registration-info {
    background: linear-gradient(135deg, var(--blue-50) 0%, white 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--blue-200);
}

.registration-info h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: left; /* Left align heading within registration info */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Neutral glow effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(26, 54, 93, 0.2);
}

.hero-buttons .btn:hover {
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
}

/* Enhanced neutral backgrounds */
.bg-light {
    background: linear-gradient(135deg, var(--neutral-50) 0%, #ffffff 100%) !important;
}

/* Responsive design improvements */
@media (max-width: 992px) {
    .navbar-collapse {
        background: var(--gradient-primary);
        padding: 2rem;
        border-radius: 0;
        margin-top: 0;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        overflow-y: auto;
        z-index: 1050;
    }
    
    .offcanvas {
        background: var(--gradient-primary);
        width: 100% !important;
        height: 100vh !important;
        top: 0 !important;
    }

    .navbar-nav {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-link {
        padding: 1.5rem 2rem;
        font-size: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        margin: 0.5rem 0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-toggler {
        z-index: 1051;
    }
    
    .hero-section {
        background-attachment: scroll;
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
.hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
}

.mobile-logos {
    display: none;
}

@media (max-width: 992px) {
    .mobile-logos {
        display: block;
    }
}


@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .topic-item, 
    .committee-member,
    .program-item {
        margin-bottom: 1.5rem;
    }
    
    .organizer-photo {
        width: 120px;
        height: 120px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-lg-6, 
    .col-md-6 {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .topic-item {
        padding: 1rem;
    }
    
    .organizer-photo {
        width: 100px;
        height: 100px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .submission-guidelines,
    .registration-info {
        padding: 1rem;
    }
}

/* Custom scrollbar with neutral theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus styles for accessibility with blue theme */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-section,
    footer {
        display: none;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

.highlight-box {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-width: 2px !important;
}

.highlight-box p {
    text-align: justify;
    text-justify: inter-word;
}
