/* WAIG Foundation - Clean Professional Theme */

:root {
    --primary-blue: #0079bc;
    --secondary-blue: #005a8b;
    --accent-blue: #004d73;
    --light-blue: #e6f3ff;
    --dark-blue: #003d5c;
    --primary-green: #9bd334;
    --secondary-green: #7bb026;
    --accent-green: #6a9a1f;
    --light-green: #f0f8e6;
    --primary-white: #ffffff;
    --secondary-white: #f8fafc;
    --accent-gray: #64748b;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-blue: linear-gradient(135deg, #0079bc 0%, #005a8b 100%);
    --gradient-green: linear-gradient(135deg, #9bd334 0%, #7bb026 100%);
    --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Font Awesome Icon Fixes */
.fa, .fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

.far {
    font-weight: 400;
}

.fal {
    font-weight: 300;
}

.fad {
    font-weight: 900;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-light);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%232563eb" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
    text-decoration: none;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Buttons */
.btn-gold {
    background: var(--gradient-blue);
    color: var(--primary-white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-white);
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-gold:hover {
    background: var(--primary-blue);
    color: var(--primary-white);
    transform: translateY(-2px);
}

/* Green Accent Buttons */
.btn-green {
    background: var(--gradient-green);
    color: var(--primary-white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-white);
}

.btn-outline-green {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-green:hover {
    background: var(--primary-green);
    color: var(--primary-white);
    transform: translateY(-2px);
}

/* Cards */
.card-dark {
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-dark:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Leadership Groups */
.leadership-card {
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.leadership-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.leadership-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-white);
}

/* Member Cards */
.member-card {
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-blue);
}

/* Industries */
.industry-card {
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.industry-card:hover::before {
    transform: scaleX(1);
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--secondary-white);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0 2rem;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
}

/* Carousel Styling */
.carousel {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.carousel-inner {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.carousel-item {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.carousel-item .hero-slide {
    min-height: calc(100vh - 80px);
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-color: var(--primary-blue);
}

.carousel-indicators {
    bottom: 30px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.3);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: var(--primary-blue);
    transform: scale(1.1);
}

/* Main content spacing */
main {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
        width: 100%;
    }
    
    .carousel {
        min-height: 100vh;
        width: 100%;
    }
    
    .carousel-inner {
        min-height: 100vh;
        width: 100%;
    }
    
    .carousel-item {
        min-height: 100vh;
        width: 100%;
    }
    
    .hero-slide {
        min-height: calc(100vh - 80px);
        width: 100%;
        padding: 1rem 0;
    }
    
    .hero-content {
        margin-top: 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .hero-slide .container {
        width: 100%;
        height: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-slide .row {
        width: 100%;
        height: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-content {
        padding-right: 10px;
    }
    
    .hero-visual {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .floating-elements {
        height: 400px;
    }
    
    .floating-card {
        width: 112px;
        height: 96px;
        padding: 0.8rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .floating-card i {
        font-size: 1.6rem !important;
        margin-bottom: 0.4rem;
    }
    
    .floating-card h5 {
        font-size: 0.72rem;
        margin: 0;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .floating-card:nth-child(1) {
        top: 10%;
        left: 10%;
    }
    
    .floating-card:nth-child(2) {
        top: 40%;
        right: 10%;
    }
    
    .floating-card:nth-child(3) {
        bottom: 10%;
        left: 35%;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .leadership-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .btn-gold, .btn-outline-gold {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-white);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* Floating Elements */
.floating-elements {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    width: 144px;
    height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.floating-card i {
    font-size: 2rem !important;
    margin-bottom: 0.6rem;
}

.floating-card h5 {
    font-size: 0.88rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.floating-card::after {
    content: 'Click to explore';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--primary-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 121, 188, 0.2);
    border-color: var(--primary-blue);
}

.floating-card:hover::after {
    opacity: 1;
}

.floating-card:active {
    transform: scale(0.95);
}

.floating-card.active {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 121, 188, 0.3);
}

.floating-card:nth-child(1) {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 45%;
    right: 20%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 15%;
    left: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Form Elements */
.form-control {
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    border-radius: 8px;
}

.form-control:focus {
    background: var(--primary-white);
    border-color: var(--primary-blue);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
