/* CSS Variables for Split-Complementary Color Scheme */
:root {
    /* Primary Colors - Split-Complementary */
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8A5C;
    
    --secondary-color-1: #35A0FF;
    --secondary-color-2: #9D35FF;
    
    --accent-color: #FFD700;
    --accent-dark: #F4C430;
    
    /* Neutral Colors */
    --dark-bg: #1A1A1A;
    --darker-bg: #0F0F0F;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Text Colors */
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --text-muted: #6C757D;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color-1));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color-2), var(--primary-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 20px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-primary: 'Archivo Black', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    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-primary);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
}

/* Global Button Styles */
.btn, 
.button, 
button, 
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
}

.btn::before,
.button::before,
button::before,
input[type="submit"]::before,
input[type="button"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-smooth);
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: var(--gradient-secondary);
}

.btn:hover::before,
.button:hover::before,
button:hover::before,
input[type="submit"]:hover::before,
input[type="button"]:hover::before {
    left: 100%;
}

.btn.is-light,
.button.is-light {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    z-index: 1000;
}

.navbar-brand .navbar-item {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 900;
}

.navbar-item {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-item:hover {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

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

/* Main Container */
.main-container {
    padding-top: 80px;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(255,107,53,0.3));
    z-index: 1;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) 0;
}

.hero .title {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: var(--spacing-md);
}

.hero .subtitle {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: var(--spacing-lg);
}

.hero .buttons {
    gap: var(--spacing-sm);
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
}

.section .title {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

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

/* Card Styles */
.card {
    border: none;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

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

.card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-image .image-container {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    margin: 0 auto;
}

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

.card-content {
    padding: var(--spacing-md);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Features Section */
#features .card {
    height: 100%;
    border-left: 5px solid var(--primary-color);
}

#features .card-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Vision Section */
#vision {
    background: var(--light-bg);
    position: relative;
}

#vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image/economic-pattern-bg.jpg') repeat;
    opacity: 0.05;
    z-index: 0;
}

#vision .container {
    position: relative;
    z-index: 1;
}

#vision .content ul {
    list-style: none;
    padding: 0;
}

#vision .content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

#vision .content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Resources Section */
#resources .card {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-large);
}

#resources .card-content h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

#resources .card-content p {
    color: rgba(255,255,255,0.9);
}

#resources .button {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
}

#resources .button:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
}

/* Webinars Section */
#webinars {
    background: var(--light-bg);
}

#webinars .tag {
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

/* Instructors Section */
#instructors .card-image .image-container {
    height: 400px;
}

#instructors .tags {
    margin-top: var(--spacing-sm);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

#instructors .tag {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

/* Events Section */
#events {
    background: var(--light-bg);
}

.timeline {
    padding: var(--spacing-md);
}

.timeline .media {
    background: var(--white);
    border-radius: var(--radius-medium);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--secondary-color-1);
    transition: var(--transition-smooth);
}

.timeline .media:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.timeline .media strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.timeline .media small {
    color: var(--secondary-color-1);
    font-weight: 600;
}

/* Careers Section */
#careers .card {
    border-top: 4px solid var(--secondary-color-2);
    background: var(--white);
}

#careers .card-content h3 {
    color: var(--secondary-color-2);
}

#careers .tags {
    margin-top: var(--spacing-sm);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

/* Contact Section */
#contact {
    background: var(--light-bg);
}

.contact-form .field {
    margin-bottom: var(--spacing-sm);
}

.contact-form .label {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
    border: 2px solid #E0E0E0;
    border-radius: var(--radius-small);
    padding: 12px 16px;
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
    outline: none;
}

/* Footer */
.footer {
    background: var(--gradient-dark) !important;
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: 0;
}

.footer .title {
    color: var(--white) !important;
    margin-bottom: var(--spacing-sm);
}

.footer p,
.footer ul li {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-xs);
}

.footer ul {
    list-style: none;
    padding: 0;
}

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

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.social-links a {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs);
    border-radius: var(--radius-small);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: rgba(255,107,53,0.2);
    transform: translateX(5px);
}

.footer hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: var(--spacing-md) 0;
}

/* 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: var(--spacing-xl);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-heavy);
}

/* Privacy & Terms Pages */
.privacy-content,
.terms-content {
    padding-top: 100px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.privacy-content h2,
.terms-content h2 {
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.privacy-content ul,
.terms-content ul {
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

/* Read More Links */
.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: var(--transition-fast);
    padding: var(--spacing-xs) 0;
}

.read-more::after {
    content: ' →';
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--secondary-color-1);
    transform: translateX(5px);
}

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

.glass-effect {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Media Queries */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-menu {
        background: var(--white);
        box-shadow: var(--shadow-medium);
    }
    
    .columns {
        margin: 0 !important;
    }
    
    .column {
        padding: var(--spacing-sm) !important;
    }
    
    .card-image .image-container {
        height: 200px;
    }
    
    #instructors .card-image .image-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding-top: 60px;
    }
    
    .hero .hero-body {
        padding: var(--spacing-md) 0;
    }
    
    .btn,
    .button {
        width: 100%;
        min-width: auto;
    }
    
    .section .title::after {
        width: 60px;
        height: 3px;
    }
    
    .timeline .media {
        padding: var(--spacing-sm);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero {
        display: none !important;
    }
    
    .main-container {
        padding-top: 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}
