/* AAAG Conference Theme - Custom Styles */

/* Root Variables - AAAG Brand Colors */
:root {
    /* Primary Colors */
    --primary-dark-green: #01521A;    /* Dark Green - Primary */
    --primary-green: #6FAD1E;         /* Green - Primary */
    --primary-light-green: #A1C16D;   /* Light Green - Primary */
    
    /* Secondary Colors */
    --secondary-grey: #36454F;        /* Grey (Dark Grey) */
    --secondary-light-grey: #D1D3D4;  /* Light Grey */
    --secondary-yellow: #FFD700;      /* Yellow (corrected from guidelines) */
    --secondary-muted-yellow: #F5F5DC; /* Muted Yellow (corrected from guidelines) */
    
    /* Semantic Colors */
    --primary-color: var(--primary-dark-green);
    --secondary-color: var(--primary-green);
    --accent-color: var(--primary-light-green);
    --dark-color: var(--secondary-grey);
    --light-color: var(--secondary-light-grey);
    --text-color: var(--secondary-grey);
    --text-light: #6b7280;
    --border-color: var(--secondary-light-grey);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark-green), var(--primary-green));
    border-radius: 2px;
}

/* Navigation */
.navbar {
    background: #FFF !important; /* Dark Green with transparency */
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(1, 82, 26, 0.98) !important; /* Dark Green with more opacity */
    box-shadow: var(--shadow);

}

.navbar.scrolled .navbar-nav .nav-link{
    color: #FFF !important;
}


.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    /*color: rgb(40 89 20) !important;*/
    color: rgb(40 89 20) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}
.cls-yellow{
    color: #FFD700;
}/* Hero Section */
.hero-section {
    background-image: url('assets\images\bg-hero.jpg');
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
}

/* Optional grid overlay effect */
.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 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Hero text */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-yellow);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-venue {
    margin-bottom: 2rem;
}

.hero-venue p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-green), var(--primary-light-green));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(45deg, var(--primary-light-green), var(--primary-green));
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Theme Section */
.theme-section {
    background: linear-gradient(135deg, var(--secondary-muted-yellow) 0%, var(--secondary-light-grey) 100%);
}

.theme-subtitle {
    font-size: 2rem;
    color: var(--primary-dark-green);
    margin-bottom: 1.5rem;
}

.theme-image img {
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.theme-image img:hover {
    transform: scale(1.02);
}

/* Host Section */
.host-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.host-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.host-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.host-name {
    font-size: 1.5rem;
    color: var(--primary-dark-green);
    margin-bottom: 1rem;
}

/* Venue Section */
.venue-section img {
    box-shadow: var(--shadow-lg);
    border-radius: 15px;
    transition: var(--transition);
}

.venue-section img:hover {
    transform: scale(1.02);
}

/* Speakers Section */
.speaker-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.speaker-image {
    position: relative;
    overflow: hidden;
}

.speaker-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.speaker-card:hover .speaker-image img {
    transform: scale(1.1);
}

.speaker-info {
    padding: 1.5rem;
    text-align: center;
}

.speaker-name {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.speaker-title {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* News Section */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--secondary-grey) !important;
}

.footer h5 {
    color: var(--secondary-yellow);
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-yellow);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 12px 20px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 12px 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .theme-subtitle {
        font-size: 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-venue p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .host-card,
    .speaker-card,
    .news-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .host-card,
    .speaker-card,
    .news-card {
        padding: 1.5rem;
    }
}

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

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

/* Hero content specific animation */
.hero-content.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Fallback: Ensure hero content is visible if JavaScript fails */
.no-js .hero-content,
.hero-content:not(.fade-in) {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 1;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 1;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark-green);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    visibility: visible;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

#about{
    background:#FFF;
    position: relative;
    z-index: 1;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-dark-green), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-dark-green), var(--primary-green));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light-green));
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: 15px;
}

/* AAAG Brand Specific Classes */
.brand-primary {
    color: var(--primary-dark-green);
}

.brand-secondary {
    color: var(--primary-green);
}

.brand-accent {
    color: var(--primary-light-green);
}

.bg-brand-primary {
    background-color: var(--primary-dark-green);
}

.bg-brand-secondary {
    background-color: var(--primary-green);
}

.bg-brand-accent {
    background-color: var(--primary-light-green);
}

.border-brand-primary {
    border-color: var(--primary-dark-green);
}

.border-brand-secondary {
    border-color: var(--primary-green);
}

/* Registration Modal Styles */
.modal-header.bg-brand-primary {
    background-color: var(--primary-dark-green) !important;
}

.modal-header .modal-title {
    font-weight: 600;
}

.nav-tabs .nav-link {
    color: var(--secondary-grey);
    border: 1px solid transparent;
    border-radius: 0.375rem 0.375rem 0 0;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-dark-green);
    border-color: var(--secondary-light-grey);
}

.nav-tabs .nav-link.active {
    color: var(--primary-dark-green);
    background-color: transparent;
    border-color: var(--secondary-light-grey) var(--secondary-light-grey) #fff;
    font-weight: 600;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(111, 173, 30, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.form-check-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(111, 173, 30, 0.25);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-green), var(--primary-light-green));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-light-green), var(--primary-green));
    transform: translateY(-1px);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 173, 30, 0.5);
}

.modal-footer.bg-light {
    background-color: var(--secondary-muted-yellow) !important;
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: var(--primary-green);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-check-input:valid {
    border-color: var(--primary-green);
}

.was-validated .form-check-input:invalid {
    border-color: #dc3545;
}

/* Loading State for Forms */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
