/* ==========================================================================
   1. GENERAL BOOTSTRAP & BODY STYLES
   ========================================================================== */
body {
    background-color: #111111; /* Πιο σκούρο base για καλύτερη αντίθεση */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* Προσθήκη ημιδιαφανούς μαύρου φίλτρου για να "σβήσει" το υπερβολικό λευκό φως */
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9)), url('./New Project.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

/* ==========================================================================
   NAVBAR STYLES (STICKY, TRANSLUCENT & ANIMATED)
   ========================================================================== */
html {
    scroll-behavior: smooth; /* Ομαλό scroll όταν πατάς τα links */
}

nav.navbar {
    margin: 0;
    padding: 20px 0;
    position: fixed; /* Καρφιτσωμένο στην κορυφή */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* Πάνω από όλα τα στοιχεία */
    
    /* Ημιδιαπερατότητα & Glassmorphism */
    background: rgba(10, 10, 10, 0.75); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Αρχική κατάσταση: Κρυμμένο πάνω από την οθόνη */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.3s ease;
}

/* Κλάση που θα μπαίνει μέσω JS στο scroll */
nav.navbar.visible {
    transform: translateY(0);
    opacity: 1;
    padding: 15px 0; /* Μικραίνει ελαφρώς το navbar κατά το scroll για κομψότητα */
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #00d1ff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

/* ⚡ Hover Effect: Neon Cyan γραμμή που μεγαλώνει από το κέντρο */
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: #00d1ff; /* Κυανό neon */
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 8px #00d1ff;
}

.nav-link:hover {
    color: #00d1ff;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Responsive Navbar για κινητά */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0px;
    }
    .nav-logo {
        display: none; /* Κρύβει το λογότυπο στα μικρά κινητά για να χωράνε τα links */
    }
    .nav-container {
        justify-content: center;
    }
}

/* ==========================================================================
   2. HERO SECTION (SECTION 1)
   ========================================================================== */
.section1 {
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 3;
    padding-bottom: 40px;
}

.section1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 100%);
    pointer-events: none;
    z-index: 5;
}

.profile_img {
    height: 80vh;
    width: auto;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: drop-shadow(10px 2px 20px rgb(1,1,1));
    margin: 0 20px;
    padding: 0;
}

.section1 .sub_section_1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    font-size: 100px;
    color: #FFFFFF;
    font-family: 'RampiroDEMO', sans-serif; 
    flex-grow: 1;
    gap: 50px;
}

.sub_section_1 .hello_div {
    margin: 20px;
    width: 100%;
    letter-spacing: 1.5em;
    text-shadow: -5px 5px 5px black;
    font-weight: 300;
    text-align: center;
    font-size: 150px ;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

@font-face {
    font-family: 'RampiroDEMO';
    src: url('.rampiro/RampiroDEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* --- Contact Cards (Links) --- */
.link-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto; 
    width: 100%;
}

.link-container .link {
    background-color: #121212; 
    border: 1px solid #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center; 
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 20px 1px rgba(222, 222, 222, 0.103);
}

.icon-box {
    background-color: #162122; 
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00d1ff; 
    flex-shrink: 0; 
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.label {
    color: #666666;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.link-container .link {
    text-decoration: none;
}

.value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.link:hover {
    border: 1px solid #00d1ff81;
    box-shadow: 0px 0px 64px -30px #00d1ff;
    background-color: #161616;
}

@media (max-width: 650px) {
    .link-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3. PORTFOLIO & HORIZONTAL TIMELINE SECTION
   ========================================================================== */
.portfolio-section {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.timeline-header {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 0;
}

.tracking-title {
    font-weight: 300;
    letter-spacing: 8px;
    font-size: 3rem;
    text-transform: uppercase;
}

.horizontal-timeline {
    display: flex;
    position: relative; 
    width: 80%;
    margin: 0 auto;
    min-height: 550px; 
    align-items: center;
    height: 1000px;
    background-color: #000000; 
    overflow: hidden;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #444, #888, #444, transparent);
    transform: translateY(-50%);
    z-index: 2; 
}

/* --- Timeline Items & Dots --- */
.ht-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3; 
}

.ht-item.top { 
    transform: translateY(-50%); 
    padding-bottom: 30px;
    transform-origin: bottom center; 
}

.ht-item.bottom { 
    transform: translateY(50%); 
    padding-top: 30px;
    transform-origin: top center; 
}

.ht-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ht-item.top .ht-dot { bottom: -7px; }
.ht-item.bottom .ht-dot { top: -7px; }

/* --- Content Cards --- */
.ht-content {
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 260px;
    min-height: 180px; 
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: pointer;
    z-index: 4; 
}

.ht-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; 
    transition: opacity 0.4s ease-in-out; 
    z-index: -1;
}

.uom .ht-content::before { background-image: url('imgs/uom.png'); }
.army .ht-content::before { background-image: url('imgs/army.png'); }
.work .ht-content::before { background-image: url('imgs/work.jpeg'); }
.graduation .ht-content::before { background-image: url('imgs/graduation.png'); }
.internship .ht-content::before { background-image: url('imgs/internship.jpg'); }

.ht-item:hover .ht-content,
.ht-item.active .ht-content {
    transform: scale(1.15); 
    min-height: 280px;      
    padding-top: 40px;      
    padding-bottom: 40px;
    border-color: #00d1ff;
    box-shadow: 0px 0px 40px #00d1ff;
}

.ht-item:hover .ht-content::before,
.ht-item.active .ht-content::before {
    opacity: 0.35; 
}

/* Ενημέρωση για την κουκκίδα του timeline */
.ht-item:hover .ht-dot,
.ht-item.active .ht-dot {
    background-color: #fff;
    transform: scale(1.5);
    box-shadow: 0 0 20px #fff;
}

/* Ενημέρωση για τα κείμενα */
.ht-item:hover .ht-date, .ht-item.active .ht-date { color: #aaa; }
.ht-item:hover p, .ht-item.active p { color: #eee; }

.ht-date { font-size: 0.75rem; color: #666; margin-bottom: 8px; display: block; transition: 0.3s; }
.ht-content h3 { margin: 5px 0; font-size: 1.2rem; color: #fff; transition: 0.3s; }
.ht-subtitle { margin-bottom: 12px; font-size: 0.9rem; color: #aaa; font-weight: 400; transition: 0.3s; }
.ht-content p { font-size: 0.85rem; color: #777; line-height: 1.6; transition: 0.3s; }


/* ==========================================================================
   4. FEATURED PROJECTS SECTION (MODERN FIXED 3x3 GRID)
   ========================================================================== */
.projects-section-container {
    background-color: #000000;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.projects-bg-header {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.45) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.tracking-title-projects {
    font-weight: 200;
    letter-spacing: 26px; 
    font-size: 5.5rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.473);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding-left: 26px; 
}

.projects_parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    grid-auto-flow: dense;
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 120px auto 0 auto; 
    position: relative;
    z-index: 5; 
}

.projects_parent .prj {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    color: white;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.projects_parent .prj:hover {
    border-color: #00d1ff;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.15);
}

.projects_parent .selected_prj {
    grid-column: span 2;
    grid-row: span 2;
    background-color: #0e1718;
    border-color: #00d1ff;
    box-shadow: 0px 0px 30px rgba(0, 209, 255, 0.1);
}

.prj-content .prj-date {
    display: none;
    font-size: 0.85rem;
    color: #00d1ff; 
    opacity: 0.8;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.selected_prj .prj-content .prj-date {
    display: block;
}

.prj-content {
    width: 100%;
    text-align: center;
}

.selected_prj .prj-content {
    text-align: left; 
}

.prj-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-family: 'Inter', sans-serif;
}

.prj-content p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: none; 
}

.selected_prj .prj-content p {
    display: block; 
}

.prj-links-wrapper {
    display: none; 
    gap: 12px;
    margin-top: 20px;
}

.selected_prj .prj-links-wrapper {
    display: flex; 
}

.prj-btn {
    text-decoration: none;
    font-weight: 500;
    padding: 10px; 
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-text {
    width: 0;
    opacity: 0;
    display: inline-block;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                margin-left 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.prj-btn:hover {
    padding-right: 18px; 
}

.prj-btn:hover .btn-text {
    width: 70px;      
    opacity: 1;
    margin-left: 10px; 
}

.prj-btn:hover .btn-icon {
    transform: scale(1.1); 
}

.github-btn {
    color: #00d1ff;
    border: 1px solid #00d1ff;
    background-color: rgba(0, 209, 255, 0.03);
}

.github-btn:hover {
    background-color: #00d1ff;
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.4);
}

.linkedin-btn {
    color: #0077b5;
    border: 1px solid #0077b5;
    background-color: rgba(0, 119, 181, 0.03);
}

.linkedin-btn:hover {
    background-color: #0077b5;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.4);
}

/* ==========================================================================
   5. VIEW TRANSITIONS ANIMATIONS TIMING
   ========================================================================== */
.prj_1 { view-transition-name: prj-1; }
.prj_2 { view-transition-name: prj-2; }
.prj_3 { view-transition-name: prj-3; }
.prj_4 { view-transition-name: prj-4; }
.prj_5 { view-transition-name: prj-5; }
.prj_6 { view-transition-name: prj-6; }

::view-transition-group(*) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   6. RESPONSIVE FOR MOBILE DEVICES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* --- Διόρθωση Φόντου για να Φαίνεται το Grid --- */
    body {
        /* Χρησιμοποιούμε auto 100% για να μην ξεχειλώνει η εικόνα οριζόντια */
        background-size: auto 100vh;
        background-position: top center;
        /* Προσθέτουμε ένα ελαφρώς πιο έντονο overlay στο κινητό ώστε να σκουρύνει το άσπρο */
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.95)), url('./New Project.jpg');
    }

    /* --- Hero Section (Section 1) --- */
    .section1 {
        flex-direction: column; 
        align-items: center;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 60px; 
    }

    .profile_img {
        height: 40vh; 
        width: auto;
        max-height: 350px;
        margin: 0 auto 15px auto;
    }

    .section1 .sub_section_1 {
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        gap: 20px; 
    }

    .sub_section_1 .hello_div {
        font-size: 1.8rem; 
        letter-spacing: 0.25em; 
        margin: 10px 0 20px 0;
        text-shadow: -2px 2px 4px black;
    }

    /* --- Contact Cards (Links) --- */
    .link-container {
        grid-template-columns: 1fr; 
        gap: 12px;
        padding: 0 20px; 
        box-sizing: border-box;
        width: 100%;
        max-width: 450px; 
    }

    .link-container .link {
        padding: 12px 16px;
        gap: 12px;
    }

    .icon-box {
        width: 40px;
        height: 40px;
    }

    .label {
        font-size: 11px;
    }

    .value {
        font-size: 14px;
        word-break: break-all; 
    }

    /* --- Timeline Section --- */
    .tracking-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .horizontal-timeline {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        max-width: 500px; 
        margin: 0 auto;
        padding-left: 55px; 
        padding-right: 20px;
        box-sizing: border-box;
        min-height: auto;
        height: auto; 
        overflow: visible;
    }

    .timeline-line {
        position: absolute;
        left: 30px; 
        top: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, transparent, #444, #888, #444, transparent);
        transform: none;
        z-index: 2;
    }

    .ht-item.top, .ht-item.bottom {
        transform: none;
        width: 100%;
        padding: 15px 0;
        align-items: flex-start;
        transform-origin: left center;
    }

    .ht-dot {
        left: -31px !important; 
        top: 35px !important;   
        position: absolute;
    }

    .ht-content {
        max-width: 100%;
        width: 100%;
        min-height: auto; 
        padding: 20px;
    }

    .ht-item:hover .ht-content {
        transform: scale(1.02); 
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* --- Featured Projects Section --- */
    .tracking-title-projects {
        font-size: 2.2rem;
        letter-spacing: 8px;
        padding-left: 8px;
    }

    .projects_parent {
        grid-template-columns: 1fr; 
        grid-auto-rows: auto;
        margin-top: 60px;
        padding: 15px;
    }

    .projects_parent .selected_prj {
        grid-column: span 1;
        grid-row: span 1;
    }

    .selected_prj .prj-content {
        text-align: center;
    }

    .prj-links-wrapper {
        justify-content: center;
    }
}

/* Για πολύ μικρές συσκευές */
@media (max-width: 360px) {
    .sub_section_1 .hello_div {
        font-size: 1.8rem;
        letter-spacing: 0.15em;
    }
    .value {
        font-size: 13px;
    }
}

/* ==========================================================================
   7. CORE SKILLS & EXPERTISE SECTION (WITH NEON ANIMATIONS)
   ========================================================================== */
.skills-section-container {
    background-color: #000000;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
    /*border-top: 1px solid #111;*/
}

.skills-bg-header {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.tracking-title-skills {
    font-weight: 200;
    letter-spacing: 25px; 
    font-size: 5.5rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding-left: 25px; 
}

.skills_parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 20px;
    max-width: 1240px;
    margin: 160px auto 0 auto; 
    position: relative;
    z-index: 5; 
}

/* Base Card Style with hidden opacity for JS reveal */
.skill-card {
    background-color: #090909;
    border: 1px solid #181818;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    opacity: 0; /* Will be triggered by JS */
    transform: translateY(40px); /* Will be triggered by JS */
    position: relative;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), 
                opacity 0.6s ease, 
                border-color 0.4s ease, 
                background-color 0.4s ease, 
                box-shadow 0.4s ease;
}

.full-width-skill {
    grid-column: span 2;
    background: linear-gradient(135deg, #090909 0%, #140b0b 100%);
    border-color: #261212;
}

/* Icon Containers with Floating Animations */
.skill-icon-box {
    background-color: #0e1b1d;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00d1ff; 
    flex-shrink: 0; 
    border: 1px solid rgba(0, 209, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    animation: skillFloat 4s ease-in-out infinite alternate;
}

.skill-icon-box.emergency {
    background-color: #221010;
    color: #ff4a4a;
    border-color: rgba(255, 74, 74, 0.15);
    animation: emergencyPulse 2.5s ease-in-out infinite alternate;
}

/* Offset animation delay for a more natural chaotic movement across cards */
.skills_parent .skill-card:nth-child(even) .skill-icon-box {
    animation-delay: 1.5s;
}
.skills_parent .skill-card:nth-child(3n) .skill-icon-box {
    animation-delay: 0.7s;
}

.skill-icon-box svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

.skill-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-text h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.skill-text p {
    margin: 0;
    color: #8c8c8c;
    font-size: 0.96rem;
    line-height: 1.65;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* --- Interactive Hover states --- */
.skill-card:hover {
    border-color: rgba(0, 209, 255, 0.4);
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 15px 35px rgba(0, 209, 255, 0.07);
    background-color: #0d1719;
}

.skill-card:hover .skill-text h3 {
    color: #00d1ff;
}

.skill-card:hover .skill-icon-box {
    background-color: #00d1ff;
    color: #000000;
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.45);
    animation-play-state: paused; /* Stops floating when interacting */
}

/* Emergency Card Specific Hover */
.full-width-skill:hover {
    border-color: rgba(255, 74, 74, 0.4);
    background-color: #160c0c;
    box-shadow: 0 15px 35px rgba(255, 74, 74, 0.07);
}

.full-width-skill:hover .skill-text h3 {
    color: #ff4a4a;
}

.full-width-skill:hover .skill-icon-box.emergency {
    background-color: #ff4a4a;
    color: #000000;
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 0 20px rgba(255, 74, 74, 0.45);
    animation-play-state: paused;
}

/* --- Keyframe Animations --- */
@keyframes skillFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

@keyframes emergencyPulse {
    0% { transform: scale(1); box-shadow: 0 0 0px rgba(255, 74, 74, 0); }
    100% { transform: scale(1.04); border-color: rgba(255, 74, 74, 0.4); box-shadow: 0 0 8px rgba(255, 74, 74, 0.15); }
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR SKILLS
   ========================================================================== */
@media (max-width: 992px) {
    .skills_parent {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .full-width-skill {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .tracking-title-skills {
        font-size: 2.5rem;
        letter-spacing: 10px;
        padding-left: 10px;
    }
    .skills_parent {
        margin-top: 80px;
        padding: 10px;
        gap: 16px;
    }
    .skill-card {
        padding: 24px;
        gap: 16px;
    }
    .skill-icon-box {
        width: 48px;
        height: 48px;
    }
    .skill-icon-box svg {
        width: 20px;
        height: 20px;
    }
    .skill-text h3 {
        font-size: 1.15rem;
    }
    .skill-text p {
        font-size: 0.92rem;
    }
}

/* ==========================================================================
   8. RESPONSIVE FOR SQUARE/STUBBY 15" LAPTOPS (Aspect Ratio ~4:3 or 5:4)
   ========================================================================== */
@media screen and (min-width: 1024px)  {

    /* --- Hero Section Adjustment --- */
    .section1 {
        flex-direction: row;
        align-items: center;
        padding-bottom: 80px;
    }

    /* Μειώνουμε το ύψος της εικόνας γιατί το 80vh σε 4:3 οθόνη "πνίγει" το layout */
    .profile_img {
        height: 55vh;
        max-height: 450px;
        margin: 0 10px;
    }

    .section1 .sub_section_1 {
        gap: 20px;
    }

    /* Μάζεμα των font sizes για να μην γίνονται overflow */
    .sub_section_1 .hello_div {
        font-size: 80px;
        letter-spacing: 0.70em;
    }

   

   

    .link-container .link {
        padding: 12px 15px;
    }

    .value {
        font-size: 14px;
    }

    /* ==========================================
       ΑΛΛΑΓΕΣ ΓΙΑ ΝΑ ΜΙΚΡΥΝΟΥΝ ΤΑ ΚΟΥΤΑΚΙΑ ΤΟΥ TIMELINE
       ========================================== */

    /* 1. Μικραίνουμε το αρχικό μέγεθος των κουτιών του Timeline */
     .horizontal-timeline {
        width: 100%;
        height: 750px;
    }

    .horizontal-timeline .ht-content {
        max-width: 210px;    /* Από 260px το κατεβάζουμε στα 210px */
        min-height: 150px;   /* Από 180px το κατεβάζουμε στα 150px */
        padding: 16px;       /* Μικρότερο εσωτερικό περιθώριο από 25px */
    }

    /* 2. Περιορίζουμε το μέγεθος του κουτιού όταν γίνεται Hover / Active */
    .horizontal-timeline .ht-item:hover .ht-content,
    .horizontal-timeline .ht-item.active .ht-content {
        transform: scale(1.08); /* Μικρότερο zoom από 1.15 για να μην "πνίγει" την οθόνη */
        min-height: 220px;      /* Από 280px το μαζεύουμε στα 220px */
        padding-top: 25px;      /* Λιγότερο padding κατά το hover */
        padding-bottom: 25px;
    }

    /* 3. Μικραίνουμε ελαφρώς τις γραμματοσειρές του Timeline για να χωράνε σωστά */
    .horizontal-timeline .ht-content h3 {
        font-size: 1.05rem;      /* Από 1.2rem */
    }

    .horizontal-timeline .ht-subtitle {
        font-size: 0.8rem;      /* Από 0.9rem */
        margin-bottom: 8px;
    }

    .horizontal-timeline .ht-content p {
        font-size: 0.78rem;     /* Από 0.85rem */
        line-height: 1.4;
    }


}