/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors (Complementary Scheme) */
    --primary-color: #FF6B35;
    --primary-dark: #E55527;
    --primary-light: #FF8A5C;
    --secondary-color: #35A0FF;
    --secondary-dark: #2789E5;
    --secondary-light: #5CB3FF;
    
    /* Accent Colors */
    --accent-orange: #FF8F47;
    --accent-blue: #47A3FF;
    --accent-purple: #8B5CF6;
    --accent-teal: #14B8A6;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Glass Effect Colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --glass-backdrop: rgba(255, 255, 255, 0.05);
    
    /* Gradient Variables */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-orange) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-blue) 100%);
    --gradient-purple: linear-gradient(135deg, var(--accent-purple) 0%, var(--secondary-color) 100%);
    --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    
    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --card-padding: 2rem;
    --border-radius: 16px;
    --small-radius: 8px;
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.8rem; font-weight: 600; }
h3 { font-size: 2.2rem; font-weight: 600; }
h4 { font-size: 1.8rem; font-weight: 500; }
h5 { font-size: 1.4rem; font-weight: 500; }
h6 { font-size: 1.1rem; font-weight: 500; }

p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ===== BUTTON STYLES ===== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
    color: var(--white);
}

.glass-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ===== GLASS EFFECT COMPONENTS ===== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-fast);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-input {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--small-radius);
    color: var(--gray-800);
    transition: var(--transition-fast);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.glass-input::placeholder {
    color: var(--gray-500);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition-fast);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: var(--small-radius);
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

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

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

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

.hero-section h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.card-title {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Pricing and Duration Styles */
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.duration {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== WORKSHOPS SECTION ===== */
#workshops {
    padding: var(--section-padding);
}

#workshops .card {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

/* ===== INNOVATION SECTION ===== */
#innovation {
    padding: var(--section-padding);
}

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

.accordion-button {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: none;
    color: var(--gray-800);
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

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

.accordion-body {
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-600);
    padding: 1.5rem;
}

/* ===== PROCESS SECTION ===== */
#process {
    padding: var(--section-padding);
}

.process-step {
    position: relative;
    height: 100%;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h4 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.process-step p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio {
    padding: var(--section-padding);
}

#portfolio .card {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

#portfolio .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ===== CASE STUDIES SECTION ===== */
#case-studies {
    padding: var(--section-padding);
}

.case-study {
    position: relative;
    height: 100%;
}

.case-study img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--small-radius);
    margin: 0 auto;
    display: block;
}

.case-tag {
    display: inline-block;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== NEWS SECTION ===== */
#news {
    padding: var(--section-padding);
}

#news .card {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

/* ===== MEDIA SECTION ===== */
#media {
    padding: var(--section-padding);
}

.resource-link {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--small-radius);
    transition: var(--transition-fast);
    color: var(--gray-700);
}

.resource-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: var(--primary-color);
    text-decoration: none;
}

.resource-link h6 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.resource-link small {
    color: var(--gray-600);
}

/* ===== COMMUNITY SECTION ===== */
#community {
    padding: var(--section-padding);
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
#contact {
    padding: var(--section-padding);
}

.contact-form {
    width: 100%;
}

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

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

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

/* ===== FOOTER ===== */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: var(--section-padding);
    margin-top: 4rem;
}

.footer h5 {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.footer h6 {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-link {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
    padding: 0.3rem 0;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem;
    border-radius: var(--small-radius);
}

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

.social-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.social-links a:hover::after {
    width: 80%;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

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

.text-secondary {
    color: var(--secondary-color) !important;
}

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

/* ===== READ MORE LINKS ===== */
.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition-fast);
    display: inline-block;
    margin-top: 1rem;
}

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

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

.read-more:hover::after {
    transform: translateX(3px);
}

/* ===== SPECIAL PAGES ===== */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.privacy-page, .terms-page {
    padding-top: 100px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
}

@media (max-width: 992px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --card-padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .glass-card {
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    .accordion-button {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

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

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

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

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-pulse:hover {
    animation: pulse 0.6s ease;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.card-image img,
.hero-section,
.parallax-bg {
    will-change: transform;
}

.glass-card:hover,
.btn:hover {
    will-change: transform, box-shadow;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.glass-input:focus,
.nav-link:focus {
    outline: 3px solid rgba(255, 107, 53, 0.3);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: var(--black);
    }
    
    .glass-card {
        background: var(--white);
        border: 1px solid var(--gray-300);
    }
}