/* Re Mind Set Logo Color Palette - Sage Green Theme */
:root {
  /* Light Mode Colors */
  --remindset-sage: #8A9B7E;           /* Primary sage green */
  --remindset-sage-light: #9AAE8E;     /* Lighter sage for hover states */
  --remindset-sage-dark: #6B7F5E;      /* Darker sage for emphasis */
  --remindset-mint: #FAFCF9;           /* Very light mint background - almost white */
  --remindset-charcoal: #5A6169;       /* Darker charcoal for better contrast */
  --remindset-olive: #A8B89C;          /* Muted olive for accents */
  --remindset-white: #FFFFFF;          /* Pure white */
  
  /* Dark Mode Colors */
  --remindset-sage-dm: #9AAE8E;        /* Brighter sage for dark mode */
  --remindset-sage-light-dm: #B4C7A9;  /* Even lighter for dark mode hover */
  --remindset-mint-dm: #1A2620;        /* Dark green-tinted background */
  --remindset-olive-dm: #7D9B7A;       /* Muted green for dark mode accents */
}

/* General styles */
body {
    background-color: var(--remindset-mint);
    transition: background-color 0.1s, color 0.1s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dark-mode {
    background-color: #1a1f1d;
    color: #e8f0e5;
}
  
.card, .btn {
    transition: all 0.3s ease;
    background-color: var(--remindset-white);
    color: var(--remindset-charcoal);
}
.btn-primary:hover, .card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Focus styles for accessibility */
.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(138, 155, 126, 0.25); /* sage shadow */
    border-color: var(--remindset-sage);
}

/* Loading states */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Form enhancements */

/* Alert animations */
.alert {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar, .navbar-light, .bg-light {
    background-color: var(--remindset-mint) !important;
}

.navbar-brand {
    font-family: 'Merriweather', serif;
    font-style: normal;
    font-size: 30px;
    color: var(--remindset-charcoal);
}

.my-small {
    font-size: 1.2em;
}

/* Hero section */
.hero {
    background: linear-gradient(90deg, rgba(138, 155, 126, 0.85) 0%, rgba(107, 127, 94, 0.85) 100%), url('https://source.unsplash.com/1600x600/?medical,doctor') center/cover no-repeat;
    color: white;
    min-height: 32vh;
    height: auto;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 2rem 0;
    contain: layout;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    will-change: auto;
}

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

/* Hero section */
.hero-small {
    background: linear-gradient(90deg, rgba(138, 155, 126, 0.85) 0%, rgba(107, 127, 94, 0.85) 100%), url('https://source.unsplash.com/1600x600/?medical,doctor') center/cover no-repeat;
    color: white;
    min-height: 10vh;
    height: auto;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 1.5rem 0;
    contain: layout;
}

.hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    will-change: auto;
}

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

/* Dark mode styles */
body.dark-mode {
    background-color: var(--remindset-mint-dm);
    color: #e8f0e5;
}
body.dark-mode .bg-light {
    background-color: var(--remindset-mint-dm) !important;
}
body.dark-mode .card {
    background-color: #23332a;
    color: #e8f0e5;
    border-color: var(--remindset-sage-dm);
}
body.dark-mode .hero {
    background: linear-gradient(90deg, rgba(35, 51, 42, 0.85) 0%, rgba(107, 127, 94, 0.75) 100%), url('https://source.unsplash.com/1600x600/?medical,doctor') center/cover no-repeat;
    color: #e8f0e5;
}

/* Dark mode form enhancements */

/* Custom section separators */
.separator {
    border-top: 1px solid var(--remindset-olive);
    width: 90%;
    margin: 0 auto;
}
body.dark-mode .separator {
    border-top: 1px solid var(--remindset-sage-dark);
}

/* Custom divider with fade effect */
.divider {
    position: relative;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--remindset-olive) 15%,
        var(--remindset-olive) 85%,
        transparent 100%
    );
    margin: 0;
    border: none;
}

body.dark-mode .divider {
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 15%,
        rgba(255, 255, 255, 0.15) 85%,
        transparent 100%
    );
}

/* Timeline structure - Enhanced Professional Design */
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 3rem 0;
    width: 100%;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(180deg, 
        var(--remindset-sage) 0%, 
        var(--remindset-sage-light) 50%, 
        var(--remindset-sage) 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(138, 155, 126, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 50%;
}

/* Category labels for timeline items */
.timeline-item[data-category="work"] .timeline-content::after {
    content: "WORK EXPERIENCE";
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--remindset-sage), var(--remindset-sage-dark));
    color: white;
    z-index: 3;
}

.timeline-item[data-category="academic"] .timeline-content::after {
    content: "ACADEMIC QUALIFICATIONS";
    position: absolute;
    top: -12px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #888, #777);
    color: white;
    z-index: 3;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--remindset-sage), var(--remindset-sage-light));
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(138, 155, 126, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Different marker colors for work vs academic */
.timeline-item[data-category="work"] .timeline-marker {
    background: linear-gradient(135deg, var(--remindset-sage), var(--remindset-sage-dark));
}

.timeline-item[data-category="academic"] .timeline-marker {
    background: linear-gradient(135deg, #888, #777);
}

/* Timeline marker styling - no icons */
/* Icons removed - keeping the circular marker design */

.timeline-content {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(138, 155, 126, 0.1);
    position: relative;
    width: 85%;
    max-width: 400px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Different border colors for work vs academic - positioned closest to timeline */
.timeline-item[data-category="work"] .timeline-content {
    border-right: 4px solid #e74c3c;
}

.timeline-item[data-category="academic"] .timeline-content {
    border-left: 4px solid #3498db;
}

/* Ensure borders are on the side opposite to the timeline */
.timeline-item:nth-child(odd)[data-category="work"] .timeline-content {
    border-left: 4px solid var(--remindset-sage);
    border-right: 1px solid rgba(138, 155, 126, 0.1);
}

.timeline-item:nth-child(even)[data-category="work"] .timeline-content {
    border-right: 4px solid var(--remindset-sage);
    border-left: 1px solid rgba(138, 155, 126, 0.1);
}

.timeline-item:nth-child(odd)[data-category="academic"] .timeline-content {
    border-left: 4px solid #888;
    border-right: 1px solid rgba(138, 155, 126, 0.1);
}

.timeline-item:nth-child(even)[data-category="academic"] .timeline-content {
    border-right: 4px solid #888;
    border-left: 1px solid rgba(138, 155, 126, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -16px;
    transform: translateY(-50%);
    border-left-color: #fff;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -16px;
    transform: translateY(-50%);
    border-right-color: #fff;
}

.timeline-content h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--remindset-sage);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Different heading colors for work vs academic */
.timeline-item[data-category="work"] .timeline-content h5 {
    color: var(--remindset-sage);
}

.timeline-item[data-category="academic"] .timeline-content h5 {
    color: #888;
}

/* Timeline content heading styling - no icons */
/* Icons removed from headings */

.timeline-content p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #555;
    font-weight: 500;
}

.timeline-content strong {
    color: #333;
    font-weight: 600;
}

/* Enhanced hover effects */
.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 8px 25px rgba(138, 155, 126, 0.6);
}

.timeline-item[data-category="work"]:hover .timeline-marker {
    background: linear-gradient(135deg, var(--remindset-sage-dark), var(--remindset-sage));
    box-shadow: 0 8px 25px rgba(138, 155, 126, 0.6);
}

.timeline-item[data-category="academic"]:hover .timeline-marker {
    background: linear-gradient(135deg, #777, #888);
    box-shadow: 0 8px 25px rgba(136, 136, 136, 0.6);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    border-color: rgba(138, 155, 126, 0.2);
}

.timeline-item:hover .timeline-content h5 {
    color: var(--remindset-sage-light);
}

/* Special start marker */
.start-marker {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--remindset-sage-light), var(--remindset-olive));
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(138, 155, 126, 0.4);
    z-index: 2;
}

/* Dark mode support */
body.dark-mode .timeline::before {
    background: linear-gradient(180deg, 
        var(--remindset-sage-dm) 0%, 
        var(--remindset-olive-dm) 50%, 
        var(--remindset-sage-dm) 100%);
    box-shadow: 0 0 20px rgba(154, 174, 142, 0.3);
}

body.dark-mode .timeline-marker {
    background: linear-gradient(135deg, #0d6efd, #6c757d);
    border-color: #212529;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

body.dark-mode .timeline-item[data-category="work"] .timeline-marker {
    background: linear-gradient(135deg, var(--remindset-sage), var(--remindset-sage-dark));
}

body.dark-mode .timeline-item[data-category="academic"] .timeline-marker {
    background: linear-gradient(135deg, #888, #777);
}

body.dark-mode .timeline-content {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* Dark mode border positioning for timeline cards - opposite side */
body.dark-mode .timeline-item:nth-child(odd)[data-category="work"] .timeline-content {
    border-left: 4px solid var(--remindset-sage);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .timeline-item:nth-child(even)[data-category="work"] .timeline-content {
    border-right: 4px solid var(--remindset-sage);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .timeline-item:nth-child(odd)[data-category="academic"] .timeline-content {
    border-left: 4px solid #888;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .timeline-item:nth-child(even)[data-category="academic"] .timeline-content {
    border-right: 4px solid #888;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .timeline-content h5 {
    color: #60a5fa;
}

body.dark-mode .timeline-item[data-category="work"] .timeline-content h5 {
    color: var(--remindset-sage);
}

body.dark-mode .timeline-item[data-category="academic"] .timeline-content h5 {
    color: #888;
}

/* Dark mode timeline content heading styling - no icons */
/* Icons removed from headings */

body.dark-mode .timeline-content p {
    color: #cbd5e0;
}

body.dark-mode .timeline-content strong {
    color: #f7fafc;
}

body.dark-mode .timeline-item:nth-child(odd) .timeline-content::before {
    border-left-color: #2d3748;
}

body.dark-mode .timeline-item:nth-child(even) .timeline-content::before {
    border-right-color: #2d3748;
}

body.dark-mode .start-marker {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #212529;
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        margin-bottom: 2.5rem;
    }
    
    .timeline-marker {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: 100%;
        max-width: none;
        margin: 0 !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -16px;
        right: auto;
        transform: translateY(-50%);
        border-right-color: #fff;
        border-left-color: transparent;
    }
    
    body.dark-mode .timeline-item:nth-child(odd) .timeline-content::before,
    body.dark-mode .timeline-item:nth-child(even) .timeline-content::before {
        border-right-color: #2d3748;
        border-left-color: transparent;
    }
    
    .start-marker {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-item:hover .timeline-marker {
        transform: translateX(-50%) scale(1.2);
    }
    
    /* Adjust category labels for mobile */
    .timeline-item[data-category="work"] .timeline-content::after,
    .timeline-item[data-category="academic"] .timeline-content::after {
        top: -10px;
        left: 20px !important;
        right: auto !important;
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    /* Mobile border positioning - all cards are left of timeline, so colored border on left (opposite side) */
    .timeline-item[data-category="work"] .timeline-content {
        border-left: 4px solid var(--remindset-sage) !important;
        border-right: 1px solid rgba(138, 155, 126, 0.1) !important;
    }
    
    .timeline-item[data-category="academic"] .timeline-content {
        border-left: 4px solid #888 !important;
        border-right: 1px solid rgba(138, 155, 126, 0.1) !important;
    }
    
    /* Dark mode mobile borders */
    body.dark-mode .timeline-item[data-category="work"] .timeline-content {
        border-left: 4px solid var(--remindset-sage-dm) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    body.dark-mode .timeline-item[data-category="academic"] .timeline-content {
        border-left: 4px solid #888 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

/* Animation for timeline items */
@keyframes timelineFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: timelineFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .timeline-item {
        animation: none;
        opacity: 1;
    }
    
    .timeline-item:hover .timeline-marker,
    .timeline-item:hover .timeline-content {
        transform: none;
    }
}

.toggle-btn {
    width: auto;
    display: inline-block;
    align-self: center;
    margin-top: auto;
}
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--remindset-olive);
    box-shadow: 0 4px 16px rgba(138, 155, 126, 0.08);
}

.read-more-collapse:not(.show) {
    display: none !important;
}

.read-more-collapse.collapsing {
    height: auto !important;
    transition: none !important;
}

/* Hide images if they don't exist */
img:not([src]):not([srcset]) {
    display: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
    /* Prevent horizontal overflow on body */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Fix container and row overflow */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .row > * {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Fix iframe and ratio containers on mobile */
    .ratio {
        max-width: 100%;
    }
    
    iframe {
        max-width: 100%;
    }
    
    .hero {
        min-height: 24vh;
    }
    
    .hero-small {
        min-height: 8vh;
    }
    
    .navbar-brand {
        font-size: 24px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    /* Ensure navbar brand doesn't overflow on mobile */
    .navbar .container {
        flex-wrap: wrap;
    }
    
    /* Better spacing for navbar brand on mobile - apply to both languages */
    .dr-ioannis {
        font-size: 0.9rem !important;
    }
    
    .navbar-brand-script {
        font-size: 1.6rem !important;
    }
    
    /* Reduce gaps on mobile to prevent overflow */
    .navbar .gap-3 {
        gap: 0.5rem !important;
    }
    
    /* Ensure text doesn't wrap and cause issues */
    .dr-ioannis, .navbar-brand-script {
        white-space: nowrap;
    }
    
    /* Override Greek-specific styles on mobile to match English - must come after tablet styles */
    [lang="el"] .navbar-brand-script {
        font-size: 2.4rem !important;
    }
    
    /* Ensure navbar container padding is consistent on mobile for both languages */
    .navbar .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Ensure logo doesn't take too much space on mobile */
    .logo-circle {
        width: 40px !important;
        height: 40px !important;
    }
    
    .logo-circle img {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Better button sizing for touch on mobile */
    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Ensure cards have proper spacing on mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Better image scaling on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure iframes are fully responsive */
    iframe {
        max-width: 100%;
        width: 100%;
        height: 100%;
    }
    
    /* Ensure text is readable on mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Better spacing for sections on mobile */
    section {
        padding: 2rem 0;
    }
    
    /* Ensure language switcher and dark mode button are accessible on mobile */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .language-switcher {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Better footer spacing on mobile */
    footer {
        padding: 2rem 0;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Professional info section - left align and improve styling on mobile */
    .hero .col-lg-6.text-center.text-lg-start {
        text-align: left !important;
    }
    
    /* Ensure all text in hero section is left-aligned on mobile */
    .hero h1 {
        text-align: left !important;
    }
    
    /* Professional info styling - left aligned with better spacing */
    .hero .my-small {
        text-align: left !important;
        margin-top: 1.5rem;
        padding: 1rem 0;
        display: block;
        line-height: 1.8;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.95);
    }
    
    .hero .my-small span {
        display: block;
        font-size: 1.2em !important;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: #fff;
        text-align: left !important;
    }
    
    /* Better spacing for hero buttons on mobile */
    .hero .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix badge dimensions on mobile - allow wrapping and adjust sizing */
    .badge {
        white-space: normal !important;
        word-wrap: break-word;
        max-width: 100%;
        display: inline-block;
        line-height: 1.4;
        padding: 0.5em 0.75em;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    /* Ensure badge container allows wrapping */
    .d-flex.flex-wrap {
        width: 100%;
    }
    
    /* Make long badges wrap properly on mobile */
    .badge.bg-primary,
    .badge.bg-secondary {
        width: 100%;
        text-align: left;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .hero {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Accessibility improvements */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover, .card:hover {
        transform: none;
    }
}
  
.yet-echo.yet-1 {
  font-size: 1.3em;
  opacity: 1;
  margin-left: 0;
  font-weight: bold;
}
.yet-echo.yet-2 {
  font-size: 1.15em;
  opacity: 0.85;
  margin-left: 0.5em;
}
.yet-echo.yet-3 {
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 0.7em;
}
.yet-echo.yet-4 {
  font-size: 0.65em;
  opacity: 0.55;
  margin-left: 1em;
}
  
/* Re Mind Set navbar branding */
.navbar-remindset-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}
.navbar-remindset-brand-main {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--remindset-charcoal);
  letter-spacing: 1px;
}
.navbar-remindset-brand-main .mind {
  color: var(--remindset-sage);
  font-weight: 500;
}
.navbar-remindset-brand-sub {
  color: var(--remindset-sage);
  font-weight: 600;
  font-size: 1rem;
  margin-top: -0.2em;
}

/* Re Mind Set logo circle */
.navbar-remindset-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.navbar-remindset-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.7;
}
  
.btn-primary {
    background-color: var(--remindset-sage) !important;
    border-color: var(--remindset-sage) !important;
    color: var(--remindset-white) !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--remindset-sage-light) !important;
    border-color: var(--remindset-sage-light) !important;
    color: white !important;
}
  
body.dark-mode .navbar, body.dark-mode .navbar-light, body.dark-mode .bg-light {
    background-color: var(--remindset-mint-dm) !important;
    color: var(--remindset-sage-light-dm) !important;
}
body.dark-mode .navbar-brand, body.dark-mode .navbar-remindset-brand-main {
    color: var(--remindset-sage-light-dm) !important;
}
body.dark-mode .navbar-remindset-brand-sub {
    color: #e8f0e5 !important;
}
  
/* About section text size */
#about p {
    font-size: 1.1rem;
    line-height: 1.7;
}
  
/* Navbar branding script font: Zapfino for Apple, Dancing Script for others, then cursive */
.navbar-brand-script {
  font-family: 'Zapfino', 'Georgia', 'Times New Roman', serif;
  font-weight: normal;
  letter-spacing: 0.5px;
  font-style: normal;
  font-size: 3rem;
  display: inline-block;
  vertical-align: baseline;
}

/* Apply body font to Dr. Ioannis Kalaitzidis in navbar */
.navbar .dr-ioannis {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: normal;
  font-style: normal;
  font-size: 2.4rem;
  color: #7a5422;
  line-height: 1;
  display: inline-block;
  vertical-align: baseline;
}

/* Greek language font overrides - use self-hosted Zapfino Extra LT W1G font */
/* Desktop only - mobile sizes are handled in mobile media query */
@media (min-width: 769px) {
  [lang="el"] .navbar-brand-script {
    font-family: 'Zapfino', 'Georgia', 'Times New Roman', serif;
    font-weight: normal;
    letter-spacing: 0.5px;
    font-style: normal;
    font-size: 2.4rem !important;
  }
}

/* Greek navbar alignment and spacing improvements */
[lang="el"] .navbar-nav .nav-link {
  font-size: 0.95rem;
  padding: 1rem 0.0rem;
  white-space: nowrap;
  font-weight: 500;
}

[lang="el"] .navbar-nav .nav-item {
  margin: 0 0.15rem;
}

/* Ensure consistent spacing for Greek navbar */

[lang="el"] .navbar-nav {
  gap: 0.3rem;
}

/* Responsive adjustments for Greek navbar - tablet only (not mobile) */
@media (min-width: 769px) and (max-width: 991.98px) {
  [lang="el"] .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  
  [lang="el"] .navbar-brand-script {
    font-size: 0.9rem !important;
  }
}

/* Tablet-specific improvements (768px - 991px) */
@media (min-width: 769px) and (max-width: 991.98px) {
  /* Better spacing for navbar on tablet */
  .navbar .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* Ensure cards have proper spacing on tablet */
  .card {
    margin-bottom: 2rem;
  }
  
  /* Better image scaling on tablet */
  .card img {
    max-width: 100%;
    height: auto;
  }
  
  /* Better section spacing on tablet */
  section {
    padding: 3rem 0;
  }
  
  /* Ensure text is readable on tablet */
  body {
    font-size: 17px;
    line-height: 1.6;
  }
  
  /* Better button sizing for tablet */
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .btn-lg {
    padding: 0.8rem 1.75rem;
  }
}
  
/* Philosophy section image positioning */
/* No positioning needed for flexbox layout */
@media (max-width: 991.98px) {
  .philosophy-img-wrapper {
    display: none !important;
  }
}

/* Philosophy section flexbox layout */
.philosophy-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
}
.philosophy-img-wrapper {
  margin-left: 2rem;
  display: flex;
  align-items: flex-start;
}
@media (max-width: 991.98px) {
  .philosophy-flex {
    flex-direction: column !important;
    align-items: center !important;
  }
  .philosophy-img-wrapper {
    margin-left: 0 !important;
    margin-top: 2rem;
    display: block !important;
  }
}

@media (min-width: 992px) {
  .container-philosophy {
    padding-right: 0 !important;
  }
  .philosophy-img-right {
    padding-right: 0 !important;
    margin-right: -64px;
  }
}

/* Make philosophy image smaller on mobile to maintain site flow */
@media (max-width: 991.98px) {
  .philosophy-img-right {
    display: block !important;
    text-align: center !important;
    margin-top: 2rem !important;
  }
  .philosophy-img-right img {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
}
  

/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher .btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.language-switcher .btn.active {
  background-color: var(--remindset-sage);
  color: white;
  border-color: var(--remindset-sage);
  box-shadow: 0 2px 8px rgba(138, 155, 126, 0.3);
}

.language-switcher .btn:not(.active) {
  background-color: transparent;
  color: var(--remindset-charcoal);
  border-color: #dee2e6;
}

.language-switcher .btn:not(.active):hover {
  background-color: #f8f9fa;
  color: var(--remindset-sage);
  border-color: var(--remindset-sage);
  transform: translateY(-1px);
}

.language-switcher .flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.language-switcher .flag.en {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><clipPath id="a"><path d="M0 0v30h60V0z"/></clipPath><clipPath id="b"><path d="M30 15h30v15zv15H0zH0V0zV0h30z"/></clipPath><g clip-path="url(%23a)"><path d="M0 0v30h60V0z" fill="%23012169"/><path d="M0 0L60 30m0-30L0 30" stroke="%23fff" stroke-width="6"/><path d="M0 0L60 30m0-30L0 30" clip-path="url(%23b)" stroke="%23C8102E" stroke-width="4"/><path d="M30 0v30M0 15h60" stroke="%23fff" stroke-width="10"/><path d="M30 0v30M0 15h60" stroke="%23C8102E" stroke-width="6"/></g></svg>');
}

.language-switcher .flag.el {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 18"><rect width="27" height="18" fill="%230D5EAF"/><rect width="27" height="2" y="0" fill="%230D5EAF"/><rect width="27" height="2" y="2" fill="%23fff"/><rect width="27" height="2" y="4" fill="%230D5EAF"/><rect width="27" height="2" y="6" fill="%23fff"/><rect width="27" height="2" y="8" fill="%230D5EAF"/><rect width="27" height="2" y="10" fill="%23fff"/><rect width="27" height="2" y="12" fill="%230D5EAF"/><rect width="27" height="2" y="14" fill="%23fff"/><rect width="27" height="2" y="16" fill="%230D5EAF"/><rect width="10" height="10" fill="%230D5EAF"/><rect width="10" height="2" y="4" fill="%23fff"/><rect width="2" height="10" x="4" fill="%23fff"/></svg>');
}

/* Dark mode support for language switcher */
body.dark-mode .language-switcher .btn:not(.active) {
  background-color: transparent;
  color: #f8f9fa;
  border-color: #495057;
}

body.dark-mode .language-switcher .btn:not(.active):hover {
  background-color: #495057;
  color: white;
  border-color: var(--remindset-sage-dm);
}

/* Responsive adjustments for language switcher */
@media (max-width: 768px) {
  .language-switcher {
    margin-top: 10px;
    justify-content: center;
  }
  
  .language-switcher .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
  
  .language-switcher .flag {
    width: 18px;
    height: 13px;
  }
}

/* Animation for language switching */
.language-switcher .btn {
  position: relative;
  overflow: hidden;
}

.language-switcher .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: left 0.5s;
}

.language-switcher .btn:hover::before {
  left: 100%;
}

/* CV Page Enhancements - Updated for new timeline design */

/* Progress bar animations */
.progress {
  overflow: hidden;
  background-color: #e9ecef;
  border-radius: 10px;
}

.progress-bar {
  transition: width 1.5s ease-in-out;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--remindset-sage) 0%, var(--remindset-sage-dark) 100%);
}

/* Skills section enhancements */

/* Professional headshot styling */
.cv-headshot {
  transition: all 0.3s ease;
  border: 4px solid #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cv-headshot:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* Dark mode support for CV enhancements */

body.dark-mode .progress {
  background-color: #495057;
}

/* Responsive adjustments for CV enhancements */
@media (max-width: 768px) {

  
  .cv-headshot {
    width: 120px !important;
    height: 120px !important;
  }
  
  .cv-headshot:hover {
    transform: scale(1.02);
  }
}

/* ========================================
   Cookie Consent Banner Styles
   ======================================== */

.privacy-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, var(--remindset-mint), var(--remindset-olive));
  border-top: 3px solid var(--remindset-sage);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem 0;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
}

.privacy-notice h5 {
  color: var(--remindset-charcoal);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.privacy-notice p {
  color: var(--remindset-charcoal);
  line-height: 1.6;
}

.privacy-notice a {
  color: var(--remindset-sage);
  font-weight: 500;
}

.privacy-notice a:hover {
  color: var(--remindset-charcoal);
}

.privacy-notice .btn-primary {
  background-color: var(--remindset-sage);
  border-color: var(--remindset-sage);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}

.privacy-notice .btn-primary:hover {
  background-color: var(--remindset-charcoal);
  border-color: var(--remindset-charcoal);
  transform: translateY(-2px);
}

.privacy-notice .btn-outline-secondary {
  border-color: var(--remindset-charcoal);
  color: var(--remindset-charcoal);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}

.privacy-notice .btn-outline-secondary:hover {
  background-color: var(--remindset-charcoal);
  border-color: var(--remindset-charcoal);
  color: white;
  transform: translateY(-2px);
}

/* Dark Mode Support for Privacy Notice */
body.dark-mode .privacy-notice {
  background: linear-gradient(to right, #1a2620, #23332a);
  border-top-color: var(--remindset-sage-dm);
}

body.dark-mode .privacy-notice h5,
body.dark-mode .privacy-notice p {
  color: #e8f0e5;
}

body.dark-mode .privacy-notice a {
  color: var(--remindset-sage-light-dm);
}

body.dark-mode .privacy-notice a:hover {
  color: #ffffff;
}

/* Responsive Design for Privacy Notice */
@media (max-width: 768px) {
  .privacy-notice {
    padding: 1rem 0;
  }
  
  .privacy-notice h5 {
    font-size: 1.1rem;
  }
  
  .privacy-notice p {
    font-size: 0.9rem;
  }
  
  .privacy-notice .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .privacy-notice .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Force banner visibility when shown - override any conflicting styles */
.privacy-notice[style*="display: block"] {
  display: block !important;
}

.privacy-notice[style*="opacity: 1"] {
  opacity: 1 !important;
}

  