/*!
 * Modern Resume Template - Enhanced Version
 * Featuring: Glass-morphism, Gradients, Animations, Dark Mode
 */

/* ============================================
   ΕΙΣΑΓΩΓΗ ΔΙΑΜΟΡΦΩΣΗΣ ΘΕΜΑΤΟΣ
   IMPORT THEME CONFIGURATION
   ============================================ */
@import url('theme-config.css');

/* ============================================
   ΓΕΝΙΚΑ ΣΤΥΛ - GLOBAL STYLES
   ============================================ */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 54px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    line-height: 1.6;
}

@media (min-width: 992px) {
    body {
        padding-top: 0;
        padding-left: 17rem;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: slideIn 0.5s ease;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-primary);
}

p.lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Education Section Icons - Same color as other icons */
.fa-graduation-cap.text-primary,
.fa-globe-europe.text-primary,
.fa-laptop-code.text-primary {
    color: var(--accent-color) !important; /* Cyan #0ea5e9 */
}

.subheading {
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: -0.01em;
}

/* Company Links */
.company-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.company-link:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.company-link i {
    font-size: 0.75em;
    margin-left: 0.35rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.company-link:hover i {
    opacity: 1;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   CONTACT INFO STYLES - 3 OPTIONS
   ============================================ */

/* OPTION A: Sidebar Contact Info */
.sidebar-contact-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 0.5rem;
    margin-top: 0.5rem;
}

.sidebar-contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-contact-info .contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-contact-info .contact-item i {
    font-size: 1rem;
    min-width: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-contact-info .contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.75rem;
    word-break: break-all;
}

.sidebar-contact-info .contact-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.sidebar-contact-info .contact-item span {
    font-size: 0.8rem;
}

/* OPTION B: Modern Contact Badges Below Name */
.contact-info-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.contact-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.contact-badge:hover i,
.contact-badge:hover a,
.contact-badge:hover span {
    color: white !important;
}

.contact-badge i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-badge a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.contact-badge a:hover {
    color: white;
}

.contact-badge span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* OPTION C: Floating Contact Card */
.floating-contact-card {
    position: fixed;
    bottom: 130px;
    right: 30px;
    z-index: 998;
}

.floating-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.floating-content {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-contact-card.active .floating-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-content h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.floating-item:hover {
    transform: translateX(-5px);
    background: var(--bg-secondary);
}

.floating-item i {
    font-size: 1.2rem;
    min-width: 20px;
}

.floating-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.floating-item a:hover {
    color: var(--primary-color);
}

.floating-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.floating-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.floating-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.floating-social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-info-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-badge {
        width: 100%;
        justify-content: flex-start;
    }
    
    .floating-contact-card {
        bottom: 110px;
        right: 20px;
    }
    
    .floating-content {
        width: 280px;
        right: -10px;
    }
}

/* ============================================
   NAVIGATION - ENHANCED SIDEBAR
   ============================================ */
#sideNav {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#sideNav .navbar-nav .nav-item {
    margin-bottom: 0.25rem;
}

#sideNav .navbar-nav .nav-item .nav-link {
    font-weight: 600;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 1rem;
    display: flex;
    align-items: center;
}

#sideNav .navbar-nav .nav-item .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: #fff;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

#sideNav .navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

#sideNav .navbar-nav .nav-item .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#sideNav .navbar-nav .nav-item .nav-link:hover::before {
    height: 100%;
}

#sideNav .navbar-nav .nav-item .nav-link:hover::after {
    transform: translateX(0);
}

#sideNav .navbar-nav .nav-item .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#sideNav .navbar-nav .nav-item .nav-link.active::before {
    height: 100%;
    width: 5px;
}

#sideNav .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

#sideNav .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Mobile Header Icons */
.mobile-header-icons {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-right: 0.3rem;
}

.mobile-header-icons .btn {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.mobile-header-icons .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.mobile-header-icons .btn i {
    font-size: 0.85rem;
}

/* Ensure burger menu and icons stay on same line in mobile */
@media (max-width: 991.98px) {
    #sideNav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.75rem;
    }
    
    #sideNav .navbar-brand {
        flex: 0 1 auto;
        max-width: 50%;
        font-size: 0.95rem;
    }
    
    /* Ensure profile image stays hidden on mobile */
    #sideNav .navbar-brand .img-profile {
        display: none !important;
    }
    
    #sideNav .mobile-header-icons,
    #sideNav .navbar-toggler {
        flex-shrink: 0;
    }
    
    #sideNav .navbar-toggler {
        margin-left: 0;
        padding: 0.35rem 0.5rem;
    }
}

/* Extra small screens - further optimize spacing */
@media (max-width: 359px) {
    #sideNav {
        padding: 0.4rem 0.5rem;
    }
    
    #sideNav .navbar-brand {
        max-width: 45%;
        font-size: 0.85rem;
    }
    
    .mobile-header-icons {
        gap: 0.25rem;
        margin-right: 0.25rem;
    }
    
    .mobile-header-icons .btn {
        padding: 0.3rem 0.45rem;
        font-size: 0.8rem;
    }
    
    .mobile-header-icons .btn i {
        font-size: 0.8rem;
    }
    
    #sideNav .navbar-toggler {
        padding: 0.3rem 0.45rem;
    }
    
    #sideNav .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
}

@media (min-width: 992px) {
    #sideNav {
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        width: 17rem;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    #sideNav .navbar-brand {
        display: flex;
        flex-direction: column;
        margin: auto auto 0;
        padding: 0.5rem 0.5rem 1rem;
        justify-content: center;
    }
    
    #sideNav .navbar-brand .img-profile {
        max-width: 9rem;
        max-height: 9rem;
        border: 0.4rem solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        filter: brightness(1) contrast(1.05);
        margin-bottom: 0.5rem;
    }
    
    #sideNav .navbar-brand .img-profile:hover {
        transform: scale(1.08) rotate(2deg);
        box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        filter: brightness(1.1) contrast(1.1);
    }
    
    #sideNav .navbar-collapse {
        display: flex;
        align-items: flex-start;
        flex-grow: 0;
        width: 100%;
        margin-bottom: auto;
    }
    
    #sideNav .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    #sideNav .navbar-collapse .navbar-nav .nav-item {
        display: block;
        width: 100%;
    }
    
    #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
        display: block;
        text-align: left;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Control Buttons - Language & Dark Mode */
.control-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.control-btn {
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    border-radius: 25px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

#languageToggle {
    width: auto;
}

#darkModeToggle {
    width: 45px;
    font-size: 1.2rem;
}

.control-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: white;
}

/* ============================================
   SECTIONS
   ============================================ */
section.resume-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    max-width: 75rem;
    position: relative;
}

section.resume-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@media (min-width: 768px) {
    section.resume-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 992px) {
    section.resume-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

#about::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.download-cv-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.download-cv-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.download-cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.download-cv-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Social Icons */
.social-icons a {
    display: inline-block;
    height: 3.5rem;
    width: 3.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--primary-color) !important;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    line-height: 3.5rem;
    margin-right: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-icons a:last-child {
    margin-right: 0;
}

.social-icons a:hover {
    background: var(--gradient-primary);
    color: #fff !important;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   EXPERIENCE SECTION - TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 120px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--bg-glass);
    z-index: 1;
}

.timeline-item:hover::before {
    animation: pulse 1s ease infinite;
}

.timeline-content {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.timeline-date {
    position: absolute;
    left: 120px;
    top: -30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.achievement-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
    margin-top: 8px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skill-category {
    margin-bottom: 3rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 700;
}

.skill-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
    animation: shimmer 2s infinite;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Dev Icons */
.dev-icons {
    font-size: 2.5rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: space-between;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.dev-icons::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.dev-icons .list-inline-item {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.dev-icons .list-inline-item:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.dev-icons .list-inline-item i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.dev-icons .list-inline-item:hover i {
    animation: bounce 0.6s ease;
}

/* ============================================
   SKILLS PROGRESS BARS
   ============================================ */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h4 {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-category h4 i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.skill-percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.progress {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* Mobile responsiveness for skills */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   PROJECTS & CARDS
   ============================================ */
.project-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.project-card-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.project-card-body {
    padding: 2rem;
}

.project-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.project-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* WordPress Portfolio Grid */
.wordpress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wordpress-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.wordpress-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.wordpress-card-content {
    padding: 1.5rem;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.certification-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.certification-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    font-size: 1.5rem;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    /* Κρύβουμε την κάθετη γραμμή στα κινητά */
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        padding-left: 0;
        margin-bottom: 2rem;
    }
    
    /* Κρύβουμε την κουκκίδα στα κινητά */
    .timeline-item::before {
        display: none;
    }
    
    /* Προσθέτουμε οριζόντια γραμμή πάνω από κάθε ενότητα */
    .timeline-content {
        border-top: 3px solid var(--primary-color);
        padding-top: 1.5rem;
        margin-top: 0;
    }
    
    .timeline-date {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .control-buttons {
        top: 10px;
        right: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .wordpress-grid {
        grid-template-columns: 1fr;
    }
    
    .certification-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (≤ 375px) - iPhone SE, Galaxy Fold
   ============================================ */
@media (max-width: 375px) {
    /* Compact mobile header - όλα σε μία γραμμή */
    #sideNav .navbar-brand {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.25rem;
        flex: 1;
        min-width: 0;
    }
    
    /* Όνομα με μικρότερο μέγεθος για να χωράει */
    #sideNav .navbar-brand span[data-lang] {
        font-size: 1rem !important;
    }
    
    /* Μικρότερα gaps για τα icons */
    .mobile-header-icons {
        gap: 0.35rem;
        margin-right: 0.35rem;
    }
    
    /* Compact buttons για γλώσσα & dark mode */
    .mobile-header-icons .btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.9rem;
        min-width: 35px;
    }
    
    /* Icons σε καλό μέγεθος για visibility */
    .mobile-header-icons .btn i {
        font-size: 1rem;
    }
    
    /* Hamburger menu με κατάλληλο μέγεθος */
    #sideNav .navbar-toggler {
        padding: 0.4rem 0.6rem;
        font-size: 1.1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Scroll Reveal Animations */
.fade-in-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Timeline item stagger animations */
.timeline-item.fade-in-animation li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-item.fade-in-visible li {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delay for multiple timeline items */
.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.1s; }
.timeline-item:nth-child(3) { transition-delay: 0.2s; }
.timeline-item:nth-child(4) { transition-delay: 0.3s; }
.timeline-item:nth-child(5) { transition-delay: 0.4s; }
.timeline-item:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */

/* === TEXT COLORS === */
[data-theme="dark"] body,
[data-theme="dark"] p,
[data-theme="dark"] .lead,
[data-theme="dark"] li,
[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .project-card-body p,
[data-theme="dark"] .subheading {
    color: #cbd5e1 !important; /* Ανοιχτό γκρι για κανονικό κείμενο */
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f1f5f9 !important; /* Πολύ ανοιχτό για headings */
}

/* === GRADIENT TEXT === */
[data-theme="dark"] .gradient-text {
    background: var(--gradient-primary); /* Φωτεινό cyan gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === TEXT-PRIMARY CLASS (ΖΗΣΟΓΛΟΥ στο όνομα) === */
[data-theme="dark"] .text-primary {
    color: #22d3ee !important; /* Φωτεινό cyan */
}

/* === ICONS: Education, Contact Info, Floating Card === */
[data-theme="dark"] i.text-primary,
[data-theme="dark"] .contact-badge i,
[data-theme="dark"] .floating-item i {
    color: #22d3ee !important; /* Φωτεινό cyan */
}

/* === SOCIAL ICONS === */
[data-theme="dark"] .social-icons a {
    color: #22d3ee !important; /* Cyan αντί για σκούρο μπλε */
    border-color: rgba(34, 211, 238, 0.3);
}

[data-theme="dark"] .social-icons a:hover {
    background: var(--gradient-primary);
    color: #ffffff !important;
}

/* === DEV ICONS (Skills section) === */
[data-theme="dark"] .dev-icons .list-inline-item i {
    background: var(--gradient-primary); /* Φωτεινό cyan gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === COMPANY LINKS (Experience section) === */
[data-theme="dark"] .company-link {
    color: #22d3ee !important; /* Φωτεινό cyan */
}

[data-theme="dark"] .company-link:hover {
    color: #0ea5e9 !important; /* Πιο σκούρο cyan στο hover */
}

[data-theme="dark"] .company-link i {
    color: #22d3ee !important;
}

/* === MOBILE HEADER ICONS - DARK MODE === */
[data-theme="dark"] .mobile-header-icons .btn {
    background: rgba(34, 211, 238, 0.15) !important;
    border-color: rgba(34, 211, 238, 0.4) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .mobile-header-icons .btn i {
    color: #ffffff !important;
}

[data-theme="dark"] .mobile-header-icons .btn:hover {
    background: rgba(34, 211, 238, 0.25) !important;
    border-color: rgba(34, 211, 238, 0.6) !important;
    color: #ffffff !important;
}

/* === DOWNLOAD BUTTON === */
[data-theme="dark"] .download-cv-btn {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
}

[data-theme="dark"] .download-cv-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

/* === TIMELINE DATES === */
[data-theme="dark"] .timeline-date {
    color: #22d3ee !important; /* Φωτεινό cyan για ημερομηνίες */
    background: var(--bg-secondary);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    #sideNav,
    .control-buttons,
    #backToTop,
    #loading-screen {
        display: none !important;
    }
    
    body {
        padding-left: 0;
        background: white;
    }
    
    section.resume-section {
        page-break-inside: avoid;
    }
}
