/**
 * Home 3 Professional Design - Modern CSS Framework
 * Inspired by Tailwind CSS with platform branding
 * Colors: #e41318 (Primary Red), #ff8400 (Secondary Orange)
 */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Brand Colors */
    --primary-red: #e41318;
    --primary-red-light: #ff4449;
    --primary-red-dark: #b30f13;
    --secondary-orange: #ff8400;
    --secondary-orange-light: #ffaa00;
    --secondary-orange-dark: #cc6900;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Brand Shadows */
    --shadow-red: 0 10px 30px -5px rgba(228, 19, 24, 0.3);
    --shadow-orange: 0 10px 30px -5px rgba(255, 132, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   HERO SECTION - PROFESSIONAL DESIGN
   ============================================ */
.hero-section-pro {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/background_letters.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title-wrapper {
    margin-bottom: var(--spacing-xl);
}

.hero-brand {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #e67700 !important 0%, var(--secondary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(228, 19, 24, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-instructor {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-cta-group {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.3s backwards;
}

.hero-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform var(--transition-slow);
}

.hero-image:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* ============================================
   BUTTONS - MODERN DESIGN
   ============================================ */
.btn-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-pro:hover::before {
    opacity: 1;
}

.btn-primary-pro {
    background: linear-gradient(135deg, #e67700 !important 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-primary-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(228, 19, 24, 0.4);
}

.btn-secondary-pro {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-orange-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-secondary-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(255, 132, 0, 0.4);
}

.btn-outline-pro {
    background: transparent;
    color: #e67700 !important;
    border: 2px solid #e67700 !important;
    box-shadow: var(--shadow-sm);
}

.btn-outline-pro:hover {
    background: #e67700 !important;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* ============================================
   YEAR CARDS - PROFESSIONAL DESIGN
   ============================================ */
.years-section-pro {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.section-title-pro {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title-pro h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title-pro h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e67700 !important 0%, var(--secondary-orange) 100%);
    border-radius: var(--radius-full);
}

.year-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.year-card-pro {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.year-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e67700 !important 0%, var(--secondary-orange) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.year-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.year-card-pro:hover::before {
    transform: scaleX(1);
}

.year-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--gray-100);
}

.year-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.year-card-pro:hover .year-card-image img {
    transform: scale(1.1);
}

.year-card-content {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.year-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-normal);
}

.year-card-pro:hover .year-card-title {
    color: #e67700 !important;
}

.year-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.year-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: #e67700 !important;
    font-weight: 600;
    text-decoration: none;
    transition: gap var(--transition-normal);
}

.year-card-link:hover {
    gap: var(--spacing-md);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .hero-brand {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .hero-instructor {
        font-size: 1.25rem;
    }

    .year-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-xl);
    }

    .section-title-pro h3 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section-pro {
        padding: 80px 0 60px;
    }

    .hero-brand {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-instructor {
        font-size: 1.125rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-pro {
        width: 100%;
        justify-content: center;
    }

    .year-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .section-title-pro h3 {
        font-size: 1.75rem;
    }

    .year-card-content {
        padding: var(--spacing-lg);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-brand {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-instructor {
        font-size: 1rem;
    }

    .btn-pro {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .section-title-pro h3 {
        font-size: 1.5rem;
    }

    .year-card-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container-pro {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mb-2xl {
    margin-bottom: var(--spacing-2xl);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mt-2xl {
    margin-top: var(--spacing-2xl);
}