/*
 * Web Summit Vancouver - Custom Stylesheet
 * Bootstrap 5 Based Static Website
 * Author: Professional Web Developer
 */

/* ========== CSS Variables ========== */
:root {
    /* Brand Colors */
    --brand-primary: #0c1439;
    --brand-secondary: #0a7aa6;
    --brand-accent: #d43c05;
    --brand-orange: #f27649;
    --brand-blue: #84aebf;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f6f6f7;
    --gray: #646464;
    --dark-gray: #333333;
    --black: #000000;
    
    /* Gradients */
    --gradient-1: linear-gradient(180deg, #0a7aa6 0%, #0c1439 100%);
    --gradient-2: linear-gradient(180deg, #d43c05 0%, #f27649 100%);
    --gradient-3: linear-gradient(135deg, #0c1439 0%, #0a7aa6 100%);
    
    /* Spacing */
    --section-padding: 80px;
    --section-padding-mobile: 40px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--brand-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--brand-primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
}

/* ========== Header Styles ========== */
/* Note: Header styles have been moved to assets/css/header.css */
/* This keeps the codebase modular and easier to maintain */
/* The header.css file is automatically loaded via includes/header.html */

/* ========== Button Styles ========== */
.btn {
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #030617;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--brand-accent);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #bb3504;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--brand-primary);
}

/* ========== Hero Section ========== */
.hero-section {
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.gradient-bg {
    background: var(--gradient-1);
}

.hero-section h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.hero-cta {
    margin-top: 2rem;
}

/* ========== Stats Section ========== */
.stats-section {
    padding: 60px 0;
}

.stat-card {
    background: var(--white);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-card h2 {
    margin-bottom: 0.5rem;
}

.stat-card .text-success {
    color: #008484 !important;
}

.stat-card .text-warning {
    color: #f27649 !important;
}

.stat-card .text-info {
    color: #024959 !important;
}

/* ========== Speakers Section ========== */
.speakers-section {
    padding: 80px 0;
}

.gradient-bg-2 {
    background: var(--gradient-2);
}

.speaker-card {
    transition: var(--transition-normal);
    cursor: pointer;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.speaker-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--light-gray);
}

.speaker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.speaker-card:hover .speaker-img img {
    transform: scale(1.05);
}

.speaker-info h5 {
    font-size: 1rem;
    color: var(--brand-primary);
}

/* ========== Why Attend Section ========== */
.why-attend-section {
    padding: 80px 0;
}

.feature-card {
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-secondary);
}

.icon-box {
    transition: var(--transition-normal);
}

.feature-card:hover .icon-box {
    transform: scale(1.1);
}

/* ========== Partners Section ========== */
.partners-section {
    padding: 60px 0;
}

.partner-logo-box {
    transition: var(--transition-normal);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-box:hover {
    background-color: var(--white) !important;
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

/* ========== Newsletter Section ========== */
.newsletter-section {
    padding: 60px 0;
}

.gradient-bg-3 {
    background: var(--gradient-3);
}

.newsletter-form input {
    height: 50px;
    border: none;
    border-radius: var(--radius-sm);
}

.newsletter-form button {
    height: 50px;
    font-weight: var(--font-weight-bold);
}

/* ========== Footer Section ========== */
/* Note: Footer styles have been moved to assets/css/footer.css */
/* This keeps the codebase modular and easier to maintain */
/* The footer.css file is automatically loaded via includes/footer.html */

/* ========== Utility Classes ========== */
.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Responsive Styles ========== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 1rem;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-light .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 40px;
    }
    
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .speaker-card {
        margin-bottom: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ========== Print Styles ========== */
@media print {
    .header-area,
    .footer-section,
    #scrollTopBtn,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ========== Animation Classes ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ========== Accessibility ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

/* ========== Loading State ========== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--brand-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ========== Selection ========== */
::selection {
    background: var(--brand-accent);
    color: var(--white);
}

::-moz-selection {
    background: var(--brand-accent);
    color: var(--white);
}
