/* Color Palette and Variables */
:root {
    --bg-dark: #3D3D3D;
    --bg-light: #f5f7fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --accent: #5DADE2;
    --accent-hover: #3498DB;
    --text-dark: #2C3E50;
    --text-body: #333333;
    --text-light: #FFFFFF;
    
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* Typography styles */
h1, h2, h3, h4, h5 {
    color: var(--text-dark);
    font-weight: 600;
}

h3.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Utility Classes */
.accent-text { color: var(--accent); }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.pb-4 { padding-bottom: 2rem; }

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.profile {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #2980B9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(93, 173, 226, 0.4);
    border: 4px solid rgba(255,255,255,0.1);
    transition: transform 0.5s ease;
}

.profile-img:hover {
    transform: rotate(5deg) scale(1.05);
}

.initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.profile h1 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile h2 {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: auto;
}

.nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    transform: translateX(5px);
}

.nav-link.active {
    border-left: 4px solid var(--accent);
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.8);
}

.contact-item a {
    color: rgba(255,255,255,0.8);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

/* Main Content Area */
.content {
    flex: 1;
    margin-left: 300px;
    padding: 4rem 5%;
}

.section {
    margin-bottom: 6rem;
    scroll-margin-top: 4rem;
}

/* Card Styles */
.card {
    padding: 2.5rem;
    font-size: 1.1rem;
}

.card p {
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(44, 62, 80, 0.1);
}

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

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.3);
}

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

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(93, 173, 226, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.timeline-content h5 {
    color: var(--text-body);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

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

.task-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
}

.task-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Skills Grid */
.skill-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(93, 173, 226, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.skill-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(44, 62, 80, 0.05);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(44, 62, 80, 0.1);
    transition: var(--transition);
}

.skill-card:hover .tag {
    background: rgba(93, 173, 226, 0.1);
    border-color: rgba(93, 173, 226, 0.3);
}

/* Languages */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.language-card {
    padding: 2rem;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lang-level {
    font-weight: 700;
    color: var(--accent);
    background: rgba(93, 173, 226, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
}

.progress-bar {
    height: 8px;
    background: rgba(44, 62, 80, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #3498DB 100%);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(93, 173, 226, 0.05) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: left 0.1s linear, top 0.1s linear;
}

/* Card Hover */
.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Nav Home Link */
.nav-home {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

/* ========================================
   Project Cards
   ======================================== */
.project-card {
    padding: 2.5rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.project-card p {
    line-height: 1.8;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.15) 0%, rgba(41, 128, 185, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    border: 1px solid rgba(93, 173, 226, 0.2);
}

.project-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-body);
    opacity: 0.6;
    margin-top: 2px;
}

/* ========================================
   Portfolio Gallery
   ======================================== */
.portfolio-gallery {
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    padding-top: 1.5rem;
}

.gallery-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    opacity: 0.7;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-title i {
    color: var(--accent);
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
    background: #e8ecef;
    border: 1px solid rgba(44, 62, 80, 0.06);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: #fff;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Video indicator for gallery items */
.gallery-item[data-type="video"]::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 2;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-top: 1.2rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(93, 173, 226, 0.3);
    border-color: var(--accent);
    color: #fff;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Media Queries */
@media (max-width: 992px) {
    .sidebar {
        width: 250px;
    }
    .content {
        margin-left: 250px;
    }
}

@media (max-width: 768px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 2rem;
    }
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin: 2rem 0;
    }
    .content {
        margin-left: 0;
        padding: 3rem 1.5rem;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-dot {
        left: -20px;
    }
    .cursor-glow {
        display: none;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

