/* CSS Variables for consistent theming */
:root {
    --bg-dark: #111827;
    --bg-card: #1f2937;
    --bg-light: #f3f4f6;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-dark: #111827;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* Navigation & Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-dark);
    border-bottom: 1px solid #374151;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 1.5rem;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* SHRINKING NAV ON SCROLL */
header.scrolled {
    padding: 0.5rem 5%;
    background-color: rgba(17, 24, 39, 0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Hides the Logo and Quote when scrolling */
header.scrolled .logo,
header.scrolled .lang-quote {
    display: none !important;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.logo {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-lang {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.lang-quote {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lang-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.lang-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-links a:hover, .lang-links a.active-lang {
    color: white;
}

.lang-links a.active-lang {
    color: var(--accent);
}

.flag-icon {
    height: 1.2em;
    vertical-align: middle;
    border-radius: 2px;
}

nav {
    flex: 1 1 auto;
}

nav ul.nav-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
    gap: 3rem;
}

.hero-content {
    flex: 1 1 600px;
    max-width: 600px;
}

/* FALLING ANIMATION */
@keyframes fallDown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-greeting {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-muted);
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    display: block !important;
    animation: fallDown 0.8s ease-out forwards;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
}

.hero-content p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
    flex: 1 1 auto;
    max-width: fit-content;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Fluid Hero Image */
.hero-image {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 350 / 450;
    background-color: var(--bg-card);
    border-radius: 8px;
    background-image: url('Bujar.jpg');
    background-size: cover;
    background-position: center top;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

/* Sections */
.white-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 5rem 5%;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding: 5rem 5%;
}

section,
footer {
    scroll-margin-top: 7rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-photo {
    width: 150px;
    height: 150px;
    background-color: var(--bg-card);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url('Bujar.jpg');
    background-size: cover;
    background-position: center top;
    border: 3px solid var(--accent);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.dark-card {
    background-color: var(--bg-card);
    box-shadow: none;
    border: 1px solid #374151;
}

.skill-card h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dark-card .tag {
    background-color: #374151;
    color: var(--text-main);
}

/* Timeline (Education & Experience) */
.timeline {
    border-left: 2px solid #374151;
    padding-left: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
}

.white-section .timeline {
    border-left-color: #d1d5db;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.dark-section .timeline-item::before {
    border-color: var(--bg-dark);
}

.white-section .timeline-item::before {
    border-color: var(--bg-light);
}

.timeline-item.finki-item::before {
    content: none;
}

.timeline-logo {
    position: absolute;
    left: -42px;
    top: -2px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--bg-light);
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-logo:hover {
    transform: scale(1.06);
    box-shadow: 0 5px 14px rgba(17, 24, 39, 0.24);
}

.timeline-logo img {
    width: 23px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.timeline-date {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
}

.white-section .timeline-desc {
    color: #4b5563;
}

.institution-link {
    color: #4da6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.institution-link:hover {
    color: #80c1ff;
}

.major-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.major-link:hover {
    color: var(--accent);
}

/* Footer / Contact */
footer {
    background-color: #0b1120;
    padding: 4rem 5%;
    border-top: 1px solid #1f2937;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-info h2 {
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4da6ff;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: #4da6ff;
}

.contact-icon {
    width: 1.4rem;
    flex: 0 0 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img {
    width: 16px;
    height: 16px;
    display: block;
    transition: filter 0.3s ease;
}

.contact-link:hover .contact-icon img {
    filter: brightness(0) saturate(100%) invert(61%) sepia(92%) saturate(1336%) hue-rotate(184deg) brightness(101%) contrast(102%);
}

/* Contact Form Styles */
.contact-form-container {
    flex: 1 1 400px;
    max-width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border: 1px solid #374151;
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-top {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: white;
}
/* --- RESUME BULLETS & LINKS --- */
.experience-bullets {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
}

.experience-bullets li {
    margin-bottom: 0.5rem;
}

.see-pics-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #4da6ff; /* A bright, clickable blue */
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.see-pics-link:hover {
    color: #80c1ff;
    text-decoration: underline;
}
/* --- RESUME BULLETS & LINKS --- */
.experience-bullets {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
}

.experience-bullets li {
    margin-bottom: 0.5rem;
}

.see-pics-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #4da6ff;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.see-pics-link:hover {
    color: #80c1ff;
    text-decoration: underline;
}
/* =========================================
   MOBILE RESPONSIVENESS (The Magic Sauce)
   ========================================= */
/* =========================================
   MOBILE RESPONSIVENESS (The Magic Sauce)
   ========================================= */
/* =========================================
   MOBILE RESPONSIVENESS (The Magic Sauce)
   ========================================= */
@media (max-width: 850px) {
    /* --- UNSCROLLED STATE (Top of page) --- */
    header {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 0.8rem;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .header-lang, .lang-links {
        justify-content: center;
    }

    .lang-quote {
        display: block;
        margin-bottom: 0.5rem;
    }

    nav { width: 100%; }
    nav ul.nav-menu {
        justify-content: center;
        gap: 1rem;
        row-gap: 0.5rem;
    }
    nav a { font-size: 0.85rem; }

    /* --- SCROLLED STATE (Stealth Mode) --- */
    header.scrolled {
        flex-direction: column; /* Stacks flags exactly on top of links */
        align-items: center;
        padding: 0.5rem 2%;
        gap: 0.3rem; /* Removes the huge gap between flags and links */
    }

    header.scrolled .header-left {
        flex-direction: row;
        justify-content: center; /* CENTERS THE FLAGS! */
        width: 100%;
    }

    header.scrolled .logo,
    header.scrolled .lang-quote,
    header.scrolled .lang-text {
        display: none !important;
    }

    header.scrolled .flag-icon { height: 1.1em; }
    header.scrolled .flag-emoji { font-size: 1.2rem; }

    header.scrolled nav { width: 100%; }
    header.scrolled nav ul.nav-menu {
        justify-content: center;
        gap: 1.2rem;
        row-gap: 0.4rem;
    }
    header.scrolled nav a {
        font-size: 0.85rem; /* MADE NAV WORDS BIGGER! */
        padding-bottom: 2px;
    }

    /* --- REST OF MOBILE FIXES (SHRINKING DEAD SPACE) --- */
    /* Cuts down the massive gaps between sections on mobile */
    .white-section, .dark-section { padding: 3rem 5%; }
    .section-container { gap: 2.5rem; }

    .hero { flex-direction: column; text-align: center; padding: 3rem 5%; gap: 1.5rem; }
    .hero-content { flex: 1 1 auto; max-width: 100%; }
    .hero-greeting { margin: 0 auto 0.5rem auto !important; }
    .hero h1 { margin: 0 auto 1.5rem auto !important; }
    .btn-group { justify-content: center; }
    .hero-image { margin-top: 0; max-width: 80%; }
    .about-content { flex-direction: column; text-align: center; }
    .timeline { padding-left: 1.5rem; }
    .timeline-item::before { left: -28px; }
    .timeline-logo { left: -33px; top: -1px; width: 24px; height: 24px; }
    .timeline-logo img { width: 20px; height: auto; }

    /* --- FIXING THE CONTACT SPACE --- */
    footer { padding: 3rem 5% 2rem 5%; }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0 !important;
    }

    .contact-info {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .contact-info p:last-child {
        margin-bottom: 0 !important;
    }

    .contact-info p {
        justify-content: center;
    }

    .contact-info h2 { margin-bottom: 0.5rem; }

    .contact-form-container {
        margin-top: 0.2rem !important;
    }

    .footer-bottom { justify-content: center; text-align: center; margin-top: 2rem; }

}
