/* CSS Variables */
:root {
    /* Primary Colors (Split-Complementary) */
    --primary-color: #FF6B35;
    --primary-light: #FF8C66;
    --primary-dark: #CC5429;
    --secondary-color: #35A0FF;
    --secondary-light: #66B5FF;
    --secondary-dark: #2980CC;
    --accent-color: #6B35FF;
    --accent-light: #8C66FF;
    --accent-dark: #5429CC;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #000000;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Text Colors */
    --text-dark: #222222;
    --text-muted: #6C757D;
    --text-light: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    --gradient-dark: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    
    /* Typography */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Global Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Header Styles */
.header {
    background: var(--gradient-dark);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.navbar-toggler {
    border: none;
    color: var(--white);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-dark);
    font-weight: 900;
}

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

/* About Section */
.about-section {
    padding: var(--section-padding);
}

.about-section .image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-section .image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1;
}

.about-section .image-container:hover::before {
    opacity: 0.3;
}

.about-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.about-section .image-container:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.services-section .card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

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

.services-section .card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.services-section .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.services-section .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.services-section .card-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-section .card-text {
    color: var(--text-muted);
    flex: 1;
}

/* History Section */
.history-section {
    padding: var(--section-padding);
    background: var(--white);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    width: 45%;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

/* Case Studies Section */
.case-studies-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.case-studies-section .card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

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

.case-studies-section .card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.case-studies-section .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.case-studies-section .card:hover .card-image img {
    transform: scale(1.05);
}

.case-studies-section .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

/* Webinars Section */
.webinars-section {
    padding: var(--section-padding);
    background: var(--white);
}

.webinar-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.webinar-date {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    min-width: 80px;
}

.webinar-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.webinar-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.webinar-content h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.webinar-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Community Section */
.community-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.community-section .image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.community-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.community-section .image-container:hover img {
    transform: scale(1.05);
}

/* External Resources Section */
.external-resources-section {
    padding: var(--section-padding);
    background: var(--white);
}

.resource-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.resource-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex: 1;
}

/* Jobs Section */
.jobs-section {
    padding: var(--section-padding);
    background: var(--white);
}

.job-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all var(--transition-fast);
    border-left: 4px solid var(--primary-color);
}

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

.job-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.job-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.job-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-details .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.testimonial-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.testimonial-author h6 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.testimonial-author small {
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding);
    background: var(--white);
}

.accordion-item {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--white);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.5rem;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background: var(--white);
    color: var(--text-muted);
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.contact-info {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h6 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Footer */
.footer {
    background: #7d7d7d;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5, .footer h6 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer p {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--gray-400);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* Success Page */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.success-content {
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.success-content h1 {
    color: var(--white);
    margin-bottom: 2rem;
}

.success-content p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
    padding-top: 100px;
    padding-bottom: 3rem;
}

.privacy-page .container,
.terms-page .container {
    max-width: 800px;
}

.privacy-page h1,
.terms-page h1 {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.privacy-page h2,
.terms-page h2 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-page p,
.terms-page p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.privacy-page ul,
.terms-page ul {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.privacy-page li,
.terms-page li {
    margin-bottom: 0.5rem;
}

/* Animations */
@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);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 50px !important;
        margin-right: 0 !important;
    }
    
    .webinar-card {
        flex-direction: column;
        text-align: center;
    }
    
    .webinar-date {
        min-width: auto;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .services-section .card-content,
    .testimonial-card,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .job-card,
    .resource-card {
        padding: 1.5rem;
    }
    
    .webinar-card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

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

.border-radius-custom {
    border-radius: var(--border-radius-lg);
}

.transition-custom {
    transition: all var(--transition-fast);
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-muted: var(--gray-700);
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
        --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}