:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #e0e0e0;
    --card-bg: rgba(30, 30, 30, 0.7);
    --glow-color: rgba(255, 255, 255, 0.05);
    --overlay-gradient: rgba(10, 10, 10, 0.9);
    --timeline-line: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.05);
}

body.light-mode {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --accent-color: #334155;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glow-color: rgba(0, 0, 0, 0.05);
    --overlay-gradient: rgba(248, 250, 252, 0.9);
    --timeline-line: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Subtle background glow effect */
.background-glow {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 50% 50%, var(--glow-color) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #a0a0a0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--overlay-gradient) 0%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666666;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Resume Section */
.resume {
    width: 100%;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.resume h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resume-category {
    margin-bottom: 3rem;
}

.resume-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--timeline-line);
    padding-bottom: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-line);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    z-index: 1;
}

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.timeline-content .company {
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--border-color);
    border: 1px solid var(--timeline-line);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

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

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

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

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Button & Links */
.button-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.discreet-link {
    color: #444444;
    text-decoration: none;
    font-size: 0.75rem;
    opacity: 0.3;
    transition: opacity 0.4s ease, color 0.4s ease;
}

.discreet-link:hover {
    opacity: 1;
    color: #888888;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightbox-caption {
    margin-top: 1.5rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 300;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #aaaaaa;
    text-decoration: none;
    cursor: pointer;
}
