/* Material Design 3 CSS Variables */
:root {
    /* Primary colors */
    --md-sys-color-primary: #6750A4;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-on-primary-container: #21005D;
    
    /* Secondary colors */
    --md-sys-color-secondary: #625B71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #E8DEF8;
    --md-sys-color-on-secondary-container: #1D192B;
    
    /* Tertiary colors */
    --md-sys-color-tertiary: #7D5260;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #FFD8E4;
    --md-sys-color-on-tertiary-container: #31111D;
    
    /* Error colors */
    --md-sys-color-error: #B3261E;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #F9DEDC;
    --md-sys-color-on-error-container: #410E0B;
    
    /* Surface colors */
    --md-sys-color-surface: #FEF7FF;
    --md-sys-color-on-surface: #1C1B1F;
    --md-sys-color-surface-variant: #E7E0EC;
    --md-sys-color-on-surface-variant: #49454F;
    --md-sys-color-surface-container: #F3EDF7;
    --md-sys-color-surface-container-low: #F7F2FA;
    --md-sys-color-surface-container-high: #ECE6F0;
    --md-sys-color-surface-container-highest: #E6E0E9;
    
    /* Outline colors */
    --md-sys-color-outline: #79747E;
    --md-sys-color-outline-variant: #CAC4D0;
    
    /* Background */
    --md-sys-color-background: #FEF7FF;
    --md-sys-color-on-background: #1C1B1F;
    
    /* Inverse colors */
    --md-sys-color-inverse-surface: #313033;
    --md-sys-color-inverse-on-surface: #F4EFF4;
    --md-sys-color-inverse-primary: #D0BCFF;
    
    /* Shadow */
    --md-sys-color-shadow: #000000;
    
    /* Elevation */
    --md-sys-elevation-level1: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-level2: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-level3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-level4: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-level5: 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px rgba(0, 0, 0, 0.3);
    
    /* Shape */
    --md-sys-shape-corner-extra-small: 4px;
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-extra-large: 28px;
    --md-sys-shape-corner-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Navigation rail width */
    --nav-rail-width: 80px;
    --nav-rail-expanded-width: 200px;
    
    /* Transitions */
    --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
    --md-sys-motion-duration-short: 200ms;
    --md-sys-motion-duration-medium: 400ms;
    --md-sys-motion-duration-long: 600ms;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --md-sys-color-primary: #D0BCFF;
        --md-sys-color-on-primary: #381E72;
        --md-sys-color-primary-container: #4F378B;
        --md-sys-color-on-primary-container: #EADDFF;
        
        --md-sys-color-secondary: #CCC2DC;
        --md-sys-color-on-secondary: #332D41;
        --md-sys-color-secondary-container: #4A4458;
        --md-sys-color-on-secondary-container: #E8DEF8;
        
        --md-sys-color-tertiary: #EFB8C8;
        --md-sys-color-on-tertiary: #492532;
        --md-sys-color-tertiary-container: #633B48;
        --md-sys-color-on-tertiary-container: #FFD8E4;
        
        --md-sys-color-error: #F2B8B5;
        --md-sys-color-on-error: #601410;
        --md-sys-color-error-container: #8C1D18;
        --md-sys-color-on-error-container: #F9DEDC;
        
        --md-sys-color-surface: #141218;
        --md-sys-color-on-surface: #E6E0E9;
        --md-sys-color-surface-variant: #49454F;
        --md-sys-color-on-surface-variant: #CAC4D0;
        --md-sys-color-surface-container: #211F26;
        --md-sys-color-surface-container-low: #1D1B20;
        --md-sys-color-surface-container-high: #2B2930;
        --md-sys-color-surface-container-highest: #36343B;
        
        --md-sys-color-outline: #938F99;
        --md-sys-color-outline-variant: #49454F;
        
        --md-sys-color-background: #141218;
        --md-sys-color-on-background: #E6E0E9;
        
        --md-sys-color-inverse-surface: #E6E0E9;
        --md-sys-color-inverse-on-surface: #313033;
        --md-sys-color-inverse-primary: #6750A4;
    }
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.5;
    min-height: 100vh;
}

/* Typography */
.display-large {
    font-size: 57px;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: -0.25px;
}

.display-medium {
    font-size: 45px;
    font-weight: 400;
    line-height: 52px;
}

.display-small {
    font-size: 36px;
    font-weight: 400;
    line-height: 44px;
}

.headline-large {
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
}

.headline-medium {
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
}

.headline-small {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
}

.title-large {
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
}

.title-medium {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.15px;
}

.title-small {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.body-large {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.5px;
}

.body-medium {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.25px;
}

.body-small {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.4px;
}

.label-large {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.label-medium {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.5px;
}

.label-small {
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.5px;
}

/* Navigation Rail */
.nav-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--nav-rail-width);
    background-color: var(--md-sys-color-surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    z-index: 1000;
    transition: width var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    border-right: 1px solid var(--md-sys-color-outline-variant);
}

.nav-rail:hover {
    width: var(--nav-rail-expanded-width);
}

.nav-rail-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: 0 var(--spacing-sm);
}

.nav-rail-footer {
    padding: 0 var(--spacing-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--md-sys-shape-corner-full);
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    overflow: hidden;
    white-space: nowrap;
}

.nav-item:hover {
    background-color: var(--md-sys-color-surface-container-high);
}

.nav-item.active {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.nav-item .material-icons {
    font-size: 24px;
    flex-shrink: 0;
}

.nav-label {
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.nav-rail:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--md-sys-color-surface-container);
    padding: var(--spacing-xs) var(--spacing-sm);
    z-index: 1000;
    justify-content: space-around;
    box-shadow: var(--md-sys-elevation-level2);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--md-sys-shape-corner-large);
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    font-size: 10px;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.mobile-nav-item.active {
    color: var(--md-sys-color-on-secondary-container);
    background-color: var(--md-sys-color-secondary-container);
}

.mobile-nav-item .material-icons {
    font-size: 20px;
}

/* Main Content */
.main-content {
    margin-left: var(--nav-rail-width);
    min-height: 100vh;
    transition: margin-left var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-3xl);
    background: linear-gradient(135deg, var(--md-sys-color-primary-container) 0%, var(--md-sys-color-surface) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, var(--md-sys-color-tertiary-container) 0%, transparent 70%);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3xl);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
}

.hero-text h1 {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 16px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-illustration {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-extra-large);
    box-shadow: var(--md-sys-elevation-level3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card .material-icons {
    font-size: 48px;
    color: var(--md-sys-color-primary);
}

.floating-card.card-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 20%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.btn-filled {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    box-shadow: var(--md-sys-elevation-level1);
}

.btn-filled:hover {
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(-2px);
}

.btn-filled .material-icons {
    font-size: 18px;
}

.btn-outlined {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.btn-outlined:hover {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: var(--md-sys-color-primary);
}

.btn-outlined .material-icons {
    font-size: 18px;
}

.btn-tonal {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border: none;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.btn-tonal:hover {
    box-shadow: var(--md-sys-elevation-level1);
}

.btn-tonal .material-icons {
    font-size: 18px;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Sections */
.section {
    padding: var(--spacing-3xl);
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-label {
    display: inline-block;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.section-description {
    color: var(--md-sys-color-on-surface-variant);
    margin-top: var(--spacing-sm);
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Course Card */
.course-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-extra-large);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-level1);
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.course-card:hover {
    box-shadow: var(--md-sys-elevation-level3);
    transform: translateY(-4px);
}

.card-header {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.java-gradient {
    background: linear-gradient(135deg, #f89820 0%, #5382a1 100%);
}

.algoritmi-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tehnici-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.plf-gradient {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.card-icon {
    font-size: 64px;
    color: white;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--md-sys-color-on-surface);
}

.card-content p {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: var(--spacing-md);
}

.card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.chip {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: var(--md-sys-shape-corner-small);
    font-size: 12px;
    font-weight: 500;
}

.card-actions {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* Research Section */
.research-section {
    background-color: var(--md-sys-color-surface-container-low);
    max-width: none;
    border-radius: 0;
}

.research-section .section-header,
.research-section .research-grid,
.research-section .section-actions {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.research-card {
    background-color: var(--md-sys-color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--md-sys-shape-corner-large);
    text-align: center;
    box-shadow: var(--md-sys-elevation-level1);
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.research-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(-2px);
}

.research-icon {
    width: 64px;
    height: 64px;
    background-color: var(--md-sys-color-primary-container);
    border-radius: var(--md-sys-shape-corner-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.research-icon .material-icons {
    font-size: 32px;
    color: var(--md-sys-color-on-primary-container);
}

.research-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--md-sys-color-on-surface);
}

.research-card p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--md-sys-color-surface-container-low) 0%, var(--md-sys-color-surface) 100%);
    max-width: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info .section-label {
    margin-bottom: var(--spacing-md);
}

.contact-info h2 {
    margin-bottom: var(--spacing-md);
}

.contact-info .body-large {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-item .material-icons {
    font-size: 24px;
    color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-primary-container);
    padding: var(--spacing-sm);
    border-radius: var(--md-sys-shape-corner-full);
}

.contact-item p,
.contact-item a {
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    display: block;
}

.contact-item a:hover {
    color: var(--md-sys-color-primary);
}

.contact-item .label-large {
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--spacing-xs);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--md-sys-color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--md-sys-shape-corner-extra-large);
    box-shadow: var(--md-sys-elevation-level2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: var(--spacing-md);
    padding-top: var(--spacing-lg);
    background-color: var(--md-sys-color-surface-container-highest);
    border: none;
    border-bottom: 2px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small) 0 0;
    font-family: inherit;
    font-size: 16px;
    color: var(--md-sys-color-on-surface);
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-surface-container-high);
}

.form-field label {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 16px;
    pointer-events: none;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.form-field textarea ~ label {
    top: var(--spacing-lg);
    transform: none;
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
    top: var(--spacing-sm);
    transform: none;
    font-size: 12px;
    color: var(--md-sys-color-primary);
}

/* Footer */
.footer {
    background-color: var(--md-sys-color-surface-container);
    padding: var(--spacing-xl) var(--spacing-3xl);
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--md-sys-color-on-surface-variant);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    transition: color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

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

.footer-links .material-icons {
    font-size: 18px;
}

/* Page Specific Styles */
.page-header {
    padding: var(--spacing-3xl);
    padding-top: calc(var(--spacing-3xl) + 40px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header.java-header::before {
    background: linear-gradient(135deg, rgba(248, 152, 32, 0.2) 0%, rgba(83, 130, 161, 0.2) 100%);
}

.page-header.algoritmi-header::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.page-header.tehnici-header::before {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.2) 0%, rgba(56, 239, 125, 0.2) 100%);
}

.page-header.plf-header::before {
    background: linear-gradient(135deg, rgba(247, 151, 30, 0.2) 0%, rgba(255, 210, 0, 0.2) 100%);
}

.page-header.research-header::before {
    background: linear-gradient(135deg, rgba(103, 80, 164, 0.2) 0%, rgba(125, 82, 96, 0.2) 100%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    margin-bottom: var(--spacing-md);
}

.page-header p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 18px;
}

.page-header .btn-filled {
    margin-top: var(--spacing-lg);
}

/* Content Sections */
.content-section {
    padding: var(--spacing-2xl) var(--spacing-3xl);
    max-width: 1400px;
    margin: 0 auto;
}

.content-section h2 {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.content-section h2 .material-icons {
    color: var(--md-sys-color-primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--md-sys-color-outline-variant);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--spacing-xl) - 6px);
    top: 0;
    width: 14px;
    height: 14px;
    background-color: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-full);
    border: 3px solid var(--md-sys-color-surface);
}

.timeline-item .timeline-number {
    display: inline-block;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.timeline-item h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--md-sys-color-on-surface);
}

.timeline-item p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
}

/* Lecture Grid */
.lecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.lecture-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-large);
    padding: var(--spacing-lg);
    box-shadow: var(--md-sys-elevation-level1);
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    display: flex;
    flex-direction: column;
}

.lecture-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(-2px);
}

.lecture-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.lecture-number {
    width: 40px;
    height: 40px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: var(--md-sys-shape-corner-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex-shrink: 0;
}

.lecture-card h4 {
    color: var(--md-sys-color-on-surface);
    flex: 1;
}

.lecture-card p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.lecture-card .btn-tonal {
    align-self: flex-start;
}

/* Publication Cards */
.publication-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-large);
    padding: var(--spacing-lg);
    box-shadow: var(--md-sys-elevation-level1);
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    display: flex;
    gap: var(--spacing-md);
}

.publication-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
}

.publication-year {
    background-color: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--md-sys-shape-corner-medium);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    height: fit-content;
}

.publication-content h4 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--spacing-sm);
}

.publication-content p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
}

.publication-content a {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-size: 14px;
    margin-top: var(--spacing-sm);
}

.publication-content a:hover {
    text-decoration: underline;
}

/* Bibliography */
.bibliography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.book-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-large);
    padding: var(--spacing-lg);
    box-shadow: var(--md-sys-elevation-level1);
    text-align: center;
    transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.book-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(-2px);
}

.book-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--md-sys-color-primary-container) 0%, var(--md-sys-color-tertiary-container) 100%);
    border-radius: var(--md-sys-shape-corner-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.book-icon .material-icons {
    font-size: 40px;
    color: var(--md-sys-color-on-primary-container);
}

.book-card h4 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--spacing-xs);
}

.book-card .author {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
}

/* Download Resources */
.download-section {
    background-color: var(--md-sys-color-surface-container-low);
    padding: var(--spacing-xl);
    border-radius: var(--md-sys-shape-corner-extra-large);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
}

.download-section h3 {
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/* Publications List */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: none;
    }
    
    .hero-description {
        max-width: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-illustration {
        height: 250px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .display-large {
        font-size: 45px;
        line-height: 52px;
    }
}

@media (max-width: 768px) {
    .nav-rail {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding-bottom: 80px;
    }
    
    .hero {
        padding: var(--spacing-xl);
        min-height: auto;
        padding-top: var(--spacing-2xl);
    }
    
    .hero-illustration {
        display: none;
    }
    
    .section {
        padding: var(--spacing-xl);
    }
    
    .content-section {
        padding: var(--spacing-lg);
    }
    
    .page-header {
        padding: var(--spacing-xl);
        padding-top: var(--spacing-2xl);
    }
    
    .display-large {
        font-size: 36px;
        line-height: 44px;
    }
    
    .headline-large {
        font-size: 24px;
        line-height: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .lecture-grid {
        grid-template-columns: 1fr;
    }
    
    .bibliography-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-card {
        flex-direction: column;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--md-sys-color-surface-container);
}

::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-sys-color-on-surface-variant);
}

/* Selection */
::selection {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

/* Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

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

.course-card,
.research-card,
.lecture-card,
.publication-card,
.book-card {
    animation: fadeInUp 0.5s ease-out;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
