/* Modern CV/Resume Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    /* Professional Color Palette */
    --primary: #0a192f;
    --primary-light: #112240;
    --secondary: #64ffda;
    --accent: #f06292;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --text-dark: #233554;
    --white: #ffffff;
    --bg-dark: #0a192f;
    --bg-light: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.98);
    
    /* Spacing & Sizing */
    --nav-height: 80px;
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-colored: 0 10px 30px rgba(100, 255, 218, 0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation - Modern Glassmorphism Style */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links:hover {
    color: var(--accent);
}

.nav-links:hover::after,
.nav-links.active::after {
    width: 60%;
}

.nav-links-greek {
    background: linear-gradient(135deg, var(--accent), #e91e63);
    color: var(--white) !important;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.nav-links-greek:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

/* Hero Section - Modern CV Header */
.header {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Modern dark blue gradient */
    background: linear-gradient(135deg, #193e9c 0%, #06173f 100%);
}

.header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%),
                radial-gradient(circle at 70% 70%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 55%);
    transform: rotate(25deg);
    filter: blur(5px);
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Brighter, larger dotted pattern for visibility */
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: 28px 28px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeIn 0.8s ease 0.4s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* About/Bio Section - Clean Professional Layout */
.bio-section {
    background: var(--white);
    padding: var(--section-padding);
    position: relative;
}

.bio-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 2px;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.bio-image {
    position: relative;
    animation: fadeIn 0.8s ease;
}

.bio-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.bio-text {
    animation: slideInRight 0.8s ease;
}

.bio-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Skills Section - Modern Skill Cards */
.skills-section {
    background: var(--bg-light);
    padding: var(--section-padding);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    min-height: 3.2rem; /* ensure equal spacing even if title wraps */
}

.skill-list {
    list-style: none;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-dark);
}

.skill-level {
    display: flex;
    gap: 0.3rem;
}

.skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: var(--transition);
}

.skill-dot.filled {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
}

/* Education & Experience Timeline */
.timeline-section {
    background: var(--white);
    padding: var(--section-padding);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--accent);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    left: auto;             /* reset */
    right: auto;
    transform: none;
}

.timeline-item.left::after {
    right: -14px;           /* half of dot width (28px) */
}

.timeline-item.right::after {
    left: -14px;            /* half of dot width */
}

.timeline-content {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-secondary);
}

/* Projects Section - Modern Card Design */
.projects-section-background {
    background: var(--bg-light);
    padding: var(--section-padding);
}

.projects-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.project-header {
    background: linear-gradient(135deg, #193e9c 0%, #06173f 100%);
    color: var(--white);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.project-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.project-header h3 {
    margin: 0;
    font-size: 2rem;
    position: relative;
}

.project-content {
    padding: 3rem;
}

.project-description {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-images figure {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin: 0;
}

.project-images figure:hover {
    transform: none !important;
    box-shadow: var(--shadow-md); /* keep consistent shadow */
}

.project-images img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    aspect-ratio: 4 / 3; /* reserve space before image loads */
    object-fit: cover;  /* maintain cropping */
}

.project-images img[src$=".png"] {
    object-fit: contain;          /* show full PNG inside reserved box */
    aspect-ratio: auto;           /* let image define its own ratio to avoid blank gaps */
    height: auto;                 /* allow natural height */
    max-height: 600px;            /* cap height for consistency */
}

.project-images figure:hover img {
    transform: none !important;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section - Modern Design */
.contact-section {
    background: linear-gradient(135deg, #193e9c 0%, #06173f 100%);
    color: var(--white);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100,255,218,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* Dotted overlay similar to hero section */
.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: 28px 28px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-title::after {
    background: var(--secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.contact-card h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--secondary);
}

/* Social Links - Modern Style */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px) rotate(360deg);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

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

/* Orb Glow Background */
.orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: orbFloat 18s ease-in-out infinite;
}

.orb1 {
    width: 400px;
    height: 400px;
    top: 20%;
    left: 10%;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(100, 255, 218, 0) 70%);
    animation-duration: 20s;
}

.orb2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 15%;
    background: radial-gradient(circle, var(--accent) 0%, rgba(240, 98, 146, 0) 70%);
    animation-duration: 22s;
    animation-delay: -5s;
}

.orb3 {
    width: 500px;
    height: 500px;
    top: 60%;
    left: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    animation-duration: 25s;
    animation-delay: -2s;
}

@keyframes orbFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-60px) translateX(40px) scale(1.15);
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Simplified mobile timeline alignment */
    .timeline::after {
        left: 20px;               /* move line inwards for clarity */
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;      /* space for dot and line */
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0; /* ensure full width */
    }

    .timeline-item::after,
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 20px;               /* align to new line position */
        right: auto;
        transform: translateX(-50%); /* center dot on line */
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .navbar, .menu-toggle, .hero-buttons, .social-links {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}

