@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2332 0%, #2d4263 50%, #1a2332 100%);
    min-height: 100vh;
}

/* Navbar scroll state (JS toggles .nav-scrolled on <nav>) */
nav.nav-scrolled {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

nav.nav-scrolled .nav-link {
    background: rgba(15, 23, 42, 0.35);
}

nav.nav-scrolled .lang-btn {
    background: rgba(15, 23, 42, 0.35);
}

/* ---------------------------
   Effects / Animations (reference-like feel)
   - Only visuals (no layout/structure changes)
--------------------------- */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.05);
    }
}

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

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

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out both;
}

.animate-fade-in {
    animation: fade-in 1s ease-out both;
}

.bg-blob {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    
}

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
}

/* Navigation Styles */
.lang-btn {
    transition: all 0.3s ease;
    color: rgb(226, 232, 240);
}

.lang-btn.active-lang {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: rgb(96, 165, 250);
}

.nav-link {
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(4px);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(226, 232, 240);
    transition: all 0.3s;
}

/* shimmer on hover (subtle) */
.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, #3b82f680, transparent);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

.nav-link:hover::before {
    opacity: "";
    animation: shimmer 0.9s ease-out;
    
}

.nav-link:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 41, 59, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.10);
}

.nav-link.active {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.14);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.22), 0 10px 30px rgba(59, 130, 246, 0.10);
}

.nav-dot {
    position: absolute;
    top: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: rgb(59, 130, 246);
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(226, 232, 240);
    transition: all 0.3s;
}

.mobile-menu-link:hover {
    background: rgba(30, 41, 59, 0.5);
}

/* Social Icons */
.social-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: rgba(51, 65, 85, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.social-icon:hover {
    background: rgb(51, 65, 85);
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.10);
}

/* Hero Section */
/* Text Content on RIGHT */
.biography {
    margin-top:10px !important;
}

/* Skills Section */
.skill-card {
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.skill-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.10);
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(51, 65, 85, 0.3);
}

.skill-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.skill-badge.expert {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(96, 165, 250);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.skill-badge.advanced {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(74, 222, 128);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.skill-badge.intermediate {
    background: rgba(234, 179, 8, 0.2);
    color: rgb(250, 204, 21);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.skill-badge.beginner {
    background: rgba(107, 114, 128, 0.2);
    color: rgb(156, 163, 175);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Experience Section */
.timeline-dot {
    position: absolute;
    left: 0;
    top: 2rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: rgb(59, 130, 246);
}

.timeline-line {
    position: absolute;
    left: 5px;
    top: 2.75rem;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #3b82f6, transparent);
}

.experience-card {
    margin-left: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.experience-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.10);
}

.experience-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-center;
    flex-shrink: 0;
}

.experience-icon.green {
    background: rgba(34, 197, 94, 0.2);
}

.experience-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.experience-badge.internship {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(96, 165, 250);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.experience-badge.fulltime {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(74, 222, 128);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.experience-badge.parttime {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(96, 165, 250);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Projects Section */
.project-card {
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.10);
}

.project-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.2);
    color: rgb(96, 165, 250);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(96, 165, 250);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

.project-link:hover {
    color: rgb(147, 197, 253);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

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

.modal-content {
    max-width: 56rem;
    width: 100%;
    margin: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: linear-gradient(to bottom right, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(24px);
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

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

.modal-close {
    float: right;
    color: rgb(148, 163, 184);
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}

.modal-button {
    width: 100%;
    padding: 1rem;
    background: rgb(37, 99, 235);
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.modal-button:hover {
    background: rgb(29, 78, 216);
}

/* Certificates Section */
.certificate-card {
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(4px);
    padding: 2rem;
    transition: all 0.3s;
}

.certificate-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.10);
}

/* hero image subtle float (targets the main framed card only) 
#home .rounded-3xl {
    animation: float-y 6s ease-in-out infinite;
    will-change: transform;
}
*/

@media (prefers-reduced-motion: reduce) {
    #home .rounded-3xl { animation: none; }
}

.certificate-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Contact Section */
.contact-box {
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(4px);
    padding: 2rem;
    
}

.contact-icon-header {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method {
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(51, 65, 85, 0.3);
    padding: 1.5rem;
    transition: all 0.3s;
}

.contact-method:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.contact-method-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    color: white;
    transition: all 0.3s;
}

.form-input::placeholder {
    color: rgb(100, 116, 139);
}

.form-input:focus {
    outline: none;
    border-color: rgb(59, 130, 246);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    color: white;
    resize: none;
    transition: all 0.3s;
}

.form-textarea::placeholder {
    color: rgb(100, 116, 139);
}

.form-textarea:focus {
    outline: none;
    border-color: rgb(59, 130, 246);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: rgb(37, 99, 235);
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.submit-button:hover {
    background: rgb(29, 78, 216);
}

/* Footer Styles */
.footer-tag {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.2);
    color: rgb(96, 165, 250);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.footer-social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social-icon:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.footer-link {
    display: block;
    color: rgb(148, 163, 184);
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: rgb(96, 165, 250);
}

.status-card {
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.back-to-top {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgb(37, 99, 235);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.back-to-top:hover {
    background: rgb(29, 78, 216);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a2332;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}


/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    /* === HERO === */
    #home { padding-top: 5rem !important; padding-bottom: 2rem !important; }
    #home .grid { gap: 1.5rem !important; }
    #home img { max-width: 200px !important; margin: 0 auto !important; }
    h1 { font-size: 2rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.3rem !important; }

    /* === CV & COVER LETTER BUTTONS NEBENEINANDER === */
    #home .space-y-8 { gap: 0.8rem !important; }
    #cvDownloadLink,
    #coverLetterLink {
        display: inline-flex !important;
        width: auto !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        margin-right: 0.5rem !important;
    }

    /* === SOCIAL ICONS === */
    .biography { flex-wrap: wrap !important; gap: 0.5rem !important; }

    /* === SECTIONS === */
    section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    section h2 { font-size: 1.8rem !important; }

    /* === EXPERIENCE CARDS === */
    .experience-card { padding: 1rem !important; margin-left: 1rem !important; }
    .experience-card h3 { font-size: 1.1rem !important; }
    .experience-card p { font-size: 0.85rem !important; }

    /* === PROJECT CARDS === */
    .project-card { padding: 1rem !important; }
    .project-card h3 { font-size: 1rem !important; }
    .project-tag { font-size: 0.7rem !important; padding: 0.2rem 0.5rem !important; }

    /* === SKILL CARDS === */
    .skill-card { padding: 1rem !important; }
    .skill-card h3 { font-size: 1rem !important; }
    .skill-item { padding: 0.5rem 0 !important; }

    /* === CERTIFICATE CARDS === */
    .certificate-card { padding: 1rem !important; }
    .certificate-card h3 { font-size: 1rem !important; }
    .certificate-icon { width: 2.5rem !important; height: 2.5rem !important; min-width: 2.5rem !important; }

    /* === CONTACT === */
    .contact-box { padding: 1rem !important; }
    .form-input { font-size: 0.9rem !important; }
    .form-textarea { font-size: 0.9rem !important; }
    .submit-button { width: 100% !important; }

    /* === FOOTER === */
    footer { padding: 2rem 1rem !important; }
    .footer-tag { font-size: 0.7rem !important; }
}

/* ===== MOBILE MODAL & POPUP ===== */
@media (max-width: 768px) {

    /* === PROJECT MODAL === */
    .modal-content {
        padding: 1.5rem !important;
        margin: 1rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    .modal-content h2 { font-size: 1.4rem !important; }
    .modal-content p { font-size: 0.85rem !important; }
    .modal-button { width: 100% !important; justify-content: center !important; }

    /* === CERTIFICATE MODAL === */
    #certModal > div {
        width: 95vw !important;
        height: 85vh !important;
        margin: auto !important;
    }
    #certModal iframe {
        height: 100% !important;
    }

    /* === NAV === */
    nav { padding-top: 0.8rem !important; }
    .nav-link { display: none !important; }

    /* === GRID FIXES === */
    .grid-cols-2 { grid-template-columns: 1fr !important; }
    .md\:grid-cols-2 { grid-template-columns: 1fr !important; }
    .lg\:grid-cols-3 { grid-template-columns: 1fr !important; }
    .lg\:grid-cols-2 { grid-template-columns: 1fr !important; }
}

/* ===== HERO IMAGE FIX ===== */
@media (max-width: 768px) {
    #home .relative.lg\:order-1 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    #home .relative.lg\:order-1 > div.relative {
        max-width: 260px !important;
        margin: 0 auto !important;
    }
    #home img {
        max-width: 220px !important;
        max-height: 220px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}
